Dougiedee13 / gnome2-globalmenu

Automatically exported from code.google.com/p/gnome2-globalmenu
GNU General Public License v2.0
0 stars 0 forks source link

Won't compile on x86_64 #62

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Try the "BuildFromScratch" howto
2. Make the libgnomenu

What is the expected output? What do you see instead?
I should see a proper make, but it says to me:
gcc -shared  .libs/gnomenu-marshall.o .libs/gnomenu-enums.o
.libs/messages.o .libs/socket.o .libs/serverhelper.o .libs/clienthelper.o
.libs/menubar.o .libs/quirks.o  /usr/lib/libgtk-x11-2.0.so
/usr/lib/libatk-1.0.so -L/usr/lib /usr/lib/libgdk-x11-2.0.so
/usr/lib/libgdk_pixbuf-2.0.so /usr/lib/libpangocairo-1.0.so
/usr/lib/libpango-1.0.so /usr/lib/libcairo.so /usr/lib/libgobject-2.0.so
/usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so
/usr/lib/libfreetype.so -lz /usr/lib/libfontconfig.so /usr/lib/libglitz.so
-lm /usr/lib/libpng12.so /usr/lib/libxcb-render-util.so
/usr/lib/libXrender.so /usr/lib/libxcb-render.so /usr/lib/libX11.so
-lpthread /usr/lib/libxcb-xlib.so /usr/lib/libxcb.so /usr/lib/libXau.so
/usr/lib/libXdmcp.so  -Wl,-soname -Wl,libgnomenu.so.0 -o
.libs/libgnomenu.so.0.0.0
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.2.3/../../../../x86_64-unknown-linux-gnu
/bin/ld:
.libs/socket.o: relocation R_X86_64_PC32 against
`gnomenu_marshall_VOID__POINTER_UINT' can not be used when making a shared
object; recompile with -fPIC
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.2.3/../../../../x86_64-unknown-linux-gnu
/bin/ld:
final link failed: Bad value
collect2: ld returned 1 exit status
make[3]: *** [libgnomenu.la] Erreur 1
make[3]: quittant le répertoire «
/home/eo/Documents/Compilations/gnome-globalmenu/libgnomenu »
make[2]: *** [all] Erreur 2
make[2]: quittant le répertoire «
/home/eo/Documents/Compilations/gnome-globalmenu/libgnomenu »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire «
/home/eo/Documents/Compilations/gnome-globalmenu »
make: *** [all] Erreur 2

What version of the product are you using? On what operating system?
I'm using Linux (Frugalware) x86_64, and the latest SVN release, r645.

Please provide any additional information below.
I think it is because I've got an x86_64 system.

Original issue reported on code.google.com by antal...@gmail.com on 3 Mar 2008 at 1:00

GoogleCodeExporter commented 8 years ago
In fact, it won't compile when I type the first "make" of the howto

Original comment by antal...@gmail.com on 3 Mar 2008 at 1:01

GoogleCodeExporter commented 8 years ago
Try to use
./configure {...} --with-pic

Original comment by rainwood...@gmail.com on 3 Mar 2008 at 7:40

GoogleCodeExporter commented 8 years ago
It does not work, and the error is:
gcc -shared  .libs/gnomenu-marshall.o .libs/gnomenu-enums.o .libs/messages.o
.libs/socket.o .libs/serverhelper.o .libs/clienthelper.o .libs/menubar.o
.libs/quirks.o  /usr/lib/libgtk-x11-2.0.so /usr/lib/libatk-1.0.so -L/usr/lib
/usr/lib/libgdk-x11-2.0.so /usr/lib/libgdk_pixbuf-2.0.so
/usr/lib/libpangocairo-1.0.so /usr/lib/libpango-1.0.so /usr/lib/libcairo.so
/usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so -ldl 
/usr/lib/libglib-2.0.so
/usr/lib/libfreetype.so -lz /usr/lib/libfontconfig.so /usr/lib/libglitz.so -lm
/usr/lib/libpng12.so /usr/lib/libxcb-render-util.so /usr/lib/libXrender.so
/usr/lib/libxcb-render.so /usr/lib/libX11.so -lpthread /usr/lib/libxcb-xlib.so
/usr/lib/libxcb.so /usr/lib/libXau.so /usr/lib/libXdmcp.so  -Wl,-soname
-Wl,libgnomenu.so.0 -o .libs/libgnomenu.so.0.0.0
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.2.3/../../../../x86_64-unknown-linux-gnu
/bin/ld:
.libs/socket.o: relocation R_X86_64_PC32 against
`gnomenu_marshall_VOID__POINTER_UINT' can not be used when making a shared 
object;
recompile with -fPIC
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.2.3/../../../../x86_64-unknown-linux-gnu
/bin/ld:
final link failed: Bad value
collect2: ld returned 1 exit status
make[3]: *** [libgnomenu.la] Erreur 1
make[3]: quittant le répertoire «
/home/eo/Documents/Compilations/gnome-globalmenu/libgnomenu »
make[2]: *** [all] Erreur 2
make[2]: quittant le répertoire «
/home/eo/Documents/Compilations/gnome-globalmenu/libgnomenu »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « 
/home/eo/Documents/Compilations/gnome-globalmenu »
make: *** [all] Erreur 2

Original comment by antal...@gmail.com on 3 Mar 2008 at 8:46

GoogleCodeExporter commented 8 years ago
OK, I googled a lot. It is not related to -fPIC at all. The error message is a 
joke.

Are you linking with 32 bit libs or 64 bit libs?

I don't have a 64 bit box so I can't investigate this problem.

Suggestions:
1. overide the compile, use a 32bit one,
2. try to link with 64 bit gtk libs.

Would you also try to checkout 
svn checkout http://svn.gnome.org/svn/gnome-panel/trunk gnome-panel
and build it?

all the autotool scripts of libgnomenu is copied from gnome-panel.
If gnome-panel won't build also, it is a problem of gentoo-x64.
if gnome-panel builds, please send me: 

1
gnome-panel/configure and (note, not configure.ac!)
gnome-panel/Makefile
libpanel-applet/Makefile
and
libpanel-applet/panel-applet.o
2
gnome-globalmenu/configure
gnome-globalmenu/Makefile
gnome-globalmenu/libgnomenu/Makefile
gnome-globalmenu/libgnomenu/socket.o

So that I can try to figure out some difference.

Thanks

Original comment by rainwood...@gmail.com on 4 Mar 2008 at 2:01

GoogleCodeExporter commented 8 years ago
Gnome-panel won't compile, and the error is:
clock_applet-clock.o: In function `fill_prefs_window':
/home/eo/Documents/Compilations/gnome-panel/applets/clock/clock.c:3827: 
undefined
reference to `gweather_prefs_get_temp_display_name'
/home/eo/Documents/Compilations/gnome-panel/applets/clock/clock.c:3843: 
undefined
reference to `gweather_prefs_get_speed_display_name'
clock_applet-clock.o: In function `location_weather_updated_cb':
/home/eo/Documents/Compilations/gnome-panel/applets/clock/clock.c:2056: 
undefined
reference to `weather_info_get_icon_name'
clock_applet-clock.o: In function `parse_and_set_speed_string':
/home/eo/Documents/Compilations/gnome-panel/applets/clock/clock.c:2299: 
undefined
reference to `gweather_prefs_parse_speed'
clock_applet-clock.o: In function `parse_and_set_temperature_string':
/home/eo/Documents/Compilations/gnome-panel/applets/clock/clock.c:2287: 
undefined
reference to `gweather_prefs_parse_temperature'
clock_applet-clock-location-tile.o: In function `weather_info_setup_tooltip':
/home/eo/Documents/Compilations/gnome-panel/applets/clock/clock-location-tile.c:
577:
undefined reference to `weather_info_get_icon_name'
clock_applet-clock-location-tile.o: In function `update_weather_icon':
/home/eo/Documents/Compilations/gnome-panel/applets/clock/clock-location-tile.c:
664:
undefined reference to `weather_info_get_icon_name'
collect2: ld returned 1 exit status
make[5]: *** [clock-applet] Erreur 1
make[5]: quittant le répertoire «
/home/eo/Documents/Compilations/gnome-panel/applets/clock »
make[4]: *** [all-recursive] Erreur 1
make[4]: quittant le répertoire «
/home/eo/Documents/Compilations/gnome-panel/applets/clock »
make[3]: *** [all] Erreur 2
make[3]: quittant le répertoire «
/home/eo/Documents/Compilations/gnome-panel/applets/clock »
make[2]: *** [all-recursive] Erreur 1
make[2]: quittant le répertoire « 
/home/eo/Documents/Compilations/gnome-panel/applets »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /home/eo/Documents/Compilations/gnome-panel 
»
make: *** [all] Erreur 2

PS: I use Frugalware

Original comment by antal...@gmail.com on 4 Mar 2008 at 10:36

GoogleCodeExporter commented 8 years ago
Please help us, by figure out how to make possible to build gnome-panel on 
gentoo.

Thank you!

Original comment by rainwood...@gmail.com on 4 Mar 2008 at 8:13

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I don't use Gentoo, so I can't help you, but I do help you on Frugalware x86_64,
which is my distro.
In the installation script, I read:
build() {
        Fcd #cd into the gnome-panel directory
        Fpatchall #Patch all the files
        Fbuild_slice_scrollkeeper  #A strange line
        Fsed "epiphany.desktop" "firefox.desktop"
gnome-panel/panel-default-setup.entries #For making shortcuts to them in the 
panel
        Fmake --disable-schemas-install --enable-eds --enable-gtk-doc
--disable-scrollkeeper --with-in-process-applets=all # The make line
        Fmakeinstall GCONF_DISABLE_SCHEMA_INSTALL=1 # The make install line
        Fbuild_gnome_scriptlet #A strange line
}
The steps are the same for x86 and x86_64.
I just want to note that it compiled fine (about one week ago) in the 0.3 
branch.
I'm here for everything you want.
I found the gnome-panel 2.21 ebuild:
http://gentoo-overlays.zugaina.org/gnome/portage/gnome-base/gnome-panel/gnome-pa
nel-2.21.92.ebuild

Good bye !

Original comment by antal...@gmail.com on 4 Mar 2008 at 11:52

GoogleCodeExporter commented 8 years ago
I am sorry, I didn't notice Frugalware is not gentoo. Nevertheless it seems to 
fail
on gentoo with the same panic.

0.3 branch is different from 0.4 branch in that 0.4 branch introduces a shared 
library.

The code to guide the autotools to make the shared library is a simply paradigm 
of
gnome-panel's. That's why I am really confused. the only difference might be the
autogen.sh, which is from my 32bit box from 
/usr/bin/gnome-autogen.sh.

Original comment by rainwood...@gmail.com on 5 Mar 2008 at 3:25

GoogleCodeExporter commented 8 years ago
I ran "./configure --prefix=/usr/local/ --enable-tracing=no --with-pic", but the
error is the same.
I just want to note you that the SVN version of gnome-panel refuses to make 
with the
error that I wrote in the comment 5, but the normal version compiles good 
(2.20.3).
Good luck, and good bye !

Original comment by antal...@gmail.com on 5 Mar 2008 at 10:11

GoogleCodeExporter commented 8 years ago
Thanks.
What do you mean by normal version? the svn of 2.20.3 or your distrubitions 
tarball?

can you give me a link to the source?

Original comment by rainwood...@gmail.com on 5 Mar 2008 at 3:22

GoogleCodeExporter commented 8 years ago
I mean my distribution tarball.
Here is the link of the source:
http://saimei.acc.umu.se/pub/gnome/sources/gnome-panel/2.20/gnome-panel-2.20.3.t
ar.bz2

Good luck, and good bye !

Original comment by antal...@gmail.com on 5 Mar 2008 at 3:44

GoogleCodeExporter commented 8 years ago
It is fixed in trunk around 819.(by declaring some functions as extern) If the 
bug
bounces again please let me know by reply to this issue.

Original comment by rainwood...@gmail.com on 23 Mar 2008 at 7:43

GoogleCodeExporter commented 8 years ago
I got this after r819. I posted in a couple of other spots, but I was able to 
get
around it by temporarily moving all the .a files out of /usr/lib while 
compiling.

But even with everything compiled and installed, the menus don’t show up in 
the
applet, and when I add the GTK_MODULES environment variable, some of my panel 
applets
(like the main menu, volume control, and window switcher) don’t show up at 
all!

For anyone who wants to try and debug, here are my debians.

http://www.bernerbits.com/docs/globalmenudebs/

It's hosted off my work box on a cable connection, so go easy!

Compiled with --enable-trace=3, here's my debug output from running gedit:

Code:

dcberner@delllaptop-ubuntu:~$ gedit
** Message: <GnomenuQuirk>::file opened
** Message: <GnomenuQuirk>::found quirk for gnome-panel: ignore=1
** Message: <GnomenuQuirk>::new quirk gnome-panel/(null) = 1
** Message: <GnomenuQuirk>::found quirk for *applet*: ignore=1
** Message: <GnomenuQuirk>::new quirk *applet*/(null) = 1
** Message: <GnomenuQuirk>::found quirk for nautilus: force-show-all=2
** Message: <GnomenuQuirk>::found quirk for nautilus: hide-on-quit=4
** Message: <GnomenuQuirk>::new quirk nautilus/Desktop = 6
** Message: <GnomenuQuirk>::found quirk for nautilus: force-show-all=2
** Message: <GnomenuQuirk>::found quirk for nautilus: hide-on-quit=4
** Message: <GnomenuQuirk>::new quirk nautilus/Работен* = 6
** Message: <GnomenuQuirk>::found quirk for nautilus: force-show-all=2
** Message: <GnomenuQuirk>::found quirk for nautilus: hide-on-quit=4
** Message: <GnomenuQuirk>::new quirk nautilus/桌面 = 6
** Message: <GnomenuQuirk>::found quirk for wx*: roaming=8
** Message: <GnomenuQuirk>::new quirk wx*/(null) = 8
** Message: <GnomenuQuirk>::Failed to open file 
'/home/dcberner/.libgnomenu.conf': No
such file or directory
** Message: <GnomenuQuirk>::match gedit/(null) against gnome-panel/(null)
** Message: <GnomenuQuirk>::match gedit/(null) against *applet*/(null)
** Message: <GnomenuQuirk>::match gedit/(null) against nautilus/Desktop
** Message: <GnomenuQuirk>::match gedit/(null) against nautilus/Работен*
** Message: <GnomenuQuirk>::match gedit/(null) against nautilus/桌面
** Message: <GnomenuQuirk>::match gedit/(null) against wx*/(null)
** Message: <GnomenuQuirk>::default_quirk = 0
** Message: <GnomenuMain>::libgnomenu is loaded. 
Gtk-Message: Using Global Menu
** Message: <GnomenuMenuBar>::gnomenu_menu_bar_init
** Message: <GnomenuClientHelper>::gnomenu_client_helper_class_init
** Message: (null)<GnomenuSocket>::_set_property
** Message: GNOME MENU CLIENT<GnomenuSocket>::_set_property
** Message: GNOME MENU CLIENT<GnomenuSocket>::gnomenu_socket_connect
** Message: <GnomenuMenuBar>::constructor
** Message: <GnomenuMenuBar>::other property quirk
** Message: <GnomenuMenuBar>::other property name
** Message: <GnomenuMenuBar>::widget property visible is modified. back it up
** Message: <GnomenuMenuBar>::_insert
** Message: <GnomenuMenuBar>::widget name = FileMenu
** Message: <GnomenuMenuBar>::_insert
** Message: <GnomenuMenuBar>::widget name = EditMenu
** Message: <GnomenuMenuBar>::_insert
** Message: <GnomenuMenuBar>::widget name = ViewMenu
** Message: <GnomenuMenuBar>::_insert
** Message: <GnomenuMenuBar>::widget name = SearchMenu
** Message: <GnomenuMenuBar>::_insert
** Message: <GnomenuMenuBar>::widget name = ToolsMenu
** Message: <GnomenuMenuBar>::_insert
** Message: <GnomenuMenuBar>::widget name = GtkSeparatorMenuItem
** Message: <GnomenuMenuBar>::_insert
** Message: <GnomenuMenuBar>::widget name = GtkSeparatorMenuItem
** Message: <GnomenuMenuBar>::_insert
** Message: <GnomenuMenuBar>::widget name = DocumentsMenu
** Message: <GnomenuMenuBar>::_insert
** Message: <GnomenuMenuBar>::widget name = HelpMenu
** Message: <GnomenuMenuBar>::_s_hierarchy_changed
** Message: <GnomenuMenuBar>::detail = (null)
** Message: <GnomenuQuirk>::match gedit/(null) against gnome-panel/(null)
** Message: <GnomenuQuirk>::match gedit/(null) against *applet*/(null)
** Message: <GnomenuQuirk>::match gedit/(null) against nautilus/Desktop
** Message: <GnomenuQuirk>::match gedit/(null) against nautilus/Работен*
** Message: <GnomenuQuirk>::match gedit/(null) against nautilus/桌面
** Message: <GnomenuQuirk>::match gedit/(null) against wx*/(null)
** Message: <GnomenuMenuBar>::other property quirk
** Message: <GnomenuMenuBar>::other property parent
** Message: <GnomenuMenuBar>::detail =
gedit-window-12358-1000-12161-1207934379-0@delllaptop-ubuntu
** Message: <GnomenuQuirk>::match
gedit/gedit-window-12358-1000-12161-1207934379-0@delllaptop-ubuntu against
gnome-panel/(null)
** Message: <GnomenuQuirk>::match
gedit/gedit-window-12358-1000-12161-1207934379-0@delllaptop-ubuntu against
*applet*/(null)
** Message: <GnomenuQuirk>::match
gedit/gedit-window-12358-1000-12161-1207934379-0@delllaptop-ubuntu against
nautilus/Desktop
** Message: <GnomenuQuirk>::match
gedit/gedit-window-12358-1000-12161-1207934379-0@delllaptop-ubuntu against
nautilus/Работен*
** Message: <GnomenuQuirk>::match
gedit/gedit-window-12358-1000-12161-1207934379-0@delllaptop-ubuntu against 
nautilus/桌面
** Message: <GnomenuQuirk>::match
gedit/gedit-window-12358-1000-12161-1207934379-0@delllaptop-ubuntu against 
wx*/(null)
** Message: <GnomenuMenuBar>::other property quirk
** Message: <GnomenuMenuBar>::detail =
gedit-window-12358-1000-12161-1207934379-0@delllaptop-ubuntu
** Message: <GnomenuQuirk>::match
gedit/gedit-window-12358-1000-12161-1207934379-0@delllaptop-ubuntu against
gnome-panel/(null)
** Message: <GnomenuQuirk>::match
gedit/gedit-window-12358-1000-12161-1207934379-0@delllaptop-ubuntu against
*applet*/(null)
** Message: <GnomenuQuirk>::match
gedit/gedit-window-12358-1000-12161-1207934379-0@delllaptop-ubuntu against
nautilus/Desktop
** Message: <GnomenuQuirk>::match
gedit/gedit-window-12358-1000-12161-1207934379-0@delllaptop-ubuntu against
nautilus/Работен*
** Message: <GnomenuQuirk>::match
gedit/gedit-window-12358-1000-12161-1207934379-0@delllaptop-ubuntu against 
nautilus/桌面
** Message: <GnomenuQuirk>::match
gedit/gedit-window-12358-1000-12161-1207934379-0@delllaptop-ubuntu against 
wx*/(null)
** Message: <GnomenuMenuBar>::other property quirk
** Message: <GnomenuMenuBar>::other property style
** Message: <GnomenuMenuBar>::_size_request
** Message: <GnomenuMenuBar>::_calc_size_request
** Message: <GnomenuMenuBar>::request:272, 7030530
** Message: <GnomenuMenuBar>::_size_allocate
** Message: <GnomenuMenuBar>::_do_size_allocate
** Message: <GnomenuMenuBar>::x=0, y=1162, width=1, height=8813616

** Message: <GnomenuMenuBar>::_realize
** Message: <GnomenuMenuBar>::_set_child_parent_window
** Message: <GnomenuMenuBar>::map hack
** Message: <GnomenuMenuBar>::_set_child_parent_window
** Message: <GnomenuMenuBar>::map hack
** Message: <GnomenuMenuBar>::_set_child_parent_window
** Message: <GnomenuMenuBar>::map hack
** Message: <GnomenuMenuBar>::_set_child_parent_window
** Message: <GnomenuMenuBar>::map hack
** Message: <GnomenuMenuBar>::_set_child_parent_window
** Message: <GnomenuMenuBar>::_set_child_parent_window
** Message: <GnomenuMenuBar>::_set_child_parent_window
** Message: <GnomenuMenuBar>::_set_child_parent_window
** Message: <GnomenuMenuBar>::map hack
** Message: <GnomenuMenuBar>::_set_child_parent_window
** Message: <GnomenuMenuBar>::map hack
** Message: <GnomenuMenuBar>::_set_child_parent_window
** Message: <GnomenuMenuBar>::other property style
** Message: <GnomenuMenuBar>::_sync_remote_state
** Message: <GnomenuMenuBar>::_sync_local_state
** Message: <GnomenuMenuBar>::_map

(gedit:12358): Gdk-WARNING **:
/home/dcberner/mac/gnome-globalmenu/gtk+-aqd/gtk+2.0-2.12.9/gdk/x11/gdkproperty-
x11.c:318
invalid X atom: -1
** Message: <GnomenuMenuBar>::receive toplevel focus
** Message: <GnomenuMenuBar>::_size_request
** Message: <GnomenuMenuBar>::_calc_size_request
** Message: <GnomenuMenuBar>::request:272, 7030530
** Message: <GnomenuMenuBar>::_size_allocate
** Message: <GnomenuMenuBar>::_do_size_allocate
** Message: <GnomenuMenuBar>::x=0, y=1162, width=1, height=8813616

** Message: <GnomenuMenuBar>::_expose
** Message: <GnomenuMenuBar>::Expose from 0x97c940, area = 0, 1162, 10364120, 
-1046814263
** Message: <GnomenuMenuBar>::_size_request
** Message: <GnomenuMenuBar>::_calc_size_request
** Message: <GnomenuMenuBar>::request:317, 7030530
** Message: <GnomenuMenuBar>::_size_allocate
** Message: <GnomenuMenuBar>::_do_size_allocate
** Message: <GnomenuMenuBar>::x=0, y=1162, width=1, height=8425664

** Message: <GnomenuMenuBar>::_expose
** Message: <GnomenuMenuBar>::Expose from 0x97c940, area = 158, 159, 10411432,
-1046814263

So, it looks like the menubar is talking to the applet, which means the patch is
working, and it looks like the menubar applet is even doing something. But for
reasons I don't understand, it doesn't seem to be doing what it says it's 
doing... 

Original comment by bernerb...@gmail.com on 11 Apr 2008 at 5:52