|
From: Scott L. <sl...@gs...> - 2002-02-25 02:38:50
|
> I've tried compiling the CVS version of SCWM and get the following errors
> (see attached.)
>
> What libraries am I missing?
>
> Fred
>
>
> Making all in src
> make[1]: Entering directory `/drives/work/src/scwm-cvs/scwm/src'
> make all-am
> make[2]: Entering directory `/drives/work/src/scwm-cvs/scwm/src'
> /bin/sh ../libtool --mode=link g++ -g -O2 -o scwm -L/usr/X11R6/lib -export-dynamic Grab.o ICCCM.o add_window.o binding.o borders.o callbacks.o changed.o color.o colormaps.o cursor.o decor.o decorations.o deskpage.o drawmenu.o errors.o events.o face.o focus.o font.o getopt.o getopt1.o guile-compat.o icons.o image.o init_scheme_string.o log-usage.o menu.o menuitem.o menulook.o miscprocs.o module-interface.o move.o message-window.o placement.o resize.o screen.o scwm.o shutdown.o string_token.o syscompat.o system.o util.o virtual.o window.o winprop.o xmisc.o xproperty.o xrm.o session-manager.o -lSM -lICE -lXext -lXtst -lXmu -lXpm -lX11 -L/usr/local/guile-1.4/bin/lib -L/usr/local/guile-1.4//lib -lguile -lm -lm -L/usr/local/lib -lImlib -ljpeg -ltiff -lungif -lpng -lz -lm -lXext -L/usr/X11R6/lib -lSM -lICE -lXext -lX11
> g++ -g -O2 -o scwm Grab.o ICCCM.o add_window.o binding.o borders.o callbacks.o changed.o color.o colormaps.o cursor.o decor.o decorations.o deskpage.o drawmenu.o errors.o events.o face.o focus.o font.o getopt.o getopt1.o guile-compat.o icons.o image.o init_scheme_string.o log-usage.o menu.o menuitem.o menulook.o miscprocs.o module-interface.o move.o message-window.o placement.o resize.o screen.o scwm.o shutdown.o string_token.o syscompat.o system.o util.o virtual.o window.o winprop.o xmisc.o xproperty.o xrm.o session-manager.o -Wl,--export-dynamic -L/usr/X11R6/lib -lSM -lICE -lXext -lXtst -lXmu -lXpm -lX11 -L/usr/local/guile-1.4/bin/lib -L/usr/local/guile-1.4//lib /usr/local/guile-1.4//lib/libguile.so -ldl -lm -lm -lm -L/usr/local/lib /usr/local/lib/libImlib.so -lm /usr/local/lib/libjpeg.so -ltiff /usr/local/lib/libungif.so -L/usr/X11/lib -lX11 -lpng -lz -lm -lXext -lSM -lICE -lXext -lX11 -Wl,--rpath -Wl,/usr/local/guile-1.4//lib -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/guile-1.4//lib -Wl,--rpath -Wl,/usr/local/lib
> add_window.o: In function `AddWindow':
> /drives/work/src/scwm-cvs/scwm/src/add_window.c:372: undefined reference to `restoreWindowState'
> events.o: In function `NoEventsScwmUpdate':
> /drives/work/src/scwm-cvs/scwm/src/events.c:2032: undefined reference to `IceSMfd'
> /drives/work/src/scwm-cvs/scwm/src/events.c:2043: undefined reference to `IceSMfd'
> /drives/work/src/scwm-cvs/scwm/src/events.c:2045: undefined reference to `IceSMconn'
> /drives/work/src/scwm-cvs/scwm/src/events.c:2048: undefined reference to `SMconn'
> /drives/work/src/scwm-cvs/scwm/src/events.c:2049: undefined reference to `IceSMconn'
> scwm.o: In function `scwm_main':
> /drives/work/src/scwm-cvs/scwm/src/scwm.c:981: undefined reference to `SmcId'
> /drives/work/src/scwm-cvs/scwm/src/scwm.c:1140: undefined reference to `initSM'
> shutdown.o: In function `Done':
> /drives/work/src/scwm-cvs/scwm/src/shutdown.c:123: undefined reference to `doneSM'
> collect2: ld returned 1 exit status
> make[2]: *** [scwm] Error 1
> make[2]: Leaving directory `/drives/work/src/scwm-cvs/scwm/src'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/drives/work/src/scwm-cvs/scwm/src'
> make: *** [all-recursive] Error 1
>
These symbols should be defined by session-manager.o.
Run 'nm scwm/src/session-manager.o'. You should get something like the
following:
U Done
U FlagsBitsFromSw
U GetXProperty
U IceAddConnectionWatch
U IceConnectionNumber
00000004 D IceSMconn
00000000 D IceSMfd
00000d20 t Letext
U PswUpdateFlags
00000000 b SMData
00000b20 T SM_error_message
00000b38 T SM_register
00000008 D SMconn
00000020 b SMerror
00000010 d SavePhase
U Scr
U SmcCloseConnection
U SmcGetIceConnection
0000000c D SmcId
U SmcOpenConnection
U SmcRequestSaveYourselfPhase2
U SmcSaveYourselfDone
U SmcSetProperties
U UserHome
U UserName
00000004 C XA_SM_CLIENT_ID
U XA_WM_CLIENT_LEADER
U XFree
U XInternAtom
U __errno_location
00000748 t die
00000c64 T doneSM
U dpy
U fclose
U feof
U fopen
U fread
U free
U fwrite
U g_argc
U g_argv
000000f0 t getWindowClientId
U getenv
U gh_str02scm
00000ac4 t iceWatchFD
00000cd4 T initSM
0000064c t loadMyself
0000002c t readI32
000000a4 t readString
000002e4 t readWindow
000003c4 T restoreWindowState
00000216 r s_SM_error_message
00000227 r s_SM_register
U safemalloc
00000740 t saveComplete
000006f8 t saveYourself
0000054c t saveYourself2
U scm_make_gsubr
U scwm_msg
00000790 t setSMProperties
00000720 t shutdownCancelled
U sprintf
000004dc t statefile
U strcmp
U strerror
U strncpy
00000000 t writeI32
00000060 t writeString
000001bc t writeWindow
U xgetcwd
If you don't have a line with 'D IceSMfd', you'll get the error you are
getting.
My guess is that somehow session-manager.o got built with a different config
file than the rest of scwm. Try removing session-manager.o and see if you
still
get the problem.
Let me know if you continue having problems.
- Scott
|