Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Ticket #13006 (closed defect: worksforme)

Opened 13 months ago

Last modified 10 months ago

glib2: libglade2/atk/libgnome/pango fails to build on Mac OS X 10.5 Leopard: duplicate symbol _g_bit_nth_lsf

Reported by: quuxster@… Owned by: rhwood@…
Priority: Normal Milestone: Port Bugs
Component: ports Version: 1.5.2
Keywords: glib2 libglade2 atk libgnome pango leopard Cc: josh.aas@…, brianjlandau@…, frstan@…, quuxster@…, rhwood@…, afb@…, ryandesign@…, vmcgarry@…, bensonk@…, mike@…, nox@…
Port:

Description (last modified by jmpp@…) (diff)

gcc -DHAVE_CONFIG_H -I. -I.. -DG_LOG_DOMAIN=\"libglade\" -I.. -DXTHREADS -I/opt/local/include/libxml2 -I/opt/local/include -I/opt/local/include/atk-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/usr/X11/include -DGLADE_LIBDIR=\"/opt/local/lib\" -DGLADE_PREFIX=\"/opt/local\" -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED -I/opt/local/include -O2 -Wall -std=c9x -MT glade-parser.lo -MD -MP -MF .deps/glade-parser.Tpo -c glade-parser.c -o glade-parser.o >/dev/null 2>&1
mv -f .deps/glade-parser.Tpo .deps/glade-parser.Plo
/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DG_LOG_DOMAIN=\"libglade\" -I.. -DXTHREADS -I/opt/local/include/libxml2 -I/opt/local/include -I/opt/local/include/atk-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/usr/X11/include   -DGLADE_LIBDIR=\""/opt/local/lib"\" -DGLADE_PREFIX=\""/opt/local"\" -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED  -I/opt/local/include  -O2 -Wall -std=c9x -MT glade-gtk.lo -MD -MP -MF .deps/glade-gtk.Tpo -c -o glade-gtk.lo glade-gtk.c
 gcc -DHAVE_CONFIG_H -I. -I.. -DG_LOG_DOMAIN=\"libglade\" -I.. -DXTHREADS -I/opt/local/include/libxml2 -I/opt/local/include -I/opt/local/include/atk-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/usr/X11/include -DGLADE_LIBDIR=\"/opt/local/lib\" -DGLADE_PREFIX=\"/opt/local\" -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED -I/opt/local/include -O2 -Wall -std=c9x -MT glade-gtk.lo -MD -MP -MF .deps/glade-gtk.Tpo -c glade-gtk.c  -fno-common -DPIC -o .libs/glade-gtk.o
 gcc -DHAVE_CONFIG_H -I. -I.. -DG_LOG_DOMAIN=\"libglade\" -I.. -DXTHREADS -I/opt/local/include/libxml2 -I/opt/local/include -I/opt/local/include/atk-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/usr/X11/include -DGLADE_LIBDIR=\"/opt/local/lib\" -DGLADE_PREFIX=\"/opt/local\" -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED -I/opt/local/include -O2 -Wall -std=c9x -MT glade-gtk.lo -MD -MP -MF .deps/glade-gtk.Tpo -c glade-gtk.c -o glade-gtk.o >/dev/null 2>&1
mv -f .deps/glade-gtk.Tpo .deps/glade-gtk.Plo
/bin/sh ../libtool --tag=CC   --mode=link gcc  -O2 -Wall -std=c9x -version-info 0:7:0 -export-symbols-regex "^[^_].*" -no-undefined -L/opt/local/lib -o libglade-2.0.la -rpath /opt/local/lib glade-init.lo glade-xml.lo glade-parser.lo glade-gtk.lo -L/opt/local/lib -L/usr/X11R6/lib -L/usr/X11/lib -lxml2 -lpthread -lm -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0 -lcairo -lSM -lICE -lgobject-2.0 -lgmodule-2.0 -lfreetype -lz -lfontconfig -lexpat -lpng12 -lXrender -lX11 -lglib-2.0 -lintl -liconv   
generating symbol list for `libglade-2.0.la'
/usr/bin/nm -p  .libs/glade-init.o .libs/glade-xml.o .libs/glade-parser.o .libs/glade-gtk.o  | sed -n -e 's/^.*[        ]\([BCDEGRST][BCDEGRST]*\)[     ][      ]*_\([_A-Za-z][_A-Za-z0-9]*\)$/\1 _\2 \2/p' | /usr/bin/sed 's/.* //' | sort | uniq > .libs/libglade-2.0.exp
/usr/bin/grep -E -e "^[^_].*" ".libs/libglade-2.0.exp" > ".libs/libglade-2.0.expT"
mv -f ".libs/libglade-2.0.expT" ".libs/libglade-2.0.exp"
sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < .libs/libglade-2.0.exp > .libs/libglade-2.0-symbols.expsym
gcc -dynamiclib  -o .libs/libglade-2.0.0.0.7.dylib  .libs/glade-init.o .libs/glade-xml.o .libs/glade-parser.o .libs/glade-gtk.o  -L/opt/local/lib -L/usr/X11R6/lib -L/usr/X11/lib /opt/local/lib/libxml2.dylib /opt/local/lib/libz.dylib -lpthread -lm /opt/local/lib/libgtk-x11-2.0.dylib /opt/local/lib/libgdk-x11-2.0.dylib /opt/local/lib/libatk-1.0.dylib /opt/local/lib/libgdk_pixbuf-2.0.dylib /opt/local/lib/libtiff.dylib /opt/local/lib/libjpeg.dylib /opt/local/lib/libpangocairo-1.0.dylib /usr/X11R6/lib/libSM.dylib /usr/X11R6/lib/libICE.dylib /usr/X11R6/lib/libX11.dylib /usr/X11/lib/libXau.6.0.0.dylib /usr/X11/lib/libXdmcp.6.0.0.dylib /opt/local/lib/libpangoft2-1.0.dylib /opt/local/lib/libpango-1.0.dylib /opt/local/lib/libcairo.dylib /usr/X11/lib/libSM.6.0.0.dylib /usr/X11/lib/libICE.6.3.0.dylib /opt/local/lib/libgobject-2.0.dylib /opt/local/lib/libgmodule-2.0.dylib /opt/local/lib/libfreetype.dylib -lz /opt/local/lib/libfontconfig.dylib /opt/local/lib/libexpat.dylib /opt/local/lib/libpng12.dylib /opt/local/lib/libXrender.dylib /usr/X11/lib/libX11.6.2.0.dylib /opt/local/lib/libglib-2.0.dylib /opt/local/lib/libintl.dylib /opt/local/lib/libiconv.dylib  -install_name  /opt/local/lib/libglade-2.0.0.dylib -Wl,-compatibility_version -Wl,1 -Wl,-current_version -Wl,1.7
ld: duplicate symbol _g_bit_nth_lsf in .libs/glade-xml.o and .libs/glade-init.o

collect2: ld returned 1 exit status
make[2]: *** [libglade-2.0.la] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Error: Status 1 encountered during processing.

Attachments

glib2-inline.patch (1.4 KB) - added by afb@… 13 months ago.
glib2-inline.patch
glib2-inline.2.patch (1.1 KB) - added by afb@… 13 months ago.
glib2-inline.patch

Change History

  Changed 13 months ago by afb@…

This is yet another extern inline bug (this time in glib/gutils.h)

  Changed 13 months ago by ryandesign@…

  • cc quuxster@…, rhwood@… added
  • owner changed from macports-dev@… to rhwood@…
  • summary changed from libglade2 fails to build on leopard to libglade2 fails to build on Mac OS X 10.5 Leopard
  • milestone set to Port Bugs

Changed 13 months ago by afb@…

glib2-inline.patch

  Changed 13 months ago by afb@…

  • cc afb@…, ryandesign@… added

Here is a gloriously hacky workaround to the broken inlining in Leopard.

It seems to be working for building libglade2 and xchat2, at least...

  Changed 13 months ago by rhwood@…

  • status changed from new to assigned

Has this been reported upstream or not?

  Changed 13 months ago by afb@…

Hasn't been reported to Radar (by me), yet.

  Changed 13 months ago by rhwood@…

  • status changed from assigned to closed
  • resolution set to fixed

  Changed 13 months ago by afb@…

  • status changed from closed to reopened
  • resolution fixed deleted

The workaround (extern inline -> inline) is apparently not working too great, since you will still get duplicate symbols with other ports. So a better long-term solution is required.

http://bugzilla.gnome.org/show_bug.cgi?id=315437

  Changed 13 months ago by rhwood@…

Ticket:13094 is a duplicate of this ticket.

  Changed 13 months ago by rhwood@…

  • cc frstan@… added

#13088 duplicates this ticket.

  Changed 13 months ago by rhwood@…

  • cc vmcgarry@… added

#13131 duplicates this ticket

  Changed 13 months ago by afb@…

  • keywords glib2 atk libgnome added
  • summary changed from libglade2 fails to build on Mac OS X 10.5 Leopard to glib2: libglade2/atk/libgnome fails to build on Mac OS X 10.5 Leopard

  Changed 13 months ago by afb@…

  • cc brianjlandau@… added
  • keywords pango added
  • summary changed from glib2: libglade2/atk/libgnome fails to build on Mac OS X 10.5 Leopard to glib2: libglade2/atk/libgnome/pango fails to build on Mac OS X 10.5 Leopard
  • priority changed from Normal to High

#13123 duplicates this ticket

  Changed 13 months ago by afb@…

Trying "static inline" instead of "inline" (as replacement for "extern inline")...

Changed 13 months ago by afb@…

glib2-inline.patch

  Changed 13 months ago by rhwood@…

  • cc josh.aas@… added

Can someone with leopard please apply the glib2-inline.patch and test it please?

  Changed 13 months ago by ryandesign@…

  • cc bensonk@… added

  Changed 13 months ago by mike@…

This patch worked for me. I think I did the following steps. In any case, atk now compiles, and furthermore I can now try to reinstall wireshark:
1. sudo port uninstall glib2
2. sudo port clean --working glib2
3. cd /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/glib2
4. sudo patch -p0 <~/Downloads/glib2-inline.2.patch
5. sudo install glib2
6. sudo install atk

  Changed 13 months ago by ryandesign@…

  • cc mike@… added

  Changed 13 months ago by ryandesign@…

  • status changed from reopened to closed
  • resolution set to fixed

Ok, let's try it! Committed the new patch in r30717. Hope that does it... Please re-open if it does not.

  Changed 13 months ago by windexh8er@…

Worked for me. Followed the instructions above minus the manual patching. Looks good.

  Changed 13 months ago by coreymon77@…

  • status changed from closed to reopened
  • resolution fixed deleted

i still get the error, i applied the patch, synced macports, everything and i still get the error

  Changed 13 months ago by brianjlandau@…

Uninstalled glib2, synced, and reinstalled glib2 and then pango did build without errors. So it works for me.

  Changed 13 months ago by coreymon77@…

okay, pango is fine now, but now orbit2 gives me errors, and when looking at the ticket for orbit2, it says that its a duplicate to this bug. so now orbit2 wont build

  Changed 13 months ago by nox@…

#13199 duplicates this ticket.

  Changed 13 months ago by nox@…

  • cc nox@… added

#13239 duplicates this ticket.

  Changed 13 months ago by sciamachy@…

I got the same trying to build GIMP - ld: duplicate symbol _g_bit_nth_lsf in .libs/atkcomponent.o and .libs/atkaction.o

collect2: ld returned 1 exit status make[3]: *** [libatk-1.0.la] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2

I tried sudo port install atk & that returned the same error.

follow-up: ↓ 27   Changed 13 months ago by frstan@…

Have you rebuilt glib2 and all its dependents? sudo port -funR upgrade glib2

in reply to: ↑ 26   Changed 13 months ago by sciamachy@…

Replying to frstan@bellsouth.net:

Have you rebuilt glib2 and all its dependents? sudo port -funR upgrade glib2

I hadn't, but did that once I read your comment, & then tried again, and got the same error. D'you think there might be any other bits & pieces I need to upgrade as well? I must admit to being fairly ignorant of C/C++ programming & using make & the like. I'm a java programmer, so I'm used to a different toolset I guess.

  Changed 11 months ago by ryandesign@…

  • summary changed from glib2: libglade2/atk/libgnome/pango fails to build on Mac OS X 10.5 Leopard to glib2: libglade2/atk/libgnome/pango fails to build on Mac OS X 10.5 Leopard: duplicate symbol _g_bit_nth_lsf

  Changed 11 months ago by jmpp@…

  • priority changed from High to Normal
  • description modified (diff)

  Changed 11 months ago by rhwood@…

I can not reproduce this error when building these ports on 10.5.1 PPC with XCode 3.0 and glib2 2.14.5. Are all people reporting problems using Intel?

  Changed 10 months ago by nox@…

Hasn't this been fixed?

  Changed 10 months ago by rhwood@…

  • status changed from reopened to closed
  • resolution set to worksforme

I don't know. I have never been able to create the problem condition. I'm closing it since no one replied in January.

Note: See TracTickets for help on using tickets.