Re: [gtk-list] ld32 warnings on SGI IRIX



On Thu, 18 Nov 1999 06:54:47 -0800 (PST), Steve Lamont wrote:
> I'm new to this list, so a thousand apologies if this has been asked
> before (I did scan the archives for the last couple of months).
> 
> When building the test GTK test and other GTK based programs on a
> Silicon Graphics Onyx running IRIX 6.2, I get a flock of warning
> messages about definition preemption.
> 
> For example (from within the GTK build):
> 
>   creating testgtk
>   gcc -DHAVE_CONFIG_H -I. -I../../gtk -I.. -DG_LOG_DOMAIN=\"Gtk\"
>      -DGTK_DISABLE_COMPAT_H -DGTK_EXE_PREFIX=\"/usr/local\"
>      -DGTK_DATA_PREFIX=\"/usr/local\" -DGTK_SYSCONFDIR=\"/usr/local/etc\"
>      -DGTK_LOCALEDIR=\"/usr/local//locale\" -I../.. -DGTK_NO_CHECK_CASTS
>      -DUSE_XIM -I/usr/local/lib/glib/include -I/usr/local/include
>      -D_REENTRANT    -g -O2 -Wall -c ../../gtk/testinput.c
>   /bin/sh ../libtool --mode=link gcc  -g -O2 -Wall  -o testinput
>      testinput.o libgtk.la ../gdk/libgdk.la -lXext -lX11 -L/usr/local/lib
>      -lgmodule -lglib -lm 
>   gcc -g -O2 -Wall -o .libs/testinput testinput.o .libs/libgtk.so
>      -L/usr/local/lib -lgmodule -lglib -lXext -lX11 -lm
>      ../gdk/.libs/libgdk.so -lgmodule -lglib -lXext -lX11 -lm -lXext -lX11
>      -L/usr/local/lib -lgmodule -lglib -lm -Wl,-rpath -Wl,/usr/local/lib
>   ld32: WARNING 85: definition of __register_frame in
>   /usr/local/lib/libgmodule.so preempts that definition in
>   /usr/local/lib/libglib.so.
>   ld32: WARNING 85: definition of __register_frame_table in
>   /usr/local/lib/libgmodule.so preempts that definition in
>   /usr/local/lib/libglib.so.
>   ld32: WARNING 85: definition of __deregister_frame in
>   /usr/local/lib/libgmodule.so preempts that definition in
>   /usr/local/lib/libglib.so.
>   ld32: WARNING 85: definition of __frame_state_for in
>   /usr/local/lib/libgmodule.so preempts that definition in
>   /usr/local/lib/libglib.so.
>   ld32: WARNING 85: definition of __register_frame_info in
>   /usr/local/lib/libgmodule.so preempts that definition in
>   /usr/local/lib/libglib.so.
>   ld32: WARNING 85: definition of __register_frame_info_table in
>   /usr/local/lib/libgmodule.so preempts that definition in
>   /usr/local/lib/libglib.so.
>   ld32: WARNING 85: definition of __deregister_frame_info in
>   /usr/local/lib/libgmodule.so preempts that definition in
>   /usr/local/lib/libglib.so.
>   ld32: WARNING 84: /usr/lib32/libXext.so is not used for resolving any
>   symbol.
>   
> These message also occur at run time.  They are obviously annoying and
> confusing to J. Random User.

These are quite normal warnings for the IRIX linker. Which gcc version do
you use (try "gcc -v" to find out)? Gcc 2.95.2 behaves much better than
gcc 2.8.1, so try to upgrade to gcc 2.95.2. Gcc 2.95.2 does a much better
job on optimisation, it is at level with the SGI MipsPRO compiler.

So far, the WARNING 85 haven't bit me, and I use GTK on IRIX for over a
year. If you are really annoyed, edit the gcc specs file, find the '*link"
line and change "-woff 131" into "-woff 131,85". Watch out: in this way
you also won't be warned about symbol clashes that *will* bite!

Another hint: some morons at SGI decided that /usr/local was a nice place
to put configuration files in, so be careful when installing local
software in it! (yes: been there, done that)

> The `Makefile' was created with
> 
>      mkdir SGI
>      cd SGI
>      ../configure --srcdir=..
> 
> (that is, I am creating a separate compilation directory, since I wish
> to build versions for both SGI IRIX 6.x and Sun Solaris 2.6 from the
> same source tree) and ran without apparent incident.
> 
> Suggestions, clues, and/or RTFMs (with appropriate references, please)
> are invited.

http://gcc.gnu.org/ for gcc 2.95.2

http://freeware.sgi.com/ for IRIX freeware

http://www-it.et.tudelft.nl/~erik/gcc/ for gcc 2.8.1 compiling
instructions and hints. gcc 2.8.1 on freeware.sgi.com was built using this
rules.


Erik

-- 
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031,  2600 GA Delft, The Netherlands
Phone: +31-15-2785859  Fax: +31-15-2781843  Email J.A.K.Mouw@its.tudelft.nl
WWW: http://www-ict.its.tudelft.nl/~erik/




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