Lapo Luchini wrote: > "on its way" was a bit optimistic.. the simple "--with-xaw3d" > configure switch leads to some problems... things defined twice. > Strange as configure detects everything correctly. > > /usr/X11R6/lib//libXt.a(Intrinsic.o)(.text+0x10):Intrinsic.c: multiple > definition of `XtIsSubclass' > /usr/X11R6/lib//libXaw3d.a(d000327.o)(.text+0x0): first defined here > /usr/X11R6/lib//libXt.a(Intrinsic.o)(.text+0x714):Intrinsic.c: > multiple definition of `XtRealizeWidget' > /usr/X11R6/lib//libXaw3d.a(d000359.o)(.text+0x0): first defined here > /usr/X11R6/lib//libXt.a(Intrinsic.o)(.text+0xa08):Intrinsic.c: > multiple definition of `XtCreateWindow' > (and so on) > > Its the configure that incorrectly includes libXt or libXaw3d that > incorrectly exports them? > I eat with friends this night... i'll investigate that this evening. > Uhm... command line is the following:
gcc -O2 -g -Wall -o civclient cityrepdata.o civclient.o climisc.o clinet.o control.o goto.o helpdata.o packhand.o options.o tilespec.o gui-xaw/libguiclient.a ../common/libcivcommon.a -lintl gui-xaw/libguiclient.a ../common/libcivcommon.a -L/usr/X11R6/lib/ -lXaw3d -lXpm -lXmu -lXt -lSM -lICE -lXext -lX11 -lz and I can solve the issue by putting -lXaw3d last in line (but the many auto-import warnings are still shown) gcc -O2 -g -Wall -o civclient cityrepdata.o civclient.o climisc.o clinet.o control.o goto.o helpdata.o packhand.o options.o tilespec.o gui-xaw/libguiclient.a ../common/libcivcommon.a -lintl gui-xaw/libguiclient.a ../common/libcivcommon.a -L/usr/X11R6/lib/ -lXpm -lXmu -lXt -lSM -lICE -lXext -lX11 -lz -lXaw3d Is this normal/expected? I guess that freeciv compiles OK under linux with the library order it has by default. But if someone thinks this is normal I can patch the cygwin version to move the -lXaw3d argument... I include the full output for reference: -------------------------------------------------------------------------------- $ gcc -O2 -g -Wall -o civclient cityrepdata.o civclient.o climisc.o clinet.o control.o goto.o helpdata.o packhand.o options.o tilespec.o gui-xaw/libguiclient.a ../common/libcivcommon.a -lintl gui-xaw/libguiclient.a ../common/libcivcommon.a -L/usr/X11R6/lib/ -lXaw3d -lXpm -lXmu -lXt -lSM -lICE -lXext -lX11 -lz /usr/X11R6/lib//libXt.a(Intrinsic.o)(.text+0x10):Intrinsic.c: multiple definition of `XtIsSubclass' /usr/X11R6/lib//libXaw3d.a(d000327.o)(.text+0x0): first defined here /usr/X11R6/lib//libXt.a(Intrinsic.o)(.text+0x714):Intrinsic.c: multiple definition of `XtRealizeWidget' /usr/X11R6/lib//libXaw3d.a(d000359.o)(.text+0x0): first defined here /usr/X11R6/lib//libXt.a(Intrinsic.o)(.text+0xa08):Intrinsic.c: multiple definition of `XtCreateWindow' /usr/X11R6/lib//libXaw3d.a(d000237.o)(.text+0x0): first defined here /usr/X11R6/lib//libXt.a(Intrinsic.o)(.text+0xd50):Intrinsic.c: multiple definition of `XtNameToWidget' /usr/X11R6/lib//libXaw3d.a(d000341.o)(.text+0x0): first defined here /usr/X11R6/lib//libXt.a(Intrinsic.o)(.text+0xed0):Intrinsic.c: multiple definition of `XtDisplay' /usr/X11R6/lib//libXaw3d.a(d000279.o)(.text+0x0): first defined here /usr/X11R6/lib//libXt.a(Intrinsic.o)(.text+0xf28):Intrinsic.c: multiple definition of `XtScreen' /usr/X11R6/lib//libXaw3d.a(d000383.o)(.text+0x0): first defined here /usr/X11R6/lib//libXt.a(Intrinsic.o)(.text+0xf38):Intrinsic.c: multiple definition of `XtWindowOfObject' /usr/X11R6/lib//libXaw3d.a(d000434.o)(.text+0x0): first defined here /usr/X11R6/lib//libXt.a(Intrinsic.o)(.text+0xf64):Intrinsic.c: multiple definition of `XtWindow' /usr/X11R6/lib//libXaw3d.a(d000433.o)(.text+0x0): first defined here /usr/X11R6/lib//libXt.a(Intrinsic.o)(.text+0x10b8):Intrinsic.c: multiple definition of `XtIsSensitive' /usr/X11R6/lib//libXaw3d.a(d000326.o)(.text+0x0): first defined here /usr/X11R6/lib//libXt.a(Intrinsic.o)(.text+0x11f4):Intrinsic.c: multiple definition of `XtParent' /usr/X11R6/lib//libXaw3d.a(d000349.o)(.text+0x0): first defined here /usr/X11R6/lib//libXt.a(Callback.o)(.text+0x1ec):Callback.c: multiple definition of `XtAddCallback' /usr/X11R6/lib//libXaw3d.a(d000167.o)(.text+0x0): first defined here /usr/X11R6/lib//libXt.a(Callback.o)(.text+0xb94):Callback.c: multiple definition of `XtRemoveAllCallbacks' /usr/X11R6/lib//libXaw3d.a(d000367.o)(.text+0x0): first defined here /usr/X11R6/lib//libXt.a(Callback.o)(.text+0xff8):Callback.c: multiple definition of `XtCallCallbackList' /usr/X11R6/lib//libXaw3d.a(d000216.o)(.text+0x0): first defined here /usr/X11R6/lib//libXt.a(Initialize.o)(.text+0x384):Initialize.c: multiple definition of `_XtInherit' /usr/X11R6/lib//libXaw3d.a(d000613.o)(.text+0x0): first defined here /usr/X11R6/lib//libXt.a(Resources.o)(.text+0x1bf0):Resources.c: multiple definition of `XtGetApplicationResources' /usr/X11R6/lib//libXaw3d.a(d000290.o)(.text+0x0): first defined here /usr/X11R6/lib//libXt.a(NextEvent.o)(.text+0x1068):NextEvent.c: multiple definition of `XtRemoveInput' /usr/X11R6/lib//libXaw3d.a(d000374.o)(.text+0x0): first defined here /usr/X11R6/lib//libXt.a(NextEvent.o)(.text+0xe88):NextEvent.c: multiple definition of `XtAppAddInput' /usr/X11R6/lib//libXaw3d.a(d000182.o)(.text+0x0): first defined here /usr/X11R6/lib//libXt.a(NextEvent.o)(.text+0xb50):NextEvent.c: multiple definition of `XtAppAddWorkProc' /usr/X11R6/lib//libXaw3d.a(d000185.o)(.text+0x0): first defined here /usr/X11R6/lib//libXt.a(NextEvent.o)(.text+0x970):NextEvent.c: multiple definition of `XtAppAddTimeOut' /usr/X11R6/lib//libXaw3d.a(d000184.o)(.text+0x0): first defined here /usr/X11R6/lib//libXt.a(Geometry.o)(.text+0xd38):Geometry.c: multiple definition of `XtTranslateCoords' /usr/X11R6/lib//libXaw3d.a(d000409.o)(.text+0x0): first defined here /usr/X11R6/lib//libXt.a(Geometry.o)(.text+0xe40):Geometry.c: multiple definition of `XtQueryGeometry' /usr/X11R6/lib//libXaw3d.a(d000358.o)(.text+0x0): first defined here /usr/X11R6/lib//libXt.a(Event.o)(.text+0x1e1c):Event.c: multiple definition of `XtDispatchEvent' /usr/X11R6/lib//libXaw3d.a(d000277.o)(.text+0x0): first defined here /usr/X11R6/lib//libXt.a(Event.o)(.text+0x237c):Event.c: multiple definition of `XtAppMainLoop' /usr/X11R6/lib//libXaw3d.a(d000194.o)(.text+0x0): first defined here /usr/X11R6/lib//libXt.a(TMstate.o)(.text+0x2e30):TMstate.c: multiple definition of `XtOverrideTranslations' /usr/X11R6/lib//libXaw3d.a(d000346.o)(.text+0x0): first defined here /usr/X11R6/lib//libXt.a(TMaction.o)(.text+0xdb4):TMaction.c: multiple definition of `XtAppAddActions' /usr/X11R6/lib//libXaw3d.a(d000179.o)(.text+0x0): first defined here /usr/X11R6/lib//libXt.a(Create.o)(.text+0xe8c):Create.c: multiple definition of `XtCreateManagedWidget' /usr/X11R6/lib//libXaw3d.a(d000233.o)(.text+0x0): first defined here /usr/X11R6/lib//libXt.a(Create.o)(.text+0x1094):Create.c: multiple definition of `XtCreatePopupShell' /usr/X11R6/lib//libXaw3d.a(d000234.o)(.text+0x0): first defined here /usr/X11R6/lib//libXt.a(TMparse.o)(.text+0x2e3c):TMparse.c: multiple definition of `XtParseTranslationTable' /usr/X11R6/lib//libXaw3d.a(d000351.o)(.text+0x0): first defined here /usr/X11R6/lib//libXt.a(Destroy.o)(.text+0x660):Destroy.c: multiple definition of `XtDestroyWidget' /usr/X11R6/lib//libXaw3d.a(d000274.o)(.text+0x0): first defined here /usr/X11R6/lib//libXt.a(Popup.o)(.text+0x1ac):Popup.c: multiple definition of `XtPopup' /usr/X11R6/lib//libXaw3d.a(d000355.o)(.text+0x0): first defined here /usr/X11R6/lib//libXt.a(Popup.o)(.text+0x254):Popup.c: multiple definition of `XtPopupSpringLoaded' /usr/X11R6/lib//libXaw3d.a(d000356.o)(.text+0x0): first defined here /usr/X11R6/lib//libXt.a(Keyboard.o)(.text+0xa64):Keyboard.c: multiple definition of `XtSetKeyboardFocus' /usr/X11R6/lib//libXaw3d.a(d000393.o)(.text+0x0): first defined here Info: resolving _formWidgetClass by linking to __imp__formWidgetClass (auto-import) Info: resolving _labelWidgetClass by linking to __imp__labelWidgetClass (auto-import) Info: resolving _asciiTextWidgetClass by linking to __imp__asciiTextWidgetClass (auto-import) Info: resolving _commandWidgetClass by linking to __imp__commandWidgetClass (auto-import) Info: resolving _listWidgetClass by linking to __imp__listWidgetClass (auto-import) Info: resolving _menuButtonWidgetClass by linking to __imp__menuButtonWidgetClass (auto-import) Info: resolving _simpleMenuWidgetClass by linking to __imp__simpleMenuWidgetClass (auto-import) Info: resolving _smeLineObjectClass by linking to __imp__smeLineObjectClass (auto-import) Info: resolving _smeBSBObjectClass by linking to __imp__smeBSBObjectClass (auto-import) Info: resolving _viewportWidgetClass by linking to __imp__viewportWidgetClass (auto-import) Info: resolving _toggleWidgetClass by linking to __imp__toggleWidgetClass (auto-import) Info: resolving _scrollbarWidgetClass by linking to __imp__scrollbarWidgetClass (auto-import) Info: resolving _treeWidgetClass by linking to __imp__treeWidgetClass (auto-import) Info: resolving _simpleClassRec by linking to __imp__simpleClassRec (auto-import) Info: resolving _commandClassRec by linking to __imp__commandClassRec (auto-import) collect2: ld returned 1 exit status -------------------------------------------------------------------------------- $ gcc -O2 -g -Wall -o civclient cityrepdata.o civclient.o climisc.o clinet.o control.o goto.o helpdata.o packhand.o options.o tilespec.o gui-xaw/libguiclient.a ../common/libcivcommon.a -lintl gui-xaw/libguiclient.a ../common/libcivcommon.a -L/usr/X11R6/lib/ -lXpm -lXmu -lXt -lSM -lICE -lXext -lX11 -lz -lXaw3d Info: resolving _formWidgetClass by linking to __imp__formWidgetClass (auto-import) Info: resolving _labelWidgetClass by linking to __imp__labelWidgetClass (auto-import) Info: resolving _asciiTextWidgetClass by linking to __imp__asciiTextWidgetClass (auto-import) Info: resolving _commandWidgetClass by linking to __imp__commandWidgetClass (auto-import) Info: resolving _listWidgetClass by linking to __imp__listWidgetClass (auto-import) Info: resolving _menuButtonWidgetClass by linking to __imp__menuButtonWidgetClass (auto-import) Info: resolving _simpleMenuWidgetClass by linking to __imp__simpleMenuWidgetClass (auto-import) Info: resolving _smeLineObjectClass by linking to __imp__smeLineObjectClass (auto-import) Info: resolving _smeBSBObjectClass by linking to __imp__smeBSBObjectClass (auto-import) Info: resolving _viewportWidgetClass by linking to __imp__viewportWidgetClass (auto-import) Info: resolving _toggleWidgetClass by linking to __imp__toggleWidgetClass (auto-import) Info: resolving _scrollbarWidgetClass by linking to __imp__scrollbarWidgetClass (auto-import) Info: resolving _treeWidgetClass by linking to __imp__treeWidgetClass (auto-import) Info: resolving _simpleClassRec by linking to __imp__simpleClassRec (auto-import) Info: resolving _commandClassRec by linking to __imp__commandClassRec (auto-import) -------------------------------------------------------------------------------- Right now I don't have a linux/freebsd with X installed to try... -- Lapo 'Raist' Luchini [EMAIL PROTECTED] (PGP & X.509 keys available) http://www.lapo.it (ICQ UIN: 529796)