pkgsrc-Users archive

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

Re: error building gawk on Darwin 10.6 (Snow Leopard)

On 19/09/2009, at 9:11 AM, Steven Sartorius wrote:

On Sep 17, 2009, at 4:50 AM, Mark Norman Francis wrote:

gcc -dynamiclib -o .libs/libsigsegv.1.0.0.dylib .libs/ handler.o .libs/stackvma.o .libs/leave.o .libs/dispatcher.o .libs/ version.o -lc -L/var/obj/pkg/lang/gawk/work/.buildlink/lib - install_name /ports/lib/libsigsegv.1.dylib -compatibility_version 2 -current_version 2.0 -Wl,-single_module
Undefined symbols:
"_vm_region", referenced from:
    _sigsegv_get_vma in stackvma.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
*** Error code 1

bmake: stopped in /var/obj/pkg/lang/gawk/work/gawk-3.1.7/ libsigsegv/src

-- Norm.

For what it's worth I've seen this as well (am trying to build gedit and it pulls in gawk as a dependency). Building gawk outside the pkgsrc framework (i.e. download, untar, configure, make) works fine and you end up with a nice x86_64 executable. If I have some time this weekend I'll try to get it to build under pkgsrc.


Seems to be a problem with libtool as used by pkgsrc.

Commenting out USE_LIBTOOL allows this to build.

Ian McWilliam

--- Makefile    12 Aug 2009 18:07:15 -0000      1.41
+++ Makefile    20 Sep 2009 06:23:44 -0000
@@ -16,7 +16,7 @@
 PKG_DESTDIR_SUPPORT=   user-destdir

 GNU_CONFIGURE=         yes
-USE_LIBTOOL=           yes
+#USE_LIBTOOL=          yes
 USE_TOOLS+=            msgfmt
 TEST_TARGET=           check

Home | Main Index | Thread Index | Old Index