Ralf S. Engelschall wrote:
On Mon, Dec 19, 2005, Doug Summers wrote:


I've had no problems building OpenPKG 2.5.x on AIX 5.1 with any
maintenance level, but not on AIX 5.2 (tried with ML3 & ML5 machines):

/usr/bin/gcc -DHAVE_CONFIG_H -I. -I. -I. -I./.. -DOPTIMIZE_POWERPC -O
-fsigned-char -DNDEBUG -fomit-frame-pointer -c entropy.c -o entropy.o
In file included from entropy.c:48:
/usr/include/time.h:239: warning: `struct sigevent' declared inside
parameter list
/usr/include/time.h:239: warning: its scope is only this definition or
declaration, which is probably not what you want.
In file included from entropy.c:75:
/usr/include/aio.h:75: field `aio_sigevent' has incomplete type
/usr/include/aio.h:124: field `aio_sigevent' has incomplete type
make[2]: *** [entropy.lo] Error 1
make[2]: Leaving directory `/opt/tmp/openpkg-2.5.1/beecrypt-4.1.2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/tmp/openpkg-2.5.1/beecrypt-4.1.2'
make: *** [all] Error 2
+ exit 2
+ exit 2
./openpkg.boot:ERROR: script returned non-null value


Seems like an #include is missing in entropy.c for something <time.h>
and <aio.h> need. Looks like a missing include for something like
<signal.h> or <sys/signal.h> or even <sys/types.h>.

Actually it was my brain that was missing - looks like the system was using GCC 2.9.x. Upgrading to GCC 3.3.2 allows OpenPKG to compile normally.

Doug
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
Developer Communication List                   openpkg-dev@openpkg.org

Reply via email to