Re: gtk+-1.0.0 - examples compile but don't run




John Abreau <abreauj@cliffy.polaroid.com> writes:

> I just built gtk+-1.0.0 under Solaris 2.6. After installing, I went to
> the examples/helloworld directory and issued a "make", which worked fine.
> However, when I tried to run the resulting binary, I get the following
> error:
> 
>     ld.so.1: ./helloworld: fatal: relocation error: file ./helloworld: 
>     symbol __register_frame_info: referenced symbol not found
> 
> I also tried the initial "simplest program possible" from the online 
> tutorial at www.gtk.org, and got the same error. I looked through the 
> online FAQ, and found nothing that looked relevant.
> 
> Has anyone seen something similar, and if so, what's the fix?
> 
> I built gtk with ./configure --prefix=/usr/local/gnu/test. I've set the
> following in my environment:
> 
>     PATH=/usr/local/bin:/usr/dt/bin:/usr/openwin/bin:/bin:\
>     /usr/local/gnu/test/bin
> 
>     LD_LIBRARY_PATH=/usr/local/lib:/usr/openwin/lib:/usr/dt/lib:\
>     /usr/local/gnu/test/lib
> 
> I compiled with gcc 2.8.0 and gnu make 3.76.1.

The __register_frame_info is newly defined in libgcc.a for gcc 2.8.0
and egcs. So the error indicates that the example is being compiled
with an old version of gcc or with a non-gcc compiler, while the
library was compiled with gcc 2.8.0.

The examples/ makefiles include the line CC=gcc, so things look
like they should be OK... Hopefully the above will provide some clues
in figuring out what is going wrong.

Perhaps 'gcc' is an older version of GCC?

Regards,
                                        Owen



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