Doug Summers wrote:
Doug Summers wrote:
I know it's old but I still have a few to support...
Using GCC 3.4.3 from UCLA's archives. I believe this error was similar
to what I first got trying to build OpenPKG 2.3 on AIX 5.1:
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I../popt -DOPENPKG
-DOPENPKG_AIX -I/tmp/openpkg-2.5.1/zlib-1.2.3
-I/tmp/openpkg-2.5.1/bzip2-1.0.3 -I/tmp/openpkg-2.5.1/beecrypt-4.1.2
-DOPENPKG -DOPENPKG_AIX -I/tmp/openpkg-2.5.1/zlib-1.2.3
-I/tmp/openpkg-2.5.1/bzip2-1.0.3 -I/tmp/openpkg-2.5.1/beecrypt-4.1.2
-O2 -D_GNU_SOURCE -D_REENTRANT -MT rpmrpc.lo -MD -MP -MF
.deps/rpmrpc.Tpo -c rpmrpc.c -o rpmrpc.o
In file included from /usr/include/sys/pri.h:29,
from /usr/include/sys/sched.h:38,
from /usr/include/sched.h:52,
from /usr/include/pthread.h:43,
from rpmrpc.c:8:
/usr/include/sys/proc.h:203: error: parse error before "crid_t"
/usr/include/sys/proc.h:212: error: parse error before "p_class"
/usr/include/sys/proc.h:355: error: parse error before '}' token
rpmrpc.c: In function `ftpOpendir':
rpmrpc.c:1249: warning: assignment makes pointer from integer without
a cast
rpmrpc.c: In function `Glob':
rpmrpc.c:1457: warning: assignment from incompatible pointer type
rpmrpc.c:1458: warning: assignment from incompatible pointer type
rpmrpc.c:1459: warning: assignment from incompatible pointer type
make[2]: *** [rpmrpc.lo] Error 1
make[2]: Leaving directory `/tmp/openpkg-2.5.1/rpm-4.2.1/rpmio'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/openpkg-2.5.1/rpm-4.2.1'
make: *** [all] Error 2
+ exit 2
./openpkg.boot:ERROR: script returned non-null value
Doug
I removed the old GCC 2.95 rpm's, removed the GCC 3.4.3 (doesn't work),
and installed GCC 3.3.0 from Bull's site. I'm getting farther but it
still dies:
/opt/freeware/bin/gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I../build
-I../rpmdb -I../rpmio -I../popt -DOPENPKG -DOPENPKG_AIX
-I/tmp/openpkg-2.5.1/zlib-1.2.3 -I/tmp/openpkg-2.5.1/bzip2-1.0.3
-I/tmp/openpkg-2.5.1/beecrypt-4.1.2 -DOPENPKG -DOPENPKG_AIX
-I/tmp/openpkg-2.5.1/zlib-1.2.3 -I/tmp/openpkg-2.5.1/bzip2-1.0.3
-I/tmp/openpkg-2.5.1/beecrypt-4.1.2 -O2 -D_GNU_SOURCE -D_REENTRANT -MT
rpmfi.lo -MD -MP -MF .deps/rpmfi.Tpo -c rpmfi.c -o rpmfi.o
In file included from ../system.h:401,
from rpmfi.c:6:
../misc/glob.h:53: warning: redefinition of `size_t'
/opt/freeware/lib/gcc-lib/powerpc-ibm-aix4.3.3.0/3.3/include/sys/types.h:137:
warning: `size_t' previously declared here
rpmfi.c: In function `rpmfiFN':
rpmfi.c:145: warning: assignment makes pointer from integer without a cast
rpmfi.c:146: warning: assignment makes pointer from integer without a cast
rpmfi.c: In function `relocateFileList':
rpmfi.c:867: error: invalid operands to binary -
rpmfi.c: In function `rpmfiBuildFClasses':
rpmfi.c:1455: warning: assignment makes pointer from integer without a cast
rpmfi.c: In function `rpmfiBuildFDeps':
rpmfi.c:1549: warning: assignment makes pointer from integer without a cast
make[3]: *** [rpmfi.lo] Error 1
make[3]: Leaving directory `/tmp/openpkg-2.5.1/rpm-4.2.1/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/tmp/openpkg-2.5.1/rpm-4.2.1/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/openpkg-2.5.1/rpm-4.2.1'
make: *** [all] Error 2
+ exit 2
./openpkg.boot:ERROR: script returned non-null value
I'm going to try now to debug the /usr/vac/bin/cc compile.
Doug
Now it dies earlier, during the build of OSSP:
+-----------------------------------------------------------------------------+
| BUILD: Build OSSP uuid (UUID Generation Tool)
|+-----------------------------------------------------------------------------+
+ cd uuid-1.3.1
+ ./configure --prefix=/syscfg/opkg --disable-shared
+ CC=/usr/bin/cc CFLAGS=-O
<snip>
configure: creating ./config.status
config.status: creating Makefile
config.status: creating uuid-config
config.status: creating uuid.pc
config.status: creating uuid.h
config.status: creating config.h
config.status: executing adjustment commands
+ /tmp/openpkg-2.5.1/make-3.80/make
/usr/bin/cc -I. -I. -DHAVE_CONFIG_H -O -c uuid.c -o uuid.o
"uuid_md5.h", line 57.16: 1506-166 (S) Definition of function md5_st
requires parentheses.
"uuid_md5.h", line 57.23: 1506-276 (S) Syntax error: possible missing '{'?
"uuid_md5.h", line 63.5: 1506-045 (S) Undeclared identifier MD5_RC_OK.
"uuid_md5.h", line 64.5: 1506-045 (S) Undeclared identifier MD5_RC_ARG.
"uuid_md5.h", line 65.5: 1506-045 (S) Undeclared identifier MD5_RC_MEM.
"uuid_md5.h", line 66.1: 1506-277 (S) Syntax error: possible missing ';'
or ','?
"uuid_md5.h", line 66.3: 1506-273 (E) Missing type in declaration of
md5_rc_t.
"uuid_md5.h", line 68.8: 1506-166 (S) Definition of function md5_rc_t
requires parentheses.
"uuid_sha1.h", line 63.5: 1506-045 (S) Undeclared identifier SHA1_RC_OK.
"uuid_sha1.h", line 64.5: 1506-045 (S) Undeclared identifier SHA1_RC_ARG.
"uuid_sha1.h", line 65.5: 1506-045 (S) Undeclared identifier SHA1_RC_MEM.
"uuid_sha1.h", line 66.1: 1506-277 (S) Syntax error: possible missing
';' or ','?
"uuid_sha1.h", line 66.3: 1506-273 (E) Missing type in declaration of
sha1_rc_t.
"uuid_sha1.h", line 68.8: 1506-166 (S) Definition of function sha1_rc_t
requires parentheses.
"uuid_prng.h", line 57.5: 1506-045 (S) Undeclared identifier PRNG_RC_OK.
"uuid_prng.h", line 58.5: 1506-045 (S) Undeclared identifier PRNG_RC_ARG.
"uuid_prng.h", line 59.5: 1506-045 (S) Undeclared identifier PRNG_RC_MEM.
"uuid_prng.h", line 60.5: 1506-045 (S) Undeclared identifier PRNG_RC_INT.
"uuid_prng.h", line 61.1: 1506-277 (S) Syntax error: possible missing
';' or ','?
"uuid_prng.h", line 61.3: 1506-273 (E) Missing type in declaration of
prng_rc_t.
"uuid_prng.h", line 63.8: 1506-166 (S) Definition of function prng_rc_t
requires parentheses.
"uuid_ui64.h", line 73.3: 1506-166 (S) Definition of function uuid_
requires parentheses.
"uuid_ui64.h", line 73.3: 1506-276 (S) Syntax error: possible missing '{'?
"uuid.c", line 73.5: 1506-045 (S) Undeclared identifier uuid_uint32_t.
"uuid.c", line 74.5: 1506-045 (S) Undeclared identifier uuid_uint16_t.
"uuid.c", line 76.5: 1506-045 (S) Undeclared identifier uuid_uint8_t.
"uuid.c", line 79.3: 1506-273 (E) Missing type in declaration of uuid_obj_t.
"uuid.c", line 83.5: 1506-046 (S) Syntax error.
"uuid.c", line 106.9: 1506-277 (S) Syntax error: possible missing ')' or
','?
"uuid.c", line 106.9: 1506-045 (S) Undeclared identifier uuid_.
"uuid.c", line 108.9: 1506-277 (S) Syntax error: possible missing ')' or
','?
make: *** [uuid.lo] Error 1
+ exit 2
+ exit 2
./openpkg.boot:ERROR: script returned non-null value
Doug
______________________________________________________________________
The OpenPKG Project www.openpkg.org
User Communication List openpkg-users@openpkg.org