[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
libtool on OpenBSD
From: |
Han Boetes |
Subject: |
libtool on OpenBSD |
Date: |
Wed, 25 Feb 2004 18:29:43 +0059 |
User-agent: |
Mutt/1.5.6i |
Hi,
I got into trouble building gettext and glib2 on OpenBSD. It appears to
be a libtool problem.
To get gettext to fake-install properly I had to do the following:
make
[ -e /usr/local/lib/libintl.so.7.0 ] && \
mv /usr/local/lib/libintl.so.7.0{,.bak}
[ -e /usr/local/lib/libgettextlib.so ] && \
mv /usr/local/lib/libgettextlib.so{,.bak}
[ -e /usr/local/lib/libgettextsrc.so ] && \
mv /usr/local/lib/libgettextsrc.so{,.bak}
install gettext-runtime/intl/.libs/libintl.so.7.0 /usr/local/lib
install gettext-tools/lib/.libs/libgettextlib.so /usr/local/lib
install gettext-tools/src/.libs/libgettextsrc.so /usr/local/lib
make install DESTDIR=$PKG
rm -f /usr/local/lib/libintl.so.7.0
rm -f /usr/local/lib/libgettextlib.so
rm -f /usr/local/lib/libgettextsrc.so
[ -e /usr/local/lib/libintl.so.7.0.bak ] && \
mv /usr/local/lib/libintl.so.7.0{.bak,}
[ -e /usr/local/lib/libgettextlib.so.bak ] && \
mv /usr/local/lib/libgettextlib.so{.bak,}
[ -e /usr/local/lib/libgettextsrc.so.bak ] && \
mv /usr/local/lib/libgettextsrc.so{.bak,}
Not exactly desired procedure for a fake install. The same thing
happens with glib2
So to verify it is a libtoolproblem I ran
libtoolize --copy --force --automake
Before running configure. And then I got:
Making all in autoconf-lib-link
Making all in m4
Making all in tests
cp ./../config/config.guess config/config.guess
cp ./../config/config.sub config/config.sub
cp ./../config/ltmain.sh config/ltmain.sh
Making all in gettext-runtime
make all-recursive
Making all in doc
Making all in intl
/bin/sh ../libtool --mode=compile gcc -c
-DLOCALEDIR=\"/usr/local/share/locale\"
-DLOCALE_ALIAS_PATH=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\"
-DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY
-DINSTALLDIR=\"/usr/local/lib\" -DNO_XMALLOC
-Dset_relocation_prefix=libintl_set_relocation_prefix
-Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I.
-I.. -I/usr/local/include -g -O2 ./bindtextdom.c
../libtool[1381]: syntax error: `elif' unexpected
*** Error code 1
Stop in /usr/pkgmk/work/gettext/src/gettext-0.14.1/gettext-runtime/intl (line
180 of Makefile).
*** Error code 1
Stop in /usr/pkgmk/work/gettext/src/gettext-0.14.1/gettext-runtime (line 398 of
Makefile).
*** Errin /usr/pkgmk/work/gettext/src/gettext-0.14.1/gettext-runtime (line 292
of Makefile).
*** Error code 1
Stop in /usr/pkgmk/work/gettext/src/gettext-0.14.1 (line 238 of Makefile).
The libtool found in the gettext directory is attached.
# Han
libtool.bz2
Description: Binary data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- libtool on OpenBSD,
Han Boetes <=