Re: Build Error with garnome 2-16
- From: "Joseph E. Sacco, Ph.D." <joseph_sacco comcast net>
- To: Markus Eich <eich informatik uni-bremen de>
- Cc: garnome-list <garnome-list gnome org>
- Subject: Re: Build Error with garnome 2-16
- Date: Fri, 27 Oct 2006 10:04:04 -0400
Markus,
Let's see what we have.
The linker error states:
Invalid version tag `EXPORTED'. Only anonymous version tag is
allowed in executable.
There is a linker directive in the build command:
-Wl,--version-script -Wl,./../version-script
So... We need to understand two things:
(1) what does the linker directive do?
(2) what does the error mean?
Let's look at (1):
[from 'info ld']
`--version-script=VERSION-SCRIPTFILE'
Specify the name of a version script to the linker. This is
typically used when creating shared libraries to specify
additional information about the version hierarchy for the library
being created. This option is only meaningful on ELF platforms
which support shared libraries. *Note VERSION::.
The description of the structure of a version script file is found in
the "VERSION Command" section of the ld info page, which you should
read.
The xchat source contains the file, src/version-script,
EXPORTED {
global:
xchat_hook_command;
xchat_hook_server;
xchat_hook_print;
xchat_hook_timer;
xchat_hook_fd;
xchat_unhook;
xchat_print;
xchat_printf;
xchat_command;
xchat_commandf;
xchat_nickcmp;
xchat_set_context;
xchat_find_context;
xchat_get_context;
xchat_get_info;
xchat_get_prefs;
xchat_list_get;
xchat_list_free;
xchat_list_fields;
xchat_list_next;
xchat_list_str;
xchat_list_int;
xchat_plugingui_add;
xchat_plugingui_remove;
xchat_emit_print;
xchat_list_time;
xchat_gettext;
xchat_send_modes;
xchat_strip;
xchat_free;
local: *;
};
I see that that script is "labeled" with the word EXPORTED, which is
what the Suse implementation of the GNU linker is complaining about. The
error states that
"Only anonymous version tag is allowed in executable."
So... The "label" is the problem.
Hmmm... Must be a Suse-related issue since I do not have this problem on
a Fedora-based system. You might poke the Suse folks and ask.
What to do...
(1) cd to work/main.d/xchat-2.6.8/src
(2) cp version-script version-script-
(3) edit version-script
remove the "EXPORTED" label
(4) cd to fifth-toe/xchat
(5) make
-Joseph
=============================================================================
On Fri, 2006-10-27 at 15:29 +0200, Markus Eich wrote:
> Joseph,
>
> I am using Suse 10.1 with 32 bit kernel on a 32-bit machine
> I removed all the old files and changed to version 2.6.8. Makefile
> updated and makesum made. Still the error persists (this time in version
> 2.6.8.)
>
> cc -I/home/eich/garnome/include -O2 -pipe -Wall -g -Wno-pointer-sign
> -funsigned-char -I/home/eich/garnome/include -Wl,--export-dynamic -o
> xchat about.o ascii.o banlist.o chanlist.o chanview.o dccgui.o
> editlist.o fe-gtk.o fkeys.o gtkutil.o ignoregui.o joind.o menu.o
> maingui.o mmx_cmod.o notifygui.o palette.o pixmaps.o plugingui.o
> rawlog.o search.o servlistgui.o setup.o textgui.o urlgrab.o
> userlistgui.o xtext.o -Wl,--version-script -Wl,./../version-script
> -pthread -Wl,--export-dynamic -L/home/eich/garnome/lib
> ../common/libxchatcommon.a -L/usr/X11R6/lib
> /home/eich/garnome/lib/libsexy.so
> /home/eich/garnome/lib/libgtk-x11-2.0.so
> /home/eich/garnome/lib/libgdk-x11-2.0.so -lXrandr -lXi -lXinerama -lXext
> /home/eich/garnome/lib/libatk-1.0.so
> /home/eich/garnome/lib/libgdk_pixbuf-2.0.so
> /home/eich/garnome/lib/libpangocairo-1.0.so
> /home/eich/garnome/lib/libpangoft2-1.0.so -lXcursor -lXfixes
> /home/eich/garnome/lib/libpango-1.0.so
> /home/eich/garnome/lib/libcairo.so
> /home/eich/garnome/lib/libfontconfig.so
> /home/eich/garnome/lib/libfreetype.so /usr/lib/libexpat.so
> /home/eich/garnome/lib/libglitz.so -lpng12 -lSM -lICE
> /home/eich/garnome/lib/libXrender.so -lX11
> /home/eich/garnome/lib/libgmodule-2.0.so
> /home/eich/garnome/lib/libxml2.so -lz -lm
> /home/eich/garnome/lib/libdbus-glib-1.so
> /home/eich/garnome/lib/libgobject-2.0.so
> /home/eich/garnome/lib/libdbus-1.so -lnsl
> /home/eich/garnome/lib/libgthread-2.0.so -lpthread -lssl -lcrypto -ldl
> /home/eich/garnome/lib/libglib-2.0.so -lrt -Wl,--rpath
> -Wl,/home/eich/garnome/lib -Wl,--rpath -Wl,/home/eich/garnome/lib
> /usr/lib/gcc/i586-suse-linux/4.1.0/../../../../i586-suse-linux/bin/ld:
> Invalid version tag `EXPORTED'. Only anonymous version tag is allowed in
> executable.
> collect2: ld returned 1 exit status
> make[4]: *** [xchat] Fehler 1
> make[4]: Leaving directory
> `/home/eich/garnome-2.16.1/fifth-toe/xchat/work/main.d/xchat-2.6.8/src/fe-gtk'
> make[3]: *** [all-recursive] Fehler 1
> make[3]: Leaving directory
> `/home/eich/garnome-2.16.1/fifth-toe/xchat/work/main.d/xchat-2.6.8/src'make[2]:
> *** [all-recursive] Fehler 1
> make[2]: Leaving directory
> `/home/eich/garnome-2.16.1/fifth-toe/xchat/work/main.d/xchat-2.6.8'
> make[1]: *** [all] Fehler 2
> make[1]: Leaving directory
> `/home/eich/garnome-2.16.1/fifth-toe/xchat/work/main.d/xchat-2.6.8'
> make: *** [build-work/main.d/xchat-2.6.8/Makefile] Fehler 2
>
>
>
> Any Idea what "Invalid version tag `EXPORTED'. Only anonymous version
> tag is allowed in executable."
> means?
>
>
> the kernel version I use is 2.6.16.21-0.25-bigsmp
>
> Best,
>
> Markus
>
>
>
> Joseph E. Sacco, Ph.D. schrieb:
> > Markus,
> >
> > Markus,
> >
> > No need to apologize. "We" are here to help.
> >
> > Hmmm... a linker problem. I recall that you are running Suse-10.1. Are
> > you building on a 32-bit or 64-bit version of Suse? If your system has
> > both 32-bit and 64-bit tools and libraries installed, you need to make
> > sure that you are using the proper set of tools and libraries. You may
> > need to edit PATH and LD_LIBRARY_PATH in gar.conf.mk.
> >
> > BTW, version 2.6.8 of xchat is now available. To use 2.6.8:
> > * edit the GAR Makefile
> > o 2.6.6 -> 2.6.8
> > o remove the PATCHFILES line
> > * make makesum
> > to fetch the new version and generate a new checksum
> > * make
> >
> > -Joseph
> >
> > =======================================================================
> >
> >
> > On Fri, 2006-10-27 at 13:06 +0200, Markus Eich wrote:
> >
> >> Dear Joseph,
> >>
> >> sorry to bother you again, because I am bothered by this little problem
> >> gnome. The last error I now faced was
> >>
> >> /usr/lib/gcc/i586-suse-linux/4.1.0/../../../../i586-suse-linux/bin/ld:
> >> Invalid version tag `EXPORTED'. Only anonymous version tag is allowed in
> >> executable.
> >> collect2: ld returned 1 exit status
> >> make[6]: *** [xchat] Fehler 1
> >> make[6]: Leaving directory
> >> `/home/eich/garnome-2.16.1/fifth-toe/xchat/work/main.d/xchat-2.6.6/src/fe-gtk'
> >> make[5]: *** [all-recursive] Fehler 1
> >> make[5]: Leaving directory
> >> `/home/eich/garnome-2.16.1/fifth-toe/xchat/work/main.d/xchat-2.6.6/src'make[4]:
> >> *** [all-recursive] Fehler 1
> >> make[4]: Leaving directory
> >> `/home/eich/garnome-2.16.1/fifth-toe/xchat/work/main.d/xchat-2.6.6'
> >> make[3]: *** [all] Fehler 2
> >> make[3]: Leaving directory
> >> `/home/eich/garnome-2.16.1/fifth-toe/xchat/work/main.d/xchat-2.6.6'
> >> make[2]: *** [build-work/main.d/xchat-2.6.6/Makefile] Fehler 2
> >> make[2]: Leaving directory `/home/eich/garnome-2.16.1/fifth-toe/xchat'
> >> make[1]: *** [paranoid-install] Fehler 2
> >> make[1]: Leaving directory `/home/eich/garnome-2.16.1/fifth-toe'
> >> make: *** [paranoid-install] Fehler 2
> >>
> >> I tries google, but did not find a solution at all for this.
> >>
> >> Thanx for help in advance
> >>
> >> /Markus
> >>
> >
> >
>
>
--
joseph_sacco [at] comcast [dot] net
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]