Re: problem report, compiling from CVS on Linux

Jeff Hostetler (jeff@abisource.com)
Tue, 01 Jun 1999 14:30:33 -0500


re: the second problem:

the global variables g_pngSplash{,_sizeof} that are referenced
from ap_UnixApp.o are defined in $OBJDIR/ap_wp_splash.cpp
which is dynamically generated from abi/src/wp/ap/xp/splash.png
by the cdump program.

given your first set of errors, i'd say that the makefile
created empty .cpp files (check $OBJDIR/ap_wp_{splash,sidebar}.cpp
and see if they have anything in them). delete them and rerun make
and see if they don't get properly created....

hope this helps,
jeff

At 02:00 PM 6/1/99 -0500, Moses DeJong wrote:
>I compiled from the CVS source today (Tue Jun 1). I was using gtk 1.1.2 on
>a Debian 2.1 Linux box running Kernel 2.2.7.
>
>
>rm -f
/usr/local/project/abi/src/../src/Linux_2.2.7_i386_OBJ/obj/ap_wp_splash.cpp
>/usr/local/project/abi/src/../src/Linux_2.2.7_i386_OBJ/bin/cdump
./splash.png g_pngSplash >
/usr/local/project/abi/src/../src/Linux_2.2.7_i386_OBJ/obj/ap_wp_splash.cpp
>/usr/local/project/abi/src/../src/Linux_2.2.7_i386_OBJ/bin/cdump: error in
loading shared libraries
>libgtk-1.2.so.0: cannot open shared object file: No such file or directory
>make[3]: ***
[/usr/local/project/abi/src/../src/Linux_2.2.7_i386_OBJ/obj/ap_wp_splash.cpp
] Error 127
>make[3]: Leaving directory `/usr/local/project/abi/src/wp/ap/xp'
>make[2]: *** [build] Error 2
>make[2]: Leaving directory `/usr/local/project/abi/src/wp/ap'
>make[1]: *** [build] Error 2
>make[1]: Leaving directory `/usr/local/project/abi/src/wp'
>make: *** [build] Error 2
>
>
>
>It seems like the problem here is the make system does not use the
>location of the gtk install in the LD_LIBRARY_PATH. It should use
>the -L argument from `gtk-config --libs`. Here is what I did to get
>past the error.
>
>
>% gtk-config --libs
>-L/usr/local/project/mozilla/install/lib -L/usr/X11R6/lib -lgtk -lgdk
-rdynamic -lgmodule -lglib -ldl -lXext -lX11 -lm
>
>% setenv LD_LIBRARY_PATH /usr/local/project/mozilla/install/lib
>
>
>
>That worked a little better and make kept compiling
>but later I got this error.
>
>
>
>Linking dynamic
/usr/local/project/abi/src/../src/Linux_2.2.7_i386_OBJ/bin/AbiWord_d
>/usr/local/project/abi/src/../src/Linux_2.2.7_i386_OBJ/obj/libAbiWPAp.a(ap_
UnixApp.o): In function `_showSplash(XAP_Args *, char const *)':
>ap_UnixApp.o(.text+0x854): undefined reference to `g_pngSplash_sizeof'
>ap_UnixApp.o(.text+0x85a): undefined reference to `g_pngSplash'
>collect2: ld returned 1 exit status
>make[3]: ***
[/usr/local/project/abi/src/../src/Linux_2.2.7_i386_OBJ/bin/AbiWord_d] Error 1
>make[3]: Leaving directory `/usr/local/project/abi/src/wp/main/unix'
>make[2]: *** [build] Error 2
>make[2]: Leaving directory `/usr/local/project/abi/src/wp/main'
>make[1]: *** [build] Error 2
>make[1]: Leaving directory `/usr/local/project/abi/src/wp'
>
>
>
>
>% ls -la /usr/lib/*png*
>-rw-r--r-- 1 root root 193560 Jan 11 08:24 /usr/lib/libpng.a
>lrwxrwxrwx 1 root root 11 Jun 1 11:54 /usr/lib/libpng.so
-> libpng.so.2
>lrwxrwxrwx 1 root root 14 Apr 21 17:20
/usr/lib/libpng.so.0 -> libpng.so.0.96
>-rw-r--r-- 1 root root 99432 Jan 25 1998
/usr/lib/libpng.so.0.96
>lrwxrwxrwx 1 root root 15 Apr 21 17:16
/usr/lib/libpng.so.2 -> libpng.so.2.1.0
>-rw-r--r-- 1 root root 176868 Jan 11 08:24
/usr/lib/libpng.so.2.1.0
>
>
>
>% nm /usr/lib/libpng.a | grep pngSplash
>(no matches!)
>
>
>
>Any ideas what is going on here? Is this a PNG lib version mismatch?
>
>
>Mo DeJong
>dejong at cs.umn.edu
>



This archive was generated by hypermail 1.03b2.