From: F. H. <hei...@am...> - 2002-02-25 01:54:27
Attachments:
MAKE
|
I've tried compiling the CVS version of SCWM and get the following errors (see attached.) What libraries am I missing? Fred |
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 |
From: Scott L. <sl...@gs...> - 2002-02-25 23:37:20
|
> Scott Lenser wrote: > > >These symbols should be defined by session-manager.o. > > > >Run 'nm scwm/src/session-manager.o'. You should get something like the > >following: > > > Hmmm. Interesting. When I do a normal build (configure, make clean, > make.) session-manager.o > comes up "not there" i.e. it is not built. Then I go into the src > directory and do > gcc -c session-manager.c and do make again. That's when I get the > undefined symbols. > It seems session-manager.o is not getting built properly on my system. > I will investigate. > Strange. Thanks for investigating, let me know what you figure out. You need to pass the flag '-DHAVE_CONFIG_H' to the build of session-manager.c for it to have a chance of linking properly. The Makefile should take care of this though, not sure why it is not building on your system. - Scott |
From: Scott L. <sl...@gs...> - 2002-02-16 23:57:25
|
> Scott, > > Thanks for your reply. > > >Hi, > > > > The current version in CVS should work with Guile 1.4. I haven't bothered > >targeting any later version since 1.4 seems to be the latest version in both > >Debian and Redhat. It is certainly the latest in Debian (which is what I run) > > > Is there a way to configure/sequester SCWM so that it can run and use > it's own personal copy of guile? > I know you can compile SCWM with it's own copy of guile, but once it's > installed will it search the > system path for a guile? > > Guile 1.5.x seems to be in use by some of the latest Gnome packages. > I'm pretty sure the latest > version of Gnumeric is using 1.5.x. Of course, that is a development > version of guile. From what > I understand the even versions ,1.4, 1.6 etc., are stable versions. I > think I saw on the guile list or > site that either a 1.6 or 1.8 release was near. > > Fred > Hmm, not available yet in Debian unstable. What distribution/source packages are you using. My understanding was that Guile was on version 1.5.x which was going to be a full release but they decided to redo their numbering so that it is a devel release. They still strongly recommend using it over 1.4.x on the Guile site. I haven't bothered to port to it yet because I didn't think it was in common use in the distributions. It certainly doesn't seem to be in Debian yet but sometimes Debian can be slow on some packages since it is all volunteer based. At the moment, I'm focusing on testing to try to make a good of release for distributions as possible. When I was porting from v1.3 to v1.4, I installed guile in a strange path and passed the configure option to Scwm to look there for guile. I worked great and Scwm picked up the right files at runtime so I think it's pretty easy to get Scwm to use it's own version of guile. Scott |
From: Scott L. <sl...@gs...> - 2002-02-19 08:43:51
|
> Scott, > > > > >Hmm, not available yet in Debian unstable. What distribution/source packages > >are you > > > Well, I have several Linux setups on my various computers. Most of them > are running Debian > unstable. The version of Linux that I use daily though was Slackware a > long time ago. Over > time I replaced all the files by compiling sources. When I compiled > Gnumeric 1.0.4 it said > guile 1.5.x was required (if my memory serves me.) so that's what I have > installed. > > It looks like Gnumeric 1.0.4 comes with Debian unstable, but the Debian > folks must > not have the Guile plugin included, since it is not listed in the > dependencies. If you > compile Gnumeric from the tarball, it looks for guile 1.5.x. > > Fred > That sucks. I hope Debian finds a good solution to the problem of programs that have optional dependencies soon. If the newer gnome apps require a newer version of guile than 1.4, then I'd really like to have support for those versions. At the moment, it's not too convenient for me to test it so I'll probably continue with the testing stuff I'm doing for now. I'm might try to port it after the next release of Scwm though (planned for whenever I get done testing the scheme code). Btw, the debian version of Scwm is missing the constraint solving stuff. - Scott |
From: Scott L. <sl...@gs...> - 2002-02-28 06:16:13
|
> Scott, > > Excuse me but I am pretty ignorant about a lot of UNIX programming but... > No problem. Everyone has to start somewhere. > Here are a couple things I have found. > Thank you. > In modules/scwmgtk helper -I$(top_srcdir)/include should be added to the > include line. > > INCLUDES = -I$(SCWM_SRC_DIR) -I/usr/X11R6/include > -I/usr/local/guile-1.4/include -I/usr/local/include > -I/usr/local//include -I$(top_srcdir)/include > This include should already be in the DEFS variable which gets passed to the compile. It probably should get moved to the INCLUDES var but this is auto* magic which I don't know much about and am therefore loath to touch. > In modules make-devtest the #!/usr/bin/zsh line has usr misspelled. > This is the standard spelling for the path to this executable. It needs to be spelled this way for the executable to be found. It is actually an abbreviation similar to /var and /etc. > I have guile-1.4 in /usr/local/guile-1.4. Even when I set the $PATH and > $LD_LIBRARY_PATH to > point to the right directories gawk cannot find "guile-func-name-check" > for some reason. > I ended up putting links to all the guile programs in /usr/bin/ so that > scwm could compile. > It looks like the Makefile currently insists that guile-doc-snarf be in your path. I'll add fixing this to my TODO list. gawk not finding this seems to be because the guile-doc-snarf that comes with guile 1.4 insists on guile-func-name-check being in your current directory. This is pretty broken, I hadn't realized this problem existed. This won't effect the build as this part simply checks to make sure that things are ok. I'll look into workarounds. For the moment, workaround is ignore error messages about not finding guile-func-name-check. > The last thing is, no matter what I do I cannot get "anchor.xpm" to be > found, even after adding > the correct path to .scwmrc. It's almost as if the image-load-path > variable is unitialized at the > point that xpm is needed. > Send me your .scwmrc and an 'ls -l' listing of the full path to the file and I will investigate. > I am attempting to run scwm out of /drives/work/src/scwm-cvs/scwm. I > have guile in > /usr/local/guile-1.4 and the gnome binaries and setup is in /usr/local/ > > I still have not found out why session-manager.c is not being built but > your suggestion > allowed me to build it manually. > Please send me a tarball of the complete build directory for scwm so I can figure out what is going wrong with the session-manager build. Also send me the command line you used to configure. Don't worry about size. The mail servers here can handle it. > Attached are some files that may help you make sense of all this. > > Thanks! > Well, you already found to bugs for me so I think we're even. Your welcome anyway though. > I would be especially grateful if you could give some tips on how to get > rid of some of the > errors I'm getting in .SCWM-errors. > see below. > Lastly, I am a newbie to scheme, but I got a book and am trying to learn. > There are some supposedly some good resources on the web like schemers.org. I haven't tried them myself since I had to learn for a class and we used the MIT Scheme reference manual. - Scott From your error file (a copy of the .scwmrc would help diagnose the errors): >Merging in /home/heitkamp/.Xresources >scwmmessages: unable to open font "-*-lucidatypewriter-medium-r-*-*-12-*-*-*-*-*-*-5", trying "fixed".... >xterm: unable to open font "-*-lucidatypewriter-medium-r-*-*-12-*-*-*-*-*-*-5", trying "fixed".... Couldn't find this font, is it installed? >Exec-ing wm as /drives/work/src/scwm-cvs/scwm/src/scwm >;;; loading /drives/work/src/scwm-cvs/scwm/app/scwm/gnome-hints.scm >[...] >;;; loading /drives/work/src/scwm-cvs/scwm/app/scwm/modifier-key-bindings.scm >[Scwm][make-image]: <<WARNING>> Image file was not found: `anchor.xpm' >[Scwm][make-image]: <<WARNING>> Image file was not found: `anchor-cursor.xpm' Not sure what is going on here. Your .scwmrc file and an ls -l listing of the location of these files would be helpful in diagnosing the problem. >;;; loading /drives/work/src/scwm-cvs/scwm/app/scwm/style.scm >;;; loading /drives/work/src/scwm-cvs/scwm/app/scwm/placement.scm >;;; loading /drives/work/src/scwm-cvs/scwm/app/scwm/focus-stack.scm >;;; loading /drives/work/src/scwm-cvs/scwm/app/scwm/window-locations.scm >ERROR: Unbound variable: scwm-set-master-solver! This is being caused by a build problem. The scwm support for cassowary is not getting built in. It looks from your configure log like scwm was not configured with cassowary support although I can't be sure. I you did configure with cassowary support the Makefile.* files might help me diagnose the problem. >ERROR: Unbound variable: enable-gnome-hints > Don't know what's going on here. This should have been defined by ./app/scwm/gnome-hints.scm which is getting loaded above. >;;; loading /drives/work/src/scwm-cvs/scwm/app/scwm/lambda-startup-logo.scm >[...] >;;; loading /drives/work/src/scwm-cvs/scwm/app/scwm/gtk.scm > >;;; WARNING (no code for module (gtk gtk)) > >;;; WARNING (no code for module (gtk gdk)) > This means it couldn't find the Guile module for gtk/gdk. Make sure you have guile-gtk installed. On debian, this is the following two packages or equivalent. ii libguilegtk-dev 0.20-8.1 Dev libraries for Guile-Gtk scheme interpreter ii libguilegtk0 0.20-8.1 Libraries for Guile-Gtk scheme interpreter >0* (enable-gnome-hints) > >/home/heitkamp/.scwmrc:139:1: In expression (enable-gnome-hints): Basically, same error as above. No clue. >/home/heitkamp/.scwmrc:139:1: Unbound variable: gdk-get-leader-window-id propagation of the guile-gtk problem >;;; loading /drives/work/src/scwm-cvs/scwm/app/scwm/synth-events.scm >[...] >ERROR: Unbound variable: gnome-install-window-styles > Your gnome support is screwed up some how. >ERROR: Unbound variable: at-point-placement > >ERROR: Unbound variable: at-point-placement > This should have defined by placement.scm which got loaded above. >[Scwm][bind-key]: <<WARNING>> Unbound modifier H- >[Scwm][bind-key]: <<WARNING>> Ignoring key binding `H-r' >[Scwm][bind-key]: <<WARNING>> Ignoring key binding `H-slash' >[Scwm][bind-key]: <<WARNING>> Ignoring key binding `H-M-slash' >[Scwm][bind-key]: <<WARNING>> Ignoring key binding `H-s' >[Scwm][bind-key]: <<WARNING>> Ignoring key binding `H-h' >[Scwm][bind-key]: <<WARNING>> Ignoring key binding `H-w' >[Scwm][bind-key]: <<WARNING>> Ignoring key binding `H-A-M-C-d' >[Scwm][bind-mouse]: <<WARNING>> Ignoring mouse bind/unbind request for H-2 >[Scwm][bind-mouse]: <<WARNING>> Ignoring mouse bind/unbind request for H-3 >[Scwm][bind-mouse]: <<WARNING>> Ignoring mouse bind/unbind request for H-1 >[Scwm][bind-key]: <<WARNING>> Ignoring key binding `H-S-s' >[Scwm][bind-mouse]: <<WARNING>> Ignoring mouse bind/unbind request for H-S-1 >[Scwm][bind-mouse]: <<WARNING>> Ignoring mouse bind/unbind request for H-A-1 >[Scwm][bind-mouse]: <<WARNING>> Ignoring mouse bind/unbind request for H-S-2 >[Scwm][bind-mouse]: <<WARNING>> Ignoring mouse bind/unbind request for H-M-3 >[Scwm][bind-key]: <<WARNING>> Ignoring key binding `H-z' >[Scwm][bind-key]: <<WARNING>> Ignoring key binding `H-p' >[Scwm][bind-key]: <<WARNING>> Ignoring key binding `H-e' >[Scwm][bind-key]: <<WARNING>> Ignoring key binding `H-S-e' >[Scwm][bind-mouse]: <<WARNING>> Ignoring mouse bind/unbind request for H-C-A-1 >[Scwm][bind-mouse]: <<WARNING>> Ignoring mouse bind/unbind request for H-C-A-3 >[Scwm][bind-mouse]: <<WARNING>> Ignoring mouse bind/unbind request for H-4 >[Scwm][bind-mouse]: <<WARNING>> Ignoring mouse bind/unbind request for H-C-4 >[Scwm][bind-mouse]: <<WARNING>> Ignoring mouse bind/unbind request for H-M-4 >[Scwm][bind-mouse]: <<WARNING>> Ignoring mouse bind/unbind request for H-5 >[Scwm][bind-mouse]: <<WARNING>> Ignoring mouse bind/unbind request for H-C-5 >[Scwm][bind-mouse]: <<WARNING>> Ignoring mouse bind/unbind request for H-M-5 >[Scwm][bind-key]: <<WARNING>> Ignoring key binding `H-M-g' >[Scwm][bind-key]: <<WARNING>> Ignoring key binding `H-g' >[Scwm][bind-key]: <<WARNING>> Ignoring key binding `H-f' >[Scwm][bind-key]: <<WARNING>> Ignoring key binding `H-c' >[Scwm][bind-key]: <<WARNING>> Ignoring key binding `H-x' >[Scwm][bind-key]: <<WARNING>> Ignoring key binding `H-t' >[Scwm][bind-key]: <<WARNING>> Ignoring key binding `H-period' >[Scwm][bind-key]: <<WARNING>> Ignoring key binding `H-S-period' >[Scwm][bind-key]: <<WARNING>> Ignoring key binding `H-M-period' >[Scwm][bind-key]: <<WARNING>> Ignoring key binding `H-M-S-period' >[Scwm][bind-key]: <<WARNING>> Ignoring key binding `H-d' >[Scwm][bind-key]: <<WARNING>> Ignoring key binding `H-q' >[Scwm][bind-key]: <<WARNING>> Ignoring key binding `H-M-x' You are trying to bind things to the hyper modifier bit but you haven't bound the hyper modifier bit to any key. You need to either use xmodmap to bind something to the hyper modifier bit or choose different bindings for these functions. >Audio File Library: could not open file '/drives/work/src/scwm-cvs/scwm/Media/scwm-startup.wav' [error 3] Does this file exist? >[...] >ERROR: Unbound variable: snap-initialize > You need to include this module in your .scwmrc file. You can do this with (use-scwm-modules snap-constraints) >ERROR: Unbound variable: menu-snapping > This function is not defined. Most likely you copied a function or binding that uses it but forgot to copy the function definition. >[...] ><<WARNING>> call-interactively: Procedure `scwm-quit' is not interactive. This is not a big deal. You can fix it with an (iteractive) declaration if desired. >scwmmessages: fatal IO error 32 (Broken pipe) or KillClient on X server >":0.0" |