pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/44446: databases/db4 from pkgsrc-2010Q4 fails to build on aix 5.3
>Number: 44446
>Category: pkg
>Synopsis: databases/db4 from pkgsrc-2010Q4 fails to build on aix 5.3
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jan 23 06:40:00 +0000 2011
>Originator: J Raynor
>Release: aix 5.3
>Organization:
>Environment:
AIX testsys 3 5
>Description:
The databases/db4 package fails to build on aix 5.3 with gcc. Below is the
error that I get:
configure: creating ./config.status
config.status: creating Makefile
config.status: creating db_cxx.h
config.status: creating db_int.h
config.status: creating clib_port.h
config.status: creating include.tcl
config.status: creating db.h
config.status: creating db_185.h
config.status: creating db185_int.h
config.status: creating db_config.h
config.status: executing libtool commands
configure: WARNING: unrecognized options: --with-libintl-prefix,
--with-libiconv-prefix
=> Modifying libtool scripts to use pkgsrc libtool
===> Building for db4-4.8.30
./libtool --mode=compile gcc -c -I. -I../dist/.. -I/usr/include
-I/jxr/gcc44/include -I/jxr/gcc44/lib/gcc/powerpc-ibm-aix5.3.0.0/4.4.4/include
-I/jxr/include -D_THREAD_SAFE -O3 -I/usr/include -I/jxr/gcc44/include
-I/jxr/gcc44/lib/gcc/powerpc-ibm-aix5.3.0.0/4.4.4/include -I/jxr/include
../dist/../db185/db185.c
libtool: compile: gcc -c -I. -I../dist/..
-I/jxr/pkgsrc/databases/db4/work/.buildlink/gcc44/include
-I/jxr/pkgsrc/databases/db4/work/.buildlink/gcc44/lib/gcc/powerpc-ibm-aix5.3.0.0/4.4.4/include
-I/jxr/pkgsrc/databases/db4/work/.buildlink/include -D_THREAD_SAFE -O3
../dist/../db185/db185.c -DPIC -o .libs/db185.o
In file included from ../dist/../dbinc/mutex.h:15,
from ./db_int.h:884,
from ../dist/../db185/db185.c:11:
../dist/../dbinc/mutex_int.h:949: error: expected specifier-qualifier-list
before 'tsl_t'
In file included from ./db_int.h:884,
from ../dist/../db185/db185.c:11:
../dist/../dbinc/mutex.h: In function '__db_pthread_mutex_trylock':
../dist/../dbinc/mutex.h:102: error: 'DB_MUTEX' has no member named 'flags'
../dist/../dbinc/mutex.h:103: error: 'DB_MUTEX' has no member named 'u'
../dist/../dbinc/mutex.h:106: error: 'DB_MUTEX' has no member named 'u'
../dist/../dbinc/mutex.h:107: error: 'DB_MUTEX' has no member named 'flags'
../dist/../dbinc/mutex.h:112: error: 'DB_MUTEX' has no member named
'mutex_set_nowait'
../dist/../dbinc/mutex.h: In function '__db_pthread_mutex_tryreadlock':
../dist/../dbinc/mutex.h:126: error: 'DB_MUTEX' has no member named 'flags'
../dist/../dbinc/mutex.h:127: error: 'DB_MUTEX' has no member named 'u'
../dist/../dbinc/mutex.h:134: error: 'DB_MUTEX' has no member named
'mutex_set_rd_nowait'
*** Error code 1
Stop.
bmake: stopped in /jxr/pkgsrc/databases/db4/work/db-4.8.30/build_unix
*** Error code 1
Stop.
bmake: stopped in /jxr/pkgsrc/databases/db4
*** Error code 1
Stop.
bmake: stopped in /jxr/pkgsrc/databases/db4
>How-To-Repeat:
Try to build databases/db4 with gcc
>Fix:
The reason the build fails is due to part of patch-ab. Specifically, this part:
@@ -18748,7 +18748,7 @@ if test "$db_cv_mutex" = no; then
# If the user specified we use POSIX pthreads mutexes, and we fail to
# find the full interface, try and configure for just intra-process
# support.
- if test "$db_cv_mutex" = no -o "$db_cv_mutex" = posix_only; then
+ if test "$ac_cv_lib_pthread_main" = yes -a "$db_cv_mutex" = no -o
"$db_cv_mutex" = posix_only; then
LIBS="$LIBS -lpthread"
if test "$cross_compiling" = yes; then :
When this part of patch-ab is reverted, db4 builds successfully. I don't
understand why this part of patch-ab is needed, so I don't know what an
appropriate fix would be.
Home |
Main Index |
Thread Index |
Old Index