building cvs rpm on solaris fails on pthreads

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

 



Hi,

I'm still trying to compile CVS rpm on various hosts.  I'm currently
stuck on how to workaround the use of __GNU_SOURCE specific pthreads
APIs that are not present in the solaris (2.6, 7, 8 or 9) pthreads
implementation:

...
/bin/bash ../libtool --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I.. -I.
-I.. -I../popt -I../popt/intl -I../intl  -I/opt/TWWfsw/rpm42/include
-I/opt/TWWfsw/python232/include/python2.3
-I/opt/TWWfsw/python232/include   -mr -Qn -xstrconst -xO2
-xtarget=generic -xarch=v8 -c -o rpmsq.lo rpmsq.c
 cc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I../popt -I../popt/intl
-I../intl -I/opt/TWWfsw/rpm42/include
-I/opt/TWWfsw/python232/include/python2.3
-I/opt/TWWfsw/python232/include -mr -Qn -xstrconst -xO2 -xtarget=generic
-xarch=v8 -c rpmsq.c  -KPIC -DPIC -o .libs/rpmsq.o
"rpmsq.c", line 135: undefined symbol:
PTHREAD_MUTEX_RECURSIVE_INITIALIZER_NP
"rpmsq.c", line 135: warning: {}-enclosed initializer required
"rpmsq.c", line 135: non-constant initializer: op "NAME"
"rpmsq.c", line 135: cannot recover from previous errors
cc: acomp failed for rpmsq.c
gmake[2]: *** [rpmsq.lo] Error 1
gmake[2]: Leaving directory `/opt/build/rpm-4.2/rpmio'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/opt/build/rpm-4.2'
gmake: *** [all] Error 2
      error: error executing script
$ grep PTHREAD_MUTEX_RECURSIVE_INITIALIZER_NP /usr/include/pthread.h
$ egrep '^#[         ]*include' /usr/include/pthread.h
#include <sys/types.h>
#include <time.h>
#include <sched.h>
$ grep PTHREAD_MUTEX_RECURSIVE_INITIALIZER_NP /usr/include/*.h \
/usr/include/sys/*.h
$

Unfortunately, even copying the relevant initializers from the GNU/Linux
pthreads.h doesn't work, because the pthread_mutex_t structure has a
different signature on Solaris.

Any thoughts on where to go from here?

Cheers,
	Gary.
-- 
Gary V. Vaughan (gary@xxxxxxxxxxxxxxxxxx)

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux