On Mon, Sep 16, 2002, Mosbach, Dieter wrote: > I tried to install openpkg (openpkg-1.1.0-1.1.0.src.sh, > same results with openpkg-20020909-20020909.src.sh) > on some HP-UX machines. > > 1.) > compiling stops with error: > > /usr/bin/cc -DOPENPKG -I/tmp/openpkg-1.1.0/db-3.2.9/build_unix >-I/tmp/openpkg-1.1.0/zlib-1.1.4 -I/tmp/openpkg-1.1.0/bzip2-1.0.2 -DHAVE_CONFIG_H -I. >-I. -I.. -I.. -I../build -I../rpmio -I../popt -I../misc -DOPENPKG >-I/tmp/openpkg-1.1.0/db-3.2.9/build_unix -I/tmp/openpkg-1.1.0/zlib-1.1.4 >-I/tmp/openpkg-1.1.0/bzip2-1.0.2 -DOPENPKG -I/tmp/openpkg-1.1.0/db-3.2.9/build_unix >-I/tmp/openpkg-1.1.0/zlib-1.1.4 -I/tmp/openpkg-1.1.0/bzip2-1.0.2 -c header.c -o >header.o > cc: "header.c", line 263: warning 524: Cast (non-lvalue) appears on left-hand side >of assignment. > cc: "header.c", line 263: error 1549: Modifiable lvalue required for assignment >operator. > > 2.) > If i try it with gcc 3.2 (from gcc-3.2-sd-11.00.depot.gz) : > > /usr/local/bin/gcc -DOPENPKG -I/tmp/openpkg-20020909/db-3.2.9/build_unix >-I/tmp/openpkg-20020909/zlib-1.1.4 -I/tmp/openpkg-20020909/bzip2-1.0.2 >-DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../build -I../lib -I../popt -I../misc >-I/usr/local/include -DOPENPKG -I/tmp/openpkg-20020909/db-3.2.9/build_unix >-I/tmp/openpkg-20020909/zlib-1.1.4 -I/tmp/openpkg-20020909/bzip2-1.0.2 -DOPENPKG >-I/tmp/openpkg-20020909/db-3.2.9/build_unix -I/tmp/openpkg-20020909/zlib-1.1.4 >-I/tmp/openpkg-20020909/bzip2-1.0.2 -D_GNU_SOURCE -Wall -Wpointer-arith >-Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -c rpmrpc.c -o rpmrpc.o > cc1: warning: changing search order for system directory "/usr/local/include" > cc1: warning: as it has already been specified as a non-system directory > In file included from /usr/include/netdb.h:69, > from ../system.h:231, > from rpmrpc.c:5: > /usr/include/sys/socket.h:484: parse error before "sendfile" > > 3.) > second machine: > > cc: "rpmio_internal.h", line 148: error 1000: Unexpected symbol: "fdGetIo". > cc: panic 2017: Cannot recover from earlier errors, terminating. > make[2]: *** [rpmrpc.lo] Error 1 > > Can anyone give some hints? >
Hello Dieter, Sorry for taking so long to respond, because I actually don't have a concrete solution for you. Instead I have some questions and hints. The OpenPKG bootstrapper compiles db and rpm among other softwares. It seems clear to me that db and rpm are failing to compile on your machines during bootstrapping. I would try compiling db from source ftp://ftp.openpkg.org/sources/DST/openpkg/db-3.2.9.tar.gz by hand. Same thing with RPM at ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/rpm-4.0.2.tar.gz. Naturally, the bootstrapper does some patching on these builds, so this is just the first step of analysis to track down what can be done for your particular machines. If you do succeed with hand building, then we can start applying patches and building again. If that works also, then there is probably a messed up dependency. During bootstrap, OpenPKG builds db and rpm with dependencies to a variety of other packages such as zlib, bzip2, gzip, tar, patch, make, bash, and curl. As you might expect, this could be an easy fix for you or it could be rather involved. Be prepared, as HPUX is still on the unofficially supported list. That means that it is not an officially supported platform. Rather, we have indications that OpenPKG can be bootstrapped on HPUX and is in working condition. We are also working to improve support for HPUX, but it will take some time. I hope that helps. Good luck, and let us know what you learn from the above steps. Regards, Michael
msg00127/pgp00000.pgp
Description: PGP signature