RPM Community Forums

Mailing List Message of <rpm-devel>

compile error in psm.c (missing pthread.h include?) on qnx

From: Peter Kalbus <peter.kalbus@gmx.de>
Date: Fri 25 Jan 2008 - 00:21:05 CET
Message-Id: <9A134AF8-E768-48C9-B14F-02F96D3D5BBD@gmx.de>
psm.c is currently not compilable under qnx 6.3.2:

  qcc -DHAVE_CONFIG_H -I. -I.. -I../build -I../lib -I../rpmdb -I../ 
rpmio -I../misc -I../db3 -I../file/src -I../file -I/usr/pkg/svn/HEAD/ 
pkgsrc/misc/rpm5/work/.buildlink/include -DRPM_OS_NTOQNX=060400 -O2 - 
D_GNU_SOURCE -D_REENTRANT -MT psm.lo -MD -MP -MF .deps/psm.Tpo -c  
psm.c  -fPIC -DPIC -o .libs/psm.o
In file included from psm.h:9,
                  from psm.c:20:
../rpmio/rpmsq.h:50: error: parse error before "pthread_mutex_t"
../rpmio/rpmsq.h:50: warning: no semicolon at end of struct or union
../rpmio/rpmsq.h:51: warning: data definition has no type or storage  
class
In file included from psm.c:20:
psm.h:65: error: field `sq' has incomplete type

if i include pthread.h in rpmsq.h, every works fine. i guess, that the  
chance is valid for every os, although, i've not cross checked that.





-piet



  • application/octet-stream attachment: patch-av
Received on Fri Jan 25 00:21:06 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.