From: <ope...@pl...> - 2002-10-18 15:45:51
|
Background info: I'm working on a SunBlade100 with Sun Solaris 8=2E0=2E I install most soft= ware into /opt/sfw/=2E The reason for this is that the /users/ and the /opt/loc= al/ directories are network mounts that I do not have write access to even wit= h root=2E This causes all sorts of trouble when doing a =2E/configure; make;= make install=2E So, I normally install like this: =2E/configure --prefix=3D/opt= /sfw; make; make install=2E FYI, "make" is actually "gmake"=2E Problem #1: resolved (FYI) The first problem I ran into was getting GLIB 2 and GTK 2 installed=2E For= some reason I had to "setenv PKG_CONFIG_PATH /opt/sfw/lib/pkgconfig" to GLIB 2 and GTK 2 along with the dependencies (atk, pango, gettext, libtool= , etc=2E) installed correctly=2E I'm guessing that I may have pkgconfig inst= alled twice on this system=2E The error I received before I did the "setenv" was= something along the lines of "GLIB 2 may not be installed correctly =2E=2E= =2E" The error output from the GAIM =2E/configure was vague and honestly not ve= ry helpful=2E I was able to finally figure out the problem when I encountered= a similar error during the =2E/configure for GTK 2=2E The GTK 2 error sugges= ted that I set the PKG_CONFIG_PATH=2E That did the trick Problem #2: unresolved (help please!) The newest versions of GTK 2, GLIB 2, gettext, libtool, atk, pango, and pkgconfig are all installed=2E CVS GAIM finished the "=2E/configure --prefix=3D/opt/sfw"=2E Here's the last few lines from the make output: make[3]: Entering directory `/opt/apps/DATA/gaim/cvs/gaim/src' /bin/sh =2E=2E/libtool --silent --mode=3Dlink gcc -g -O2 -I/usr/local/inc= lude -I/opt/include -I=2E=2E -I/opt/sfw/include/gtk-2=2E0 -I/opt/sfw/lib/gtk-2=2E0/include -I/opt/sfw/include/atk-1=2E0 -I/opt/sfw/include/pango-1=2E0 -I/usr/openwin/include -I/opt/sfw/include/glib-2=2E0 -I/opt/sfw/lib/glib-2=2E0/include =20 -DGTK_ENABLE_BROKEN -I/opt/sfw/include -I/usr/perl5/5=2E00503/sun4-solaris/CORE=20 -DLOCALEDIR=3D\"/opt/sfw/share/locale\" -DLIBDIR=3D\"/opt/sfw/lib/gaim/\"=20= -DDATADIR=3D\"/opt/sfw/share\" -o gaim -export-dynamic about=2Eo aim=2Eo = away=2Eo browser=2Eo buddy=2Eo buddy_chat=2Eo conversation=2Eo core=2Eo dialogs=2Eo= ft=2Eo gaimrc=2Eo gtkimhtml=2Eo gtkspell=2Eo html=2Eo idle=2Eo list=2Eo md5=2Eo m= odule=2Eo multi=2Eo perl=2Eo prefs=2Eo proxy=2Eo prpl=2Eo server=2Eo socket=2Eo sound=2Eo util= =2Eo getopt=2Eo getopt1=2Eo -lnsl -lresolv -L/opt/sfw/lib -lgtk-x11-2=2E0 -lgdk-x11-2=2E0= -latk-1=2E0 -lgdk_pixbuf-2=2E0 -lm -lpangox-1=2E0 -lpango-1=2E0 -lgobject-= 2=2E0 -lgmodule-2=2E0 -ldl -lglib-2=2E0 -lintl -L/opt/sfw/lib -lesd -laudiofil= e -lm -lresolv -lrt -lnsl -lsocket -R /usr/perl5/5=2E00503/sun4-solaris/CORE /usr/perl5/5=2E00503/sun4-solaris/auto/DynaLoader/DynaLoader=2Ea -L/usr/perl5/5=2E00503/sun4-solaris/CORE -lperl -lsocket -lnsl -ldl -lm -lcrypt -L/usr/openwin/lib -lintl Undefined first referenced symbol in file XScreenSaverAllocInfo idle=2Eo (symbol belongs to implicit dependency /usr/openwin/lib/libXext=2Eso=2E0) XIconifyWindow conversation=2Eo (symbol belongs to implicit dependency /usr/openwin/lib/libX11=2Eso=2E4) XGetWindowProperty browser=2Eo (symbol belongs to implic= it dependency /usr/openwin/lib/libX11=2Eso=2E4) XSelectInput browser=2Eo (symbol belongs to implic= it dependency /usr/openwin/lib/libX11=2Eso=2E4) XScreenSaverQueryInfo idle=2Eo (symbol belongs to implicit dependency /usr/openwin/lib/libXext=2Eso=2E0) XFree browser=2Eo (symbol belongs to implic= it dependency /usr/openwin/lib/libX11=2Eso=2E4) XQueryTree browser=2Eo (symbol belongs to implic= it dependency /usr/openwin/lib/libX11=2Eso=2E4) eval_pv perl=2Eo XScreenSaverQueryExtension idle=2Eo (symbol belongs to implicit dependency /usr/openwin/lib/libXext=2Eso=2E0) XInternAtom browser=2Eo (symbol belongs to implic= it dependency /usr/openwin/lib/libX11=2Eso=2E4) ld: fatal: Symbol referencing errors=2E No output written to gaim collect2: ld returned 1 exit status make[3]: *** [gaim] Error 1 make[3]: Leaving directory `/opt/apps/DATA/gaim/cvs/gaim/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/opt/apps/DATA/gaim/cvs/gaim/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/opt/apps/DATA/gaim/cvs/gaim' make: *** [all-recursive-am] Error 2 10=2E32=2E12=2E236:>ps -ef | grep -i XS maxd 669 280 0 Oct 11 ? 1476:12 /usr/openwin/bin/Xsun :0 -nobanner -auth /var/dt/A:0-s0aaJa maxd 744 733 0 Oct 11 pts/3 0:00 /bin/ksh /usr/dt/config/Xsession2=2EGNOME-2=2E0 maxd 688 670 0 Oct 11 ? 0:00 /bin/ksh /usr/dt/bin/Xsessi= on maxd 763 1 0 Oct 11 ? 0:34 xscreensaver -nosplash maxd 4163 1289 0 10:01:31 pts/13 0:00 grep -i XS What is causing this problem and what should I do to fix it? I hope I'm no= t missing anything obvious=2E I apologize up front for my "noobieness=2E" -in your debt, max -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web=2Ecom/ =2E |
From: Ethan B. <ebl...@cs...> - 2002-10-18 15:57:18
|
ope...@pl... spake unto us the following wisdom: > Undefined first referenced > symbol in file > XScreenSaverAllocInfo idle.o (symbol belongs to implicit > dependency /usr/openwin/lib/libXext.so.0) > XIconifyWindow conversation.o (symbol belongs to > implicit dependency /usr/openwin/lib/libX11.so.4) [ snip ] > What is causing this problem and what should I do to fix it? I hope I'm n= ot > missing anything obvious. I apologize up front for my "noobieness." So here comes my standard rant about build automation tools ... if people aren't capable of using them, they shouldn't be allowed to... And the gtk/glib people, as best I can tell, were not capable of using pkgconfig properly. I've had to hack the .pc files on every system I use. It looks like you will, too. I'm not sure *exactly* what your library dependencies are, you'll have to figure them out for sure, but you need to dig into your gdk-x11-2.0.pc file and add '-L/usr/openwin/lib/' to the Libs line, as well as '-l<lib>' for some set of libraries ... unfortunately, on Solaris, I'm not sure what those libraries might be. Try '-lXext -lXi'. If it doesn't have '-lX11' already, add that too. Ethan --=20 And if I claim to be a wise man / it surely means that I don't know. -- Kansas, "Carry on Wayward Son" |
From: Nathan W. <fac...@fa...> - 2002-10-18 16:11:06
|
On Fri, Oct 18, 2002 at 11:45:43AM -0400, ope...@pl... wrote: > Background info: > I'm working on a SunBlade100 with Sun Solaris 8.0. I install most software > into /opt/sfw/. The reason for this is that the /users/ and the /opt/loca= l/ > directories are network mounts that I do not have write access to even wi= th > root. This causes all sorts of trouble when doing a ./configure; make; ma= ke > install. So, I normally install like this: ./configure --prefix=3D/opt/sf= w; > make; make install. FYI, "make" is actually "gmake". <snip solved problem> > Problem #2: unresolved (help please!) > The newest versions of GTK 2, GLIB 2, gettext, libtool, atk, pango, and > pkgconfig are all installed. CVS GAIM finished the "./configure > --prefix=3D/opt/sfw". Here's the last few lines from the make output: >=20 > make[3]: Entering directory `/opt/apps/DATA/gaim/cvs/gaim/src' > /bin/sh ../libtool --silent --mode=3Dlink gcc -g -O2 -I/usr/local/include > -I/opt/include -I.. -I/opt/sfw/include/gtk-2.0 > -I/opt/sfw/lib/gtk-2.0/include -I/opt/sfw/include/atk-1.0 > -I/opt/sfw/include/pango-1.0 -I/usr/openwin/include > -I/opt/sfw/include/glib-2.0 -I/opt/sfw/lib/glib-2.0/include =20 > -DGTK_ENABLE_BROKEN -I/opt/sfw/include > -I/usr/perl5/5.00503/sun4-solaris/CORE=20 > -DLOCALEDIR=3D\"/opt/sfw/share/locale\" -DLIBDIR=3D\"/opt/sfw/lib/gaim/\"= =20 > -DDATADIR=3D\"/opt/sfw/share\" -o gaim -export-dynamic about.o aim.o awa= y.o > browser.o buddy.o buddy_chat.o conversation.o core.o dialogs.o ft.o > gaimrc.o gtkimhtml.o gtkspell.o html.o idle.o list.o md5.o module.o multi= .o > perl.o prefs.o proxy.o prpl.o server.o socket.o sound.o util.o getopt.o > getopt1.o -lnsl -lresolv -L/opt/sfw/lib -lgtk-x11-2.0 -lgdk-x11-2.0 > -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangox-1.0 -lpango-1.0 -lgobject-2.0 > -lgmodule-2.0 -ldl -lglib-2.0 -lintl -L/opt/sfw/lib -lesd -laudiofile -= lm > -lresolv -lrt -lnsl -lsocket -R /usr/perl5/5.00503/sun4-solaris/CORE > /usr/perl5/5.00503/sun4-solaris/auto/DynaLoader/DynaLoader.a > -L/usr/perl5/5.00503/sun4-solaris/CORE -lperl -lsocket -lnsl -ldl -lm > -lcrypt -L/usr/openwin/lib -lintl > Undefined first referenced > symbol in file > XScreenSaverAllocInfo idle.o (symbol belongs to implicit > dependency /usr/openwin/lib/libXext.so.0) > XIconifyWindow conversation.o (symbol belongs to > implicit dependency /usr/openwin/lib/libX11.so.4) > XGetWindowProperty browser.o (symbol belongs to implicit > dependency /usr/openwin/lib/libX11.so.4) > XSelectInput browser.o (symbol belongs to implicit > dependency /usr/openwin/lib/libX11.so.4) > XScreenSaverQueryInfo idle.o (symbol belongs to implicit > dependency /usr/openwin/lib/libXext.so.0) > XFree browser.o (symbol belongs to implicit > dependency /usr/openwin/lib/libX11.so.4) > XQueryTree browser.o (symbol belongs to implicit > dependency /usr/openwin/lib/libX11.so.4) > eval_pv perl.o > XScreenSaverQueryExtension idle.o (symbol belongs to implicit > dependency /usr/openwin/lib/libXext.so.0) > XInternAtom browser.o (symbol belongs to implicit > dependency /usr/openwin/lib/libX11.so.4) > ld: fatal: Symbol referencing errors. No output written to gaim > collect2: ld returned 1 exit status > make[3]: *** [gaim] Error 1 > make[3]: Leaving directory `/opt/apps/DATA/gaim/cvs/gaim/src' > make[2]: *** [all-recursive] Error 1 > make[2]: Leaving directory `/opt/apps/DATA/gaim/cvs/gaim/src' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/opt/apps/DATA/gaim/cvs/gaim' > make: *** [all-recursive-am] Error 2 > 10.32.12.236:>ps -ef | grep -i XS > maxd 669 280 0 Oct 11 ? 1476:12 /usr/openwin/bin/Xsun :0 > -nobanner -auth /var/dt/A:0-s0aaJa > maxd 744 733 0 Oct 11 pts/3 0:00 /bin/ksh > /usr/dt/config/Xsession2.GNOME-2.0 > maxd 688 670 0 Oct 11 ? 0:00 /bin/ksh /usr/dt/bin/Xsess= ion > maxd 763 1 0 Oct 11 ? 0:34 xscreensaver -nosplash > maxd 4163 1289 0 10:01:31 pts/13 0:00 grep -i XS Ok, i'll blame something screwed up in our auto* stuff. You need to add -lXss for the stuff in idle.o The others would probably go away with -lX11 Let us know if that helps. Nathan --=20 Nathan Walp || fac...@fa... GPG Fingerprint: || http://faceprint.com/ 5509 6EF3 928B 2363 9B2B DA17 3E46 2CDC 492D DB7E |