7.1 compile errors when using libintl at non standard location (Was: Heimdal 7.1 release announcement)

Harald Barth <[email protected]>
Newsgroups gmane.comp.encryption.kerberos.heimdal.general
Message-ID <[email protected]>
Compile errors:

../heimdal-7.1.0/configure --with-libintl --with-libintl-include=/usr/local/include --with-libintl-lib=/usr/local/lib --prefix=/usr/heimdal-7.1.0 --disable-kcm --with-openssl --with-openssl-include=/usr/include --with-openssl-lib=/usr/lib --disable-otp --enable-pthread-support --with-readline=/usr/local --with-hdbdir=/var/heimdal --without-berkeley-db --enable-digest --with-ipv6 --enable-kx509 --without-openldap --enable-pk-init --with-sqlite3 --with-sqlite3-include=/usr/local/include --with-sqlite3-lib=/usr/local/lib --with-x --x-libraries=/usr/local/lib --x-includes=/usr/local/include  --localstatedir=/var  --disable-silent-rules

My configure says --with-libintl-include=/usr/local/include but the compile line to array.c does not include a -I/usr/local/include, thus:

libtool: compile:  cc -DHAVE_CONFIG_H -I. -I../../../heimdal-7.1.0/lib/base -I../../include -I../../../heimdal-7.1.0/include -I../../lib/roken -I../../../heimdal-7.1.0/lib/roken -DROKEN_RENAME -D_LARGE_FILES= -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs -Wshadow -DINET6 -g -O2 -MT array.lo -MD -MP -MF .deps/array.Tpo -c ../../../heimdal-7.1.0/lib/base/array.c  -fPIC -DPIC -o .libs/array.o
In file included from ../../../heimdal-7.1.0/lib/base/array.c:36:
../../../heimdal-7.1.0/lib/base/baselocl.h:47:10: fatal error: 'libintl.h' file
      not found
#include <libintl.h>
         ^
1 error generated.

Workaround: Append to configure 'CFLAGS="-I/usr/local/include"'

Then later there is a link error for some symbol from libintl. So:

Workaround: Append to configure 'LDFLAGS="-L/usr/local/lib -Wl,-rpath -Wl,/usr/local/lib -lintl"

Looks to me you need to pass what was gathered from the configure
options to the places where needed for the build.

Sorry, I did not have this FreeBSD 11 environment ready when you released the candidates.
Harald.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.