[PATCH test/xts 04/18] Build Xt3

Aaron Plattner aplattner at nvidia.com
Wed Jul 25 09:24:47 PDT 2012


On 07/25/2012 09:15 AM, Aaron Plattner wrote:
> On 07/24/2012 12:00 PM, Peter Harris wrote:
>> Signed-off-by: Peter Harris <pharris at opentext.com>
> 
> This causes the build to fail on my system:
> 
> make[4]: Entering directory `/home/aaron/git/x/xts/xts5/Xt3'
>    CCLD   CompositeWidget
> ../../xts5/src/.libs/libxts5.so: undefined reference to `XListInputDevices'
> ../../xts5/src/.libs/libxts5.so: undefined reference to `XOpenDevice'
> ../../xts5/src/.libs/libxts5.so: undefined reference to `_xibadclass'
> ../../xts5/src/.libs/libxts5.so: undefined reference to `XChangeDeviceDontPropagateList'
> ../../xts5/src/.libs/libxts5.so: undefined reference to `XSetDeviceMode'
> ../../xts5/src/.libs/libxts5.so: undefined reference to `_xibaddevice'
> ../../xts5/src/.libs/libxts5.so: undefined reference to `XGetDeviceModifierMapping'
> ../../xts5/src/.libs/libxts5.so: undefined reference to `XChangeDeviceControl'
> ../../xts5/src/.libs/libxts5.so: undefined reference to `_xibadmode'
> ../../xts5/src/.libs/libxts5.so: undefined reference to `XSetDeviceValuators'
> ../../xts5/src/.libs/libxts5.so: undefined reference to `XGetFeedbackControl'
> ../../xts5/src/.libs/libxts5.so: undefined reference to `XGetDeviceButtonMapping'
> ../../xts5/src/.libs/libxts5.so: undefined reference to `_xibadevent'
> ../../xts5/src/.libs/libxts5.so: undefined reference to `XSelectExtensionEvent'
> ../../xts5/src/.libs/libxts5.so: undefined reference to `XFreeDeviceList'
> ../../xts5/src/.libs/libxts5.so: undefined reference to `_xidevicebusy'
> collect2: ld returned 1 exit status
> make[4]: *** [CompositeWidget] Error 1

... and this fixes it:

diff --git a/xts5/Xt3/Makefile.am b/xts5/Xt3/Makefile.am
index 0a61ccf..51d13ac 100644
--- a/xts5/Xt3/Makefile.am
+++ b/xts5/Xt3/Makefile.am
@@ -4,14 +4,14 @@ AUTOMAKE_OPTIONS = subdir-objects
 AM_CFLAGS = -I$(top_srcdir)/include \
        -I$(top_srcdir)/src/tet3/inc \
        -I$(top_srcdir)/xts5/include \
-       $(XAW_CFLAGS)
+       $(XTS_LIBS) $(XAW_CFLAGS)
 LDADD = $(top_builddir)/src/tet3/tcm/libtcmmain.la \
        $(top_builddir)/xts5/src/libxts5.la \
        $(top_builddir)/xts5/src/libXtTest/libXtTest.la \
        $(top_builddir)/xts5/src/libXtaw/libXtaw.la \
        $(top_builddir)/src/tet3/apilib/libapi.la \
        $(top_builddir)/src/tet3/apilib/libapi_s.la \
-       $(XAW_LIBS)
+       $(XTS_LIBS) $(XAW_LIBS)
 
 testprogdir = $(libexecdir)/$(subdir)
 nobase_testprog_PROGRAMS = $(tprogs)

-- Aaron

>> ---
>>    configure.ac         |    1 +
>>    xts5/Makefile.am     |    2 +-
>>    xts5/Xt3/.gitignore  |   21 +++++++++++++++++++++
>>    xts5/Xt3/Makefile.am |   47 +++++++++++++++++++++++++++++++++++++++++++++++
>>    4 files changed, 70 insertions(+), 1 deletions(-)
>>    create mode 100644 xts5/Xt3/.gitignore
>>    create mode 100644 xts5/Xt3/Makefile.am
>>
>> diff --git a/configure.ac b/configure.ac
>> index 1c515ca..e1fd389 100644
>> --- a/configure.ac
>> +++ b/configure.ac
>> @@ -183,6 +183,7 @@ xts5/Xlib14/Makefile
>>    xts5/Xlib15/Makefile
>>    xts5/Xlib16/Makefile
>>    xts5/Xlib17/Makefile
>> +xts5/Xt3/Makefile
>>    xts5/SHAPE/Makefile
>>    xts5/XIproto/Makefile
>>    xts5/XI/Makefile
>> diff --git a/xts5/Makefile.am b/xts5/Makefile.am
>> index 0b75838..29894cd 100644
>> --- a/xts5/Makefile.am
>> +++ b/xts5/Makefile.am
>> @@ -2,7 +2,7 @@ include common.mk
>>    
>>    SUBDIRS = . fonts src scenarios Xproto Xopen Xlib3 Xlib4 Xlib5 Xlib6 \
>>    	Xlib7 Xlib8 Xlib9 Xlib10 Xlib11 Xlib12 Xlib13 Xlib14 Xlib15 \
>> -	Xlib16 Xlib17 SHAPE XIproto XI
>> +	Xlib16 Xlib17 SHAPE XIproto XI Xt3
>>    noinst_HEADERS = include
>>    
>>    CLEANFILES = */*/tet_lock bin/xts-config bin/xts-run tetexec.cfg
>> diff --git a/xts5/Xt3/.gitignore b/xts5/Xt3/.gitignore
>> new file mode 100644
>> index 0000000..c0fe834
>> --- /dev/null
>> +++ b/xts5/Xt3/.gitignore
>> @@ -0,0 +1,21 @@
>> +CompositeWidget
>> +ConstraintWidget
>> +CoreWidget
>> +DataTypes
>> +XtCheckSubclass/XtCheckSubclass
>> +XtClass
>> +XtInitializeWidgetClass
>> +XtIsApplicationShell
>> +XtIsComposite
>> +XtIsConstraint
>> +XtIsObject
>> +XtIsOverrideShell
>> +XtIsRectObject
>> +XtIsShell
>> +XtIsSubclass
>> +XtIsTopLevelShell
>> +XtIsTransientShell
>> +XtIsVendorShell
>> +XtIsWMShell
>> +XtIsWidget
>> +XtSuperClass
>> diff --git a/xts5/Xt3/Makefile.am b/xts5/Xt3/Makefile.am
>> new file mode 100644
>> index 0000000..0a61ccf
>> --- /dev/null
>> +++ b/xts5/Xt3/Makefile.am
>> @@ -0,0 +1,47 @@
>> +include ../common.mk
>> +AUTOMAKE_OPTIONS = subdir-objects
>> +
>> +AM_CFLAGS = -I$(top_srcdir)/include \
>> +	-I$(top_srcdir)/src/tet3/inc \
>> +	-I$(top_srcdir)/xts5/include \
>> +	$(XAW_CFLAGS)
>> +LDADD = $(top_builddir)/src/tet3/tcm/libtcmmain.la \
>> +	$(top_builddir)/xts5/src/libxts5.la \
>> +	$(top_builddir)/xts5/src/libXtTest/libXtTest.la \
>> +	$(top_builddir)/xts5/src/libXtaw/libXtaw.la \
>> +	$(top_builddir)/src/tet3/apilib/libapi.la \
>> +	$(top_builddir)/src/tet3/apilib/libapi_s.la \
>> +	$(XAW_LIBS)
>> +
>> +testprogdir = $(libexecdir)/$(subdir)
>> +nobase_testprog_PROGRAMS = $(tprogs)
>> +BUILT_SOURCES = $(tprogs:=.c)
>> +EXTRA_DIST = $(addsuffix .m,$(filter-out %_m,$(tprogs)))
>> +DISTCLEANFILES = $(BUILT_SOURCES)
>> +
>> +tprogs = \
>> +	CompositeWidget \
>> +	ConstraintWidget \
>> +	CoreWidget \
>> +	DataTypes \
>> +	XtCheckSubclass/XtCheckSubclass \
>> +	XtClass \
>> +	XtInitializeWidgetClass \
>> +	XtIsApplicationShell \
>> +	XtIsComposite \
>> +	XtIsConstraint \
>> +	XtIsObject \
>> +	XtIsOverrideShell \
>> +	XtIsRectObject \
>> +	XtIsShell \
>> +	XtIsSubclass \
>> +	XtIsTopLevelShell \
>> +	XtIsTransientShell \
>> +	XtIsVendorShell \
>> +	XtIsWidget \
>> +	XtIsWMShell \
>> +	XtSuperClass
>> +
>> +XtCheckSubclass_XtCheckSubclass_SOURCES = XtCheckSubclass/XtCheckSubclass.c \
>> +					  XtCheckSubclass/Test12.c \
>> +					  XtCheckSubclass/Test3.c
>>
> 
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel
> 



More information about the xorg-devel mailing list