bug-gnulib
[Top][All Lists]
Advanced

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

Errors with rpl_realloc(), pthreads calls on hppa2.0w-hp-hpux11.11


From: Daniel Richard G.
Subject: Errors with rpl_realloc(), pthreads calls on hppa2.0w-hp-hpux11.11
Date: Sat, 12 Oct 2013 03:20:34 -0400

I'm afraid I spoke too soon, and after the resolution on the
str[iu]max() issue, am still seeing a couple of build errors with gnulib
git master on this HP-UX system.

First error:

source='../../gllib/pt_chown.c' object='pt_chown.o' libtool=no \
DEPDIR=.deps depmode=none /bin/sh ../../build-aux/depcomp \
cc -DHAVE_CONFIG_H -I. -I../../gllib -I..  -DGNULIB_STRICT_CHECKING=1
-D_HPUX_API_LEVEL=20040821 -DTG_NO_INLINE   -Ae +DD64 +DO11.0
+ESconstlit +ESlit +w1 -z +O0 -g -c -o pt_chown.o ../../gllib/pt_chown.c
cc  -Ae +DD64 +DO11.0 +ESconstlit +ESlit +w1 -z +O0 -g   -o pt_chown
pt_chown.o libgnu.a 
ld: Unsatisfied symbol "rpl_realloc" in file libgnu.a[vasnprintf.o]
1 errors.
gmake[4]: *** [pt_chown] Error 1
gmake[4]: Leaving directory `/tmp/testdir/_build/gllib'

The system does not appear to have a GNU compatible realloc() function,
but for some reason, the replacement realloc() was not compiled:

$ grep REALLOC config.h
#define GNULIB_REALLOC_GNU IN_GNULIB_TESTS
#define GNULIB_TEST_REALLOC_POSIX 1
#define HAVE_REALLOC_GNU 0
#define HAVE_REALLOC_POSIX 1

$ find . | grep -i realloc
./gllib/.deps/realloc.Po
./gltests/.deps/realloc.Po
./gltests/.deps/test-realloc-gnu.Po


Second error:

cc  -Ae +DD64 +DO11.0 +ESconstlit +ESlit +w1 -z +O0 -g   -o test-regex
test-regex.o libtests.a ../gllib/libgnu.a libtests.a   
ld: Unsatisfied symbol "pthread_mutex_unlock" in file
../gllib/libgnu.a[regex.o]
ld: Unsatisfied symbol "pthread_mutex_init" in file
../gllib/libgnu.a[regex.o]
ld: Unsatisfied symbol "pthread_mutex_lock" in file
../gllib/libgnu.a[regex.o]
ld: Unsatisfied symbol "pthread_mutex_destroy" in file
../gllib/libgnu.a[regex.o]
4 errors.
gmake[4]: *** [test-regex] Error 1
gmake[4]: Leaving directory `/tmp/testdir/_build/gltests'


This link needs to be done with -mt to pull in the pthreads library.
(I'm not sure how Gnulib is supposed to obtain the appropriate threads
flag, however.)


--Daniel


-- 
Daniel Richard G. || address@hidden
My ASCII-art .sig got a bad case of Times New Roman.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]