On Thu, Dec 16, 2004, Doug Summers wrote:
Has anyone tried to build OpenPKG for AIX? I'm testing this on a 32-bit AIX 5.1 w/ML7 platform and the build dies during the building of rpm-4.2.1 (a problem with fts.c). I know this isn't a supported platform but it's one of many I'm stuck with. If anyone else is interested in trying to get this working let me know. The machine I'm testing on right now is available for builds.
We have a loaned AIX 4.1.x box here and tried to port RPM once a few months ago. Unfortunately this AIX version disliked us very much initially so we suspended this. But if it is possible to get access to an AIX 5.1 box, we can try it again to port RPM to this Unix flavor. Please contact me in private email with the details for access to this box. My PGP keys you find on my homepage.
PS: The fts.c is obvious to fail because it always needed adjustments due to some highly non-portable code.
Ralf S. Engelschall [EMAIL PROTECTED] www.engelschall.com
______________________________________________________________________ The OpenPKG Project www.openpkg.org User Communication List [EMAIL PROTECTED]
Ralf, here's the text from the latest compile I've tried. I used the latest release of the openpkg source, but the errors are consistent on any version 2.2.0 and above. I'm still working on getting an AIX 5.1 machine for you to run tests on:
/usr/local/bin/gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I../popt -DOPENPKG -DOPENPKG_AIX -I/tmp/openpkg-20041220/zlib-1.2.1 -I/tmp/openpkg-20041220/bzip2-1.0.2 -I/tmp/openpkg-20041220/beecrypt-4.1.1 -DOPENPKG -DOPENPKG_AIX -I/tmp/openpkg-20041220/zlib-1.2.1 -I/tmp/openpkg-20041220/bzip2-1.0.2 -I/tmp/openpkg-20041220/beecrypt-4.1.1 -O2 -D_GNU_SOURCE -D_REENTRANT -MT fts.lo -MD -MP -MF .deps/fts.Tpo -c fts.c -o fts.o
In file included from ../system.h:401,
from fts.c:86:
../misc/glob.h:53: warning: redefinition of `size_t'
/usr/local/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.3.2/include/sys/types.h:145: warning: `size_t' previously declared here
fts.c: In function `Fts_open':
fts.c:174: error: invalid type argument of `unary *'
fts.c:215: error: invalid type argument of `unary *'
fts.c:224: error: invalid type argument of `unary *'
fts.c: In function `Fts_close':
fts.c:364: error: invalid type argument of `unary *'
fts.c: In function `Fts_read':
fts.c:538: error: invalid type argument of `unary *'
fts.c:561: error: invalid type argument of `unary *'
fts.c: In function `Fts_set':
fts.c:588: error: invalid type argument of `unary *'
fts.c: In function `Fts_children':
fts.c:604: error: invalid type argument of `unary *'
fts.c:617: error: invalid type argument of `unary *'
fts.c: In function `fts_build':
fts.c:818: error: invalid type argument of `unary *'
fts.c:842: error: invalid type argument of `unary *'
fts.c: In function `fts_stat':
fts.c:980: error: invalid type argument of `unary *'
fts.c: In function `fts_palloc':
fts.c:1145: error: invalid type argument of `unary *'
fts.c: In function `fts_safe_changedir':
fts.c:1214: error: `_STAT_VER' undeclared (first use in this function)
fts.c:1214: error: (Each undeclared identifier is reported only once
fts.c:1214: error: for each function it appears in.)
fts.c:1220: error: invalid type argument of `unary *'
fts.c:1231: error: invalid type argument of `unary *'
make[2]: *** [fts.lo] Error 1
make[2]: Leaving directory `/tmp/openpkg-20041220/rpm-4.2.1/rpmio'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/openpkg-20041220/rpm-4.2.1'
make: *** [all] Error 2
+ exit 2
./openpkg.boot:ERROR: script returned non-null value
Is is possible that I need the latest GCC?
Doug ______________________________________________________________________ The OpenPKG Project www.openpkg.org User Communication List [EMAIL PROTECTED]
