pkgsrc-Users archive

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

x11/motif fails to compile due to library not found for -lintl


I'm trying to build x11/motif from -current on Mac OS X Mavericks
(10.9.4), but it's failing to compile due to not finding a library for
"-lintl" (provided by devel/gettext-lib):

$ bmake install
=> Tool dependency libtool-base>=2.2.6bnb3: found libtool-base-2.4.2nb7
=> Tool dependency automake>=1.9: found automake-1.14.1nb1
=> Tool dependency autoconf>=2.58: found autoconf-2.69nb5
=> Tool dependency flex>=2.5.4a: found flex-2.5.39
=> Tool dependency nbpatch-[0-9]*: found nbpatch-20100124
=> Tool dependency pkg-config>=0.25: found pkg-config-0.28
=> Build dependency x11-links>=0.91: found x11-links-0.91
=> Build dependency flex>=2.5.4a: found flex-2.5.39
=> Full dependency jpeg>=9: found jpeg-9anb1
=> Full dependency png>=1.6.0nb1: found png-1.6.12
libtool: link: clang -pipe -O2 -I/pkgsrc/x11/motif/work/.buildlink/\
include -I/pkgsrc/x11/motif/work/.x11-buildlink/include -I/pkgsrc/x11/\
motif/work/.x11-buildlink/include/freetype2 -Wall -g \
-fno-strict-aliasing -Wno-unused -Wno-comment -o wmluiltok wmluiltok.o \
-L/pkgsrc/x11/motif/work/.buildlink/lib -L/pkgsrc/x11/motif/work/\
.x11-buildlink/lib /pkgsrc/x11/motif/work/.buildlink/lib/libfl.dylib \
-lintl -lc -lm -liconv -lXrender -lXft -lfontconfig /pkgsrc/x11/motif/\
work/.buildlink/lib/libjpeg.dylib /pkgsrc/x11/motif/work/.buildlink/\
lib/libpng16.dylib -lz
ld: library not found for -lintl
clang: error: linker command failed with exit code 1 (use -v to see \
gnumake[2]: *** [wmluiltok] Error 1
gnumake[1]: *** [all-recursive] Error 1
gnumake: *** [all-recursive] Error 1
*** Error code 2

bmake: stopped in /pkgsrc/x11/motif
*** Error code 1

bmake: stopped in /pkgsrc/x11/motif

If I create symlinks by hand in work/.buildlink/lib for
/pkg/lib/libintl.*, it succeeds.  But I don't understand why it's trying
to link against libintl.

If I instead add the following to devel/flex/, it also

.include "../../devel/gettext-lib/"

But I'm not convinced that's the right thing to do.  What I really don't
understand is, why is flex being considered a build dependency?  From
the output above:

=> Build dependency flex>=2.5.4a: found flex-2.5.39

devel/flex depends on devel/gettext-lib (which provides libintl).
Maybe if devel/flex was not a build dependency, and instead was just a
tool dependency, then maybe libtool would not include "-lintl" and the
linking would succeed?

Thank you!


Home | Main Index | Thread Index | Old Index