pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/31913: devel/libgnomeui fails to build on Darwin



>Number:         31913
>Category:       pkg
>Synopsis:       devel/libgnomeui fails to build on Darwin
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 25 08:16:00 +0000 2005
>Originator:     Emil Hessman
>Release:        Darwin 8.2.0 (Mac OS X 10.4.2)
>Organization:
>Environment:
Darwin Latte.local 8.2.0 Darwin Kernel Version 8.2.0: Fri Jun 24 17:46:54 PDT 
2005; root:xnu-792.2.4.obj~3/RELEASE_PPC Power Macintosh powerpc
>Description:
libgnomeui-2.12.0 fails to build on Darwin 8.2.0 (Mac OS X 1.4.2):

cd /usr/pkgsrc/devel/libgnomeui; sudo bmake

[...]

ld: Undefined symbols:
_environ
gnumake[2]: *** [libgnome-vfs.la] Error 1
gnumake[1]: *** [all-recursive] Error 1
gnumake: *** [all] Error 2
*** Error code 2
>How-To-Repeat:
Boostrap pkgsrc on Darwin 8.2.0 (Mac OS X 1.4.2)

Try to install libgnomeui-2.12.0:

cd .../pkgsrc/devel/libgnomeui
bmake
>Fix:
Change the libtool options to avoid undefined symbol errors for the symbol 
_environ, that is; replace "-no-undefined" with "-undefined dynamic_lookup". 
See diffs below.



--- file-chooser/Makefile.in.orig   2005-09-06 10:38:31.000000000 +0200
+++ file-chooser/Makefile.in
@@ -210,7 +210,7 @@ INCLUDES = \
    $(NULL)


-module_flags = -export_dynamic -avoid-version -module -no-undefined
+module_flags = -export_dynamic -avoid-version -module -undefined dynamic_lookup
 modulesdir = $(libdir)/gtk-2.0/$(GTK_BINARY_VERSION)/filesystems

 modules_LTLIBRARIES = \



--- glade/Makefile.in.orig  2005-09-06 10:38:31.000000000 +0200
+++ glade/Makefile.in
@@ -212,7 +212,7 @@ libgnome_la_LIBADD = \


 libgnome_la_LDFLAGS = \
-   -export-dynamic -module -avoid-version -no-undefined
+   -export-dynamic -module -avoid-version -undefined dynamic_lookup


 libgnome_la_SOURCES = \



--- libgnomeui/Makefile.in.orig 2005-09-06 10:38:32.000000000 +0200
+++ libgnomeui/Makefile.in
@@ -378,7 +378,7 @@ EXTRA_DIST = \

 libgnomeui_2_la_LDFLAGS = \
    -version-info 
$(LIBGNOMEUI_CURRENT):$(LIBGNOMEUI_REVISION):$(LIBGNOMEUI_AGE) \
-   -no-undefined \
+   -undefined dynamic_lookup \
    -export-symbols-regex "^[^_].*"




Home | Main Index | Thread Index | Old Index