Страниц: [1]
  Печать  
Автор Тема: XFree86 4.2 + QNX4  (Прочитано 4127 раз)
@nger
Гость
« : Февраля 11, 2010, 01:05:39 pm »

Скачал X из:
http://www.openqnx.com/index.php?name=Downloads&req=viewdownload&cid=4

Пытаюсь собрать один, достаточно древний проект, но на этапе линковки выдается огромное кол-во undefined symbol X-ых функций (например из либы libX11.a - XDrawLine, XGetImage и т.д.). Однако, линковщик X-овые либы находит, как ни странно. В чем может быть проблема?
« Последнее редактирование: Февраля 11, 2010, 01:24:58 pm от @nger » Записан
@nger
Гость
« Ответ #1 : Февраля 11, 2010, 01:30:22 pm »

Небольшой семпл:

Код:
/bin/cc  -N16K -M -g1 "-Wl,opt symfile"   -o/home/pjk/photon/pjk/qnx4/x86/o/pjk  -Wl,@ENVOBJS -L. -L/usr/X11R6/lib -L/home/pjk/photon/pjk/../lib/ph/qnx4/a -L/home/pjk/photon/pjk/../lib/render/qnx4/x86/a.g -L/usr/lib     -lXt -lX11 -lSM -lICE -lsocket -lph -lphrender_g
Warning(1038): DEBUG directive appears after object files
Warning(1027): file receive.o(/home/pjk/photon/pjk/receive.c): redefinition of _grproxy ignored
Warning(1027): file x.o(/home/pjk/photon/pjk/x.c): redefinition of _ximage ignored
Warning(1028): _XtStrings is an undefined reference
Warning(1028): XtMalloc_ is an undefined reference
Warning(1028): XtAppInitialize_ is an undefined reference
Warning(1028): XtDisplay_ is an undefined reference
Warning(1028): XtGetApplicationResources_ is an undefined reference
Warning(1028): XtScreen_ is an undefined reference
Warning(1028): _XtShellStrings is an undefined reference
Warning(1028): XCreateColormap_ is an undefined reference
Warning(1028): XVisualIDFromVisual_ is an undefined reference
Warning(1028): XGetVisualInfo_ is an undefined reference
Warning(1028): XFree_ is an undefined reference
Warning(1028): XtDestroyWidget_ is an undefined reference
Warning(1028): _applicationShellWidgetClass is an undefined reference
Warning(1028): XtAppCreateShell_ is an undefined reference
Warning(1028): _coreWidgetClass is an undefined reference
Warning(1028): XtVaCreateManagedWidget_ is an undefined reference
Warning(1028): XtSetMappedWhenManaged_ is an undefined reference
Warning(1028): XtRealizeWidget_ is an undefined reference
Warning(1028): XtVaGetValues_ is an undefined reference
Warning(1028): XCreateGC_ is an undefined reference
Warning(1028): XCreatePixmap_ is an undefined reference
Warning(1028): XtAddEventHandler_ is an undefined reference
Warning(1028): XtAppAddInput_ is an undefined reference
Warning(1028): XtWindow_ is an undefined reference
Warning(1028): XSetWMHints_ is an undefined reference
Warning(1028): XMapWindow_ is an undefined reference
Warning(1028): XInternAtom_ is an undefined reference
Warning(1028): XtWidgetToApplicationContext_ is an undefined reference
Warning(1028): XtAppAddActions_ is an undefined reference
Warning(1028): XtParseTranslationTable_ is an undefined reference
Warning(1028): XtOverrideTranslations_ is an undefined reference
Warning(1028): XSetWMProtocols_ is an undefined reference
Warning(1028): XSetErrorHandler_ is an undefined reference
Warning(1028): XSetIOErrorHandler_ is an undefined reference
Warning(1028): XtAppMainLoop_ is an undefined reference
Warning(1028): XFreeColormap_ is an undefined reference
Warning(1028): XAllocColor_ is an undefined reference
Warning(1028): XQueryColor_ is an undefined reference
Warning(1028): XGetImage_ is an undefined reference
Warning(1028): XCheckMaskEvent_ is an undefined reference
Warning(1028): XQueryPointer_ is an undefined reference
Warning(1028): XLookupString_ is an undefined reference
Warning(1028): XCheckTypedWindowEvent_ is an undefined reference
Warning(1028): XCopyArea_ is an undefined reference
Warning(1028): XDrawPoint_ is an undefined reference
Warning(1028): XFillRectangle_ is an undefined reference
Warning(1028): XDrawLine_ is an undefined reference
Warning(1028): XSetForeground_ is an undefined reference
Warning(1028): XSetBackground_ is an undefined reference
Warning(1028): XSetClipRectangles_ is an undefined reference
Warning(1028): XSetFunction_ is an undefined reference
Warning(1028): XCreatePixmapFromBitmapData_ is an undefined reference
Warning(1028): XFreeCursor_ is an undefined reference
Warning(1028): XCreatePixmapCursor_ is an undefined reference
Warning(1028): XDefineCursor_ is an undefined reference
Warning(1028): XFreePixmap_ is an undefined reference
Warning(1028): XCreateBitmapFromData_ is an undefined reference
Warning(1028): XSetStipple_ is an undefined reference
Warning(1028): XSetTSOrigin_ is an undefined reference
Warning(1028): XSetFillStyle_ is an undefined reference
Warning(1028): XFlush_ is an undefined reference
Warning(1028): XRefreshKeyboardMapping_ is an undefined reference
file main.o(/home/pjk/photon/pjk/main.c): undefined symbol _XtStrings
file main.o(/home/pjk/photon/pjk/main.c): undefined symbol XtMalloc_
file main.o(/home/pjk/photon/pjk/main.c): undefined symbol XtAppInitialize_
file main.o(/home/pjk/photon/pjk/main.c): undefined symbol XtDisplay_
file main.o(/home/pjk/photon/pjk/main.c): undefined symbol XtGetApplicationResources_
file main.o(/home/pjk/photon/pjk/main.c): undefined symbol XtScreen_
file main.o(/home/pjk/photon/pjk/main.c): undefined symbol _XtShellStrings
file main.o(/home/pjk/photon/pjk/main.c): undefined symbol XCreateColormap_
file main.o(/home/pjk/photon/pjk/main.c): undefined symbol XVisualIDFromVisual_
file main.o(/home/pjk/photon/pjk/main.c): undefined symbol XGetVisualInfo_
file main.o(/home/pjk/photon/pjk/main.c): undefined symbol XFree_
file main.o(/home/pjk/photon/pjk/main.c): undefined symbol XtDestroyWidget_
file main.o(/home/pjk/photon/pjk/main.c): undefined symbol _applicationShellWidgetClass
file main.o(/home/pjk/photon/pjk/main.c): undefined symbol XtAppCreateShell_
file main.o(/home/pjk/photon/pjk/main.c): undefined symbol _coreWidgetClass
file main.o(/home/pjk/photon/pjk/main.c): undefined symbol XtVaCreateManagedWidget_
file main.o(/home/pjk/photon/pjk/main.c): undefined symbol XtSetMappedWhenManaged_
file main.o(/home/pjk/photon/pjk/main.c): undefined symbol XtRealizeWidget_
file main.o(/home/pjk/photon/pjk/main.c): undefined symbol XtVaGetValues_
Записан
ob1
Hero Member
*****
Offline Offline

Сообщений: 633


What has two thumbs up and doesn't give a crap?


Просмотр профиля WWW
« Ответ #2 : Февраля 11, 2010, 01:48:00 pm »

А, например, символ _XtStrings точно есть в собранной библиотеке Xt?
Записан
@nger
Гость
« Ответ #3 : Февраля 11, 2010, 02:22:06 pm »

А, например, символ _XtStrings точно есть в собранной библиотеке Xt?

Если символ XtStrings соответствует _XtStrings, то есть. По большому счету история с символами "_" в именах такая же в большинстве случаев.

Код:
# wlib -irn /usr/X11R6/lib/libXt.a | grep XtString
WATCOM Library Manager Version 10.6
Copyright by WATCOM International Corp. 1988, 1996. All rights reserved.
WATCOM is a trademark of WATCOM International Corp.
XtStringConversionWarning.................................Converters
XtStrings.........StringDefs            XtSuperclass.......Intrinsic
  XtShellStrings    XtStrings
  XtStringConversionWarning           _XtAddDefaultConverters
Записан
Страниц: [1]
  Печать  
 
Перейти в: