bug-gnulib
[Top][All Lists]
Advanced

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

Re: Missing symbols when compiling gettext on OSX 10.8


From: Paul Eggert
Subject: Re: Missing symbols when compiling gettext on OSX 10.8
Date: Mon, 04 Aug 2014 07:23:49 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0

Alessandro Degano wrote:
Dear gnulib list,
While trying to compile gettext on OSX 10.8 architecture with gcc 4.8.1 I
found a problem of missing symbols:

Thanks for reporting this. Since your patch is against the gettext version of install-reloc, I am CC'ing this to bug-gnu-gettext. I don't know why the two versions of install-reloc have diverged -- perhaps it's time to sync gettext back into gnulib? But the problem should be fixed in the upstream version anyway.

*gcc -g -O2 -I../gnulib-lib -I../gnulib-lib -I.. -DHAVE_CONFIG_H
-DIN_RELOCWRAPPER -DNO_XMALLOC
-DINSTALLPREFIX="/Volumes/build1/cmsbuild/test_thepeg/a/tmp/BUILDROOT/8ef63929425eb8443a7343621b0b4f26/opt/cmssw/osx108_amd64_gcc481/external/autotools/1.1"
-DINSTALLDIR="/Volumes/build1/cmsbuild/test_thepeg/a/tmp/BUILDROOT/8ef63929425eb8443a7343621b0b4f26/opt/cmssw/osx108_amd64_gcc481/external/autotools/1.1/bin"
-DLIBPATHVAR="DYLD_LIBRARY_PATH"
-DLIBDIRS="/Volumes/build1/cmsbuild/test_thepeg/a/tmp/BUILDROOT/8ef63929425eb8443a7343621b0b4f26/opt/cmssw/osx108_amd64_gcc481/external/autotools/1.1/lib",
-DEXEEXT="" ../gnulib-lib/relocwrapper.c ../gnulib-lib/progname.c
../gnulib-lib/progreloc.c ../gnulib-lib/areadlink.c
../gnulib-lib/careadlinkat.c ../gnulib-lib/allocator.c
../gnulib-lib/readlink.c ../gnulib-lib/canonicalize-lgpl.c
../gnulib-lib/malloca.c ../gnulib-lib/relocatable.c ../gnulib-lib/setenv.c
../gnulib-lib/strerror.c ../gnulib-lib/c-ctype.c -o
/Volumes/build1/cmsbuild/test_thepeg/a/tmp/BUILDROOT/8ef63929425eb8443a7343621b0b4f26/opt/cmssw/osx108_amd64_gcc481/external/autotools/1.1/bin/gettext.wrapper*

*Undefined symbols for architecture x86_64:*
*"_rpl_lstat", referenced from:*
*_rpl_realpath in cc8eVI2P.o*
*"_rpl_stat", referenced from:*
*_rpl_readlink in ccEl6DHS.o*
*"_strerror_override", referenced from:*
*_rpl_strerror in ccQdiVBq.o*


Thanks to the help of a colleague we where able to create a patch to solve
the problem:

diff --git a/build-aux/install-reloc b/build-aux/install-reloc
index 2dfbf60..eedc855 100755
--- a/build-aux/install-reloc
+++ b/build-aux/install-reloc
@@ -232,6 +232,9 @@ func_create_wrapper ()
                 "$srcdir"/areadlink.c \
                 "$srcdir"/careadlinkat.c \
                 "$srcdir"/allocator.c \
+               "$srcdir"/strerror-override.c \
+               "$srcdir"/stat.c \
+               "$srcdir"/lstat.c \
                 "$srcdir"/readlink.c \
                 "$srcdir"/canonicalize-lgpl.c \
                 "$srcdir"/malloca.c \

I am at your disposal for further details.

Best regards,
Alessandro Degano.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]