pkgsrc-Users archive

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

p5-gettext build fails on aix 6.1 for 2015Q4



I’ve bootstrapped 2015Q4 on aix 6.1, and I’m trying to install
pkgsrc’s gcc.  p5-gettext is one of the prereqs, and it fails to
build.  I’ve included the full output at the bottom.

There are 2 problems.  The first is that it is looking for libintl.h
in $PREFIX/include instead of $PREFIX/include/gettext, which is where
the gettext-lib package installs that header file.  The 2nd problem is
that it needs to link against libpthread and libiconv but doesn’t.
I’m able to get the package to build by doing:

bmake CC="gcc -I /opt/pkgsrc-2015Q4/include/gettext -lpthread -liconv”


I’m able to see the problems by trying to compile the conftest.c
program from Makefile.PL.  Here’s what I get by running the same
compile command that Makefile.PL does:

bash-4.3$ gcc -O -I/opt/pkgsrc-2015Q4/include -I/usr/include -o
conftest conftest.c -L/opt/pkgsrc-2015Q4/lib -lintl
conftest.c:1:21: fatal error: libintl.h: No such file or directory
 #include <libintl.h>
                     ^
compilation terminated.



Adding the right include path gets past the header problem and reveals
the linking problem:

bash-4.3$ gcc -O -I/opt/pkgsrc-2015Q4/include -I/usr/include
-I/opt/pkgsrc-2015Q4/include/gettext -o conftest conftest.c
-L/opt/pkgsrc-2015Q4/lib -lintl
ld: 0711-317 ERROR: Undefined symbol: .pthread_mutexattr_init
ld: 0711-317 ERROR: Undefined symbol: .pthread_mutexattr_settype
ld: 0711-317 ERROR: Undefined symbol: .pthread_mutexattr_destroy
ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_init
ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock
ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock
ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_destroy
ld: 0711-317 ERROR: Undefined symbol: .pthread_rwlock_init
ld: 0711-317 ERROR: Undefined symbol: .locale_charset
ld: 0711-317 ERROR: Undefined symbol: .pthread_rwlock_rdlock
ld: 0711-317 ERROR: Undefined symbol: .pthread_rwlock_unlock
ld: 0711-317 ERROR: Undefined symbol: .pthread_rwlock_wrlock
ld: 0711-317 ERROR: Undefined symbol: .libiconv_open
ld: 0711-317 ERROR: Undefined symbol: .libiconv
ld: 0711-317 ERROR: Undefined symbol: .libiconv_set_relocation_prefix
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: error: ld returned 8 exit status



For the header problem, is p5-gettext looking in the wrong place for
the header, or did gettext-lib install the header in the wrong place?

For the linking problem, should p5-gettext need to link against
libpthread and libiconv, or was libintl built incorrectly?



Here’s the full output from just running bmake:

bash-4.3$ bmake
=> Bootstrap dependency digest>=20010302: found digest-20121220
=> Bootstrap dependency tnftp-[0-9]*: found tnftp-20151004
===> Skipping vulnerability checks.
WARNING: No /opt/pkgsrc-2015Q4/var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/opt/pkgsrc-2015Q4/sbin/pkg_admin -K
/opt/pkgsrc-2015Q4/var/db/pkg fetch-pkg-vulnerabilities'.
=> Checksum SHA1 OK for gettext-1.07.tar.gz
=> Checksum RMD160 OK for gettext-1.07.tar.gz
=> Checksum SHA512 OK for gettext-1.07.tar.gz
===> Installing dependencies for p5-gettext-1.07
=> Tool dependency {gzip>=1.2.4b,gzip-base>=1.2.4b}: found gzip-1.6
=> Tool dependency nbpatch-[0-9]*: found nbpatch-20151107
=> Full dependency gettext-lib>=0.18: found gettext-lib-0.19.6
=> Full dependency perl<5.24.0: found perl-5.22.1
=> Full dependency perl>=5.22.0: found perl-5.22.1
===> Overriding tools for p5-gettext-1.07
===> Extracting for p5-gettext-1.07
===> Patching for p5-gettext-1.07
=> Applying pkgsrc patches for p5-gettext-1.07
===> Creating toolchain wrappers for p5-gettext-1.07
===> Configuring for p5-gettext-1.07
=> Substituting "intlpath" in Makefile.PL
checking for gettext... no
checking for gettext in -L/opt/pkgsrc-2015Q4/lib -lintl... no
gettext function not found. Please install libintl at Makefile.PL line 18.
*** Error code 2

Stop.
bmake[1]: stopped in /home/pkgsrc/pkgsrc-2015Q4/devel/p5-gettext
*** Error code 1

Stop.
bmake: stopped in /home/pkgsrc/pkgsrc-2015Q4/devel/p5-gettext


Home | Main Index | Thread Index | Old Index