[Fwd: relocation error during execution]



OK, I've done some more playing around because I think that the error is
that it is linking to libs in /usr/local/lib that are almost a year
old.  I explicitly told it what libraries to link to:

gcc -Wall -g -I/export/home/net/pcrosby/misc/include
-L/export/home/net/pcrosby/misc/lib -R/export/home/net/pcrosby/misc/lib
/export/home/net/pcrosby/misc/lib/libgtk.so
/export/home/net/pcrosby/misc/lib/libgdk.so
/export/home/net/pcrosby/misc/lib/libglib.so -lX11 -lm
`/export/home/net/pcrosby/misc/bin/gtk-config --cflags` -o newman
newman.o compose.o

And it builds fine and doesn't seem to use the libs in /usr/local/lib,
but then when I do an ldd on the executable, I get:

manimal:~/src/newman> ldd newman
        libgtk.so.1 =>   /usr/local/lib/libgtk.so.1
        libgdk.so.1 =>   /usr/local/lib/libgdk.so.1
        libglib.so.1 =>  /usr/local/lib/libglib.so.1
        libX11.so.4 =>   /usr/lib/libX11.so.4
        libm.so.1 =>     /usr/local/opt/SUNWspro/lib/libm.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libucb.so.1 =>   /usr/ucblib/libucb.so.1
        libresolv.so.2 =>        /usr/lib/libresolv.so.2
        libsocket.so.1 =>        /usr/lib/libsocket.so.1
        libnsl.so.1 =>   /usr/lib/libnsl.so.1
        libelf.so.1 =>   /usr/lib/libelf.so.1
        libXext.so.0 =>  /usr/openwin/lib/libXext.so.0
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libw.so.1 =>     /usr/lib/libw.so.1
        libintl.so.1 =>  /usr/lib/libintl.so.1
        libmp.so.1 =>    /usr/lib/libmp.so.1

for some reason, it is still referencing the old libraries in
/usr/local/lib...

If anyone could please help me out, it would be greatly appreciated.

Thanks

Patrick


Patrick Crosby wrote:
> 
> I was able to build gtk 0.99.7 fine on solaris 2.5.1 with the following
> configure command:
> 
>         ./configure --prefix=/export/home/net/pcrosby/misc
> 
> I made my makefile point to the right libraries:
> 
> CC=gcc
> CFLAGS=-Wall -g -I/export/home/net/pcrosby/misc/include
> LIBS=-L/export/home/net/pcrosby/misc/lib
> -R/export/home/net/pcrosby/misc/lib -lgtk -lgdk -lglib -lX11 -lm
> 
> I added /export/home/net/pcrosby/misc/lib to my LD_LIBRARY_PATH.  When I
> try to run my program (which works fine on linux at home), I get the
> following error:
> 
> ld.so.1: ./newman: fatal: relocation error: symbol not found:
> gtk_object_check_cast: referenced in ./newman
> Killed
> 
> any ideas?
> 
> Thanks.
> 
> Patrick
> 
> --
> Patrick Crosby                   pcrosby@neog.com
> Neoglyphics Media Corporation    http://www.neog.com

-- 
Patrick Crosby                   pcrosby@neog.com
Neoglyphics Media Corporation    http://www.neog.com


I was able to build gtk 0.99.7 fine on solaris 2.5.1 with the following
configure command:

	./configure --prefix=/export/home/net/pcrosby/misc

I made my makefile point to the right libraries:

CC=gcc
CFLAGS=-Wall -g -I/export/home/net/pcrosby/misc/include
LIBS=-L/export/home/net/pcrosby/misc/lib
-R/export/home/net/pcrosby/misc/lib -lgtk -lgdk -lglib -lX11 -lm

I added /export/home/net/pcrosby/misc/lib to my LD_LIBRARY_PATH.  When I
try to run my program (which works fine on linux at home), I get the
following error:

ld.so.1: ./newman: fatal: relocation error: symbol not found:
gtk_object_check_cast: referenced in ./newman
Killed

any ideas?

Thanks.

Patrick

-- 
Patrick Crosby                   pcrosby@neog.com
Neoglyphics Media Corporation    http://www.neog.com




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]