Subject: | Compilation fails for unknown reason |
I create an environment for our "automated hosting solutions"
development - using pkgsrc to have it identically on all supported
platforms.
I added sapnwrfc sdk 7.10 patch level 2 (using an extract pkg) and
adding --source ${PREFIX}${DESTDIR} to Makefile.PL invocation.
When I now calling 'bmake build', p5-sapnwrfc breaks:
[root@ CHROOT(/rwa/chroot/pkgsrc) p5-sapnwrfc]==> bmake
=> Bootstrap dependency digest>=20010302: found digest-20080510
=> Bootstrap dependency tnftp-[0-9]*: found tnftp-20070806
===> Skipping vulnerability checks.
WARNING: No /opt/pkgsrc/var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/opt/pkgsrc/sbin/download-vulnerability-list'.
=> Checksum SHA1 OK for sapnwrfc-0.20.tar.gz
=> Checksum RMD160 OK for sapnwrfc-0.20.tar.gz
===> Installing dependencies for p5-sapnwrfc-0.20
=> Full dependency sapnwrfcsdk>7.0: found sapnwrfcsdk-7.10.2
=> Full dependency perl>=5.8.7: found perl-5.8.8nb8
===> Overriding tools for p5-sapnwrfc-0.20
===> Extracting for p5-sapnwrfc-0.20
===> Patching for p5-sapnwrfc-0.20
===> Creating toolchain wrappers for p5-sapnwrfc-0.20
===> Configuring for p5-sapnwrfc-0.20
Checking if your kit is complete...
Looks good
/usr/local/lib does not seem to contain the libsapnwrfc library files
/usr/lib does not seem to contain the libsapnwrfc library files
Found sapnwrfc installed in /opt/pkgsrc
Using --source libsapnwrfc candidate found at /opt/pkgsrc
================================================
BUILD INFORMATION
================================================
source opt: /opt/pkgsrc
addlibs opt:
embed_manifest opt:
ADD_CFLAGS: -D_LARGEFILE_SOURCE -mno-3dnow
-fno-strict-aliasing -pipe -fexceptions -funsigned-char -Wall
-Wno-uninitialized -Wno-long-long -Wcast-align -DSAPwithUNICODE
-DSAPonUNIX -D__NO_MATH_INLINES -fPIC -DSAPwithTHREADS
sapnwrfc dir: /opt/pkgsrc
libraries: -lm -ldl -lrt -lpthread
-L/opt/pkgsrc/lib -lsapnwrfc -lsapucum
include dir: /opt/pkgsrc/include
sapnwrfc header: /opt/pkgsrc/include/sapnwrfc.h
sapnwrfc candidate: /opt/pkgsrc; /opt/pkgsrc/include; sapnwrfc
================================================
Writing Makefile for SAPNW::Connection
Writing Makefile for sapnwrfc
===> Building for p5-sapnwrfc-0.20
cp lib/SAPNW/Connection.xs blib/lib/SAPNW/Connection.xs
cp lib/SAPNW/Rfc.pm blib/lib/SAPNW/Rfc.pm
cp lib/SAPNW/RFC/Parameter.pm blib/lib/SAPNW/RFC/Parameter.pm
cp lib/SAPNW/Makefile.PL blib/lib/SAPNW/Makefile.PL
cp lib/SAPNW/Base.pm blib/lib/SAPNW/Base.pm
cp lib/SAPNW/Connection.pm blib/lib/SAPNW/Connection.pm
cp lib/SAPNW/RFC/FunctionCall.pm blib/lib/SAPNW/RFC/FunctionCall.pm
cp sapnwrfc.pm blib/lib/sapnwrfc.pm
cp lib/SAPNW/RFC/FunctionDescriptor.pm
blib/lib/SAPNW/RFC/FunctionDescriptor.pm
make[1]: Entering directory
`/opt/room/pkgsrc/devel/p5-sapnwrfc/work/sapnwrfc-0.20/lib/SAPNW'
Skip ../../blib/lib/SAPNW/Rfc.pm (unchanged)
Skip ../../blib/lib/SAPNW/Connection.pm (unchanged)
Skip ../../blib/lib/SAPNW/Base.pm (unchanged)
/opt/pkgsrc/bin/perl /opt/pkgsrc/lib/perl5/5.8.0/ExtUtils/xsubpp
-typemap /opt/pkgsrc/lib/perl5/5.8.0/ExtUtils/typemap Connection.xs >
Connection.xsc && mv Connection.xsc Connection.c
gcc -E -c -I/opt/pkgsrc/include \
-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing
-pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O2 -fno-strict-aliasing -Wno-format -fno-builtin
-I/opt/pkgsrc/include -I/usr/include -I/opt/pkgsrc/include
-I/usr/include \
-DVERSION=\"0.20\" \
-DXS_VERSION=\"0.20\" -fpic
"-I/opt/pkgsrc/lib/perl5/5.8.0/x86_64-linux-thread-multi/CORE"
-D_LARGEFILE_SOURCE -mno-3dnow -fno-strict-aliasing -pipe -fexceptions
-funsigned-char -Wall -Wno-uninitialized -Wno-long-long -Wcast-align
-DSAPwithUNICODE -DSAPonUNIX -D__NO_MATH_INLINES -fPIC
-DSAPwithTHREADS Connection.c > Connection.ii
Connection.xs:23:22: sapnwrfc.h: No such file or directory
make[1]: *** [Connection.i] Error 1
make[1]: Leaving directory
`/opt/room/pkgsrc/devel/p5-sapnwrfc/work/sapnwrfc-0.20/lib/SAPNW'
make: *** [subdirs] Error 2
*** Error code 2
Stop.
bmake: stopped in /opt/room/pkgsrc/devel/p5-sapnwrfc
*** Error code 1
Stop.
bmake: stopped in /opt/room/pkgsrc/devel/p5-sapnwrfc
When I manually switch to the directory
`/opt/room/pkgsrc/devel/p5-sapnwrfc/work/sapnwrfc-0.20/lib/SAPNW' and
running make, everything works:
[root@ CHROOT(/rwa/chroot/pkgsrc) p5-sapnwrfc]==> cd -
/opt/room/pkgsrc/devel/p5-sapnwrfc/work/sapnwrfc-0.20/lib/SAPNW
[root@ CHROOT(/rwa/chroot/pkgsrc) SAPNW]==> make
gcc -E -c -I/opt/pkgsrc/include \
-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing
-pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O2 -fno-strict-aliasing -Wno-format -fno-builtin
-pthread -I/usr/include \
-DVERSION=\"0.20\" \
-DXS_VERSION=\"0.20\" -fpic
"-I/opt/pkgsrc/lib/perl5/5.8.0/x86_64-linux-thread-multi/CORE"
-D_LARGEFILE_SOURCE -mno-3dnow -fno-strict-aliasing -pipe -fexceptions
-funsigned-char -Wall -Wno-uninitialized -Wno-long-long -Wcast-align
-DSAPwithUNICODE -DSAPonUNIX -D__NO_MATH_INLINES -fPIC
-DSAPwithTHREADS Connection.c > Connection.ii
/opt/pkgsrc/bin/perl ../../tools/u16lit.pl -le Connection.ii
gcc -c -I/opt/pkgsrc/include -D_REENTRANT -D_GNU_SOURCE
-DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe
-Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-O2 -fno-strict-aliasing -Wno-format -fno-builtin -pthread
-I/usr/include -DVERSION=\"0.20\" -DXS_VERSION=\"0.20\" -fpic
"-I/opt/pkgsrc/lib/perl5/5.8.0/x86_64-linux-thread-multi/CORE"
-D_LARGEFILE_SOURCE -mno-3dnow -fno-strict-aliasing -pipe -fexceptions
-funsigned-char -Wall -Wno-uninitialized -Wno-long-long -Wcast-align
-DSAPwithUNICODE -DSAPonUNIX -D__NO_MATH_INLINES -fPIC
-DSAPwithTHREADS Connection.i
/opt/pkgsrc/include/sapuc.h:840: warning: 'sccsidU16' defined but not used
Running Mkbootstrap for SAPNW::Connection ()
chmod 644 Connection.bs
rm -f ../../blib/arch/auto/SAPNW/Connection/Connection.so
LD_RUN_PATH="/opt/pkgsrc/lib" gcc -Wl,-R/opt/pkgsrc/lib -shared
Connection.o -o ../../blib/arch/auto/SAPNW/Connection/Connection.so \
-lm -ldl -lrt -lpthread -L/opt/pkgsrc/lib -lsapnwrfc -lsapucum \
chmod 755 ../../blib/arch/auto/SAPNW/Connection/Connection.so
cp Connection.bs ../../blib/arch/auto/SAPNW/Connection/Connection.bs
chmod 644 ../../blib/arch/auto/SAPNW/Connection/Connection.bs
Manifying ../../blib/man3/SAPNW::Rfc.3
Manifying ../../blib/man3/SAPNW::Connection.3
Manifying ../../blib/man3/SAPNW::Base.3
[root@ CHROOT(/rwa/chroot/pkgsrc) SAPNW]==> cd -
/opt/room/pkgsrc/devel/p5-sapnwrfc
Given that all other perl modules are building fine (from build point of
view), I assume that the Makefile sapnwrfc creates has some issues.
Any idea what to fix? I'll plan run it on Linux-x86_64 and AIX-ppc64,
but ideally I create the port for the common intersection of supported
SAP platforms and supported pkgsrc platforms.