Skip Menu |

This queue is for tickets about the sapnwrfc CPAN distribution.

Report information
The Basics
Id: 39088
Status: resolved
Priority: 0/
Queue: sapnwrfc

People
Owner: Nobody in particular
Requestors: REHSACK [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.20
Fixed in: (no value)



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.
Subject: Re: [rt.cpan.org #39088] Compilation fails for unknown reason
Date: Tue, 9 Sep 2008 00:04:42 +0000
To: Jens Rehsack via RT <bug-sapnwrfc [...] rt.cpan.org>
From: Piers Harding <piers [...] ompka.net>
Hi - I use a non-standard source directory all the time (Ubuntu 8.04 64bit), and do not see the problem that you do - is it possible that it is something to do with the shell environment, if you can break out, and manually run make? It complains about sapnwrfc.h being missing, but you have a -I/opt/pkgsrc/include which should take care of it. Cheers, Piers Harding. On Mon, Sep 08, 2008 at 09:21:03AM -0400, Jens Rehsack via RT wrote: Show quoted text
> Mon Sep 08 09:21:02 2008: Request 39088 was acted upon. > Transaction: Ticket created by REHSACK > Queue: sapnwrfc > Subject: Compilation fails for unknown reason > Broken in: 0.20 > Severity: (no value) > Owner: Nobody > Requestors: REHSACK@cpan.org > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=39088 > > > > 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.
-- Home - http://www.piersharding.com xmpp:piers@ompka.net
Download (untitled)
application/pgp-signature 189b

Message body not shown because it is not plain text.

I patched lib/SAPNW/Makefile.PL a bit in 0.21 and voila :) The original Makefile.PL was much to gcc fixated - and there were some problems in ExtUtils::MakeMaker, I need to fix, too - but this wasn't your fault :) Can be closed when patches accepted or discussed or so ...
Download patch-ab
application/octet-stream 350b

Message body not shown because it is not plain text.

Download patch-aa
application/octet-stream 894b

Message body not shown because it is not plain text.

Subject: Re: [rt.cpan.org #39088] Compilation fails for unknown reason
Date: Sun, 7 Dec 2008 18:05:17 +0000
To: Jens Rehsack via RT <bug-sapnwrfc [...] rt.cpan.org>
From: Piers Harding <piers [...] ompka.net>
Great - thanks for this. I have added the patch in, and tidied up a few other things that have fallen out as a result (sv_pv() derefs not happening), and have put up version 0.22. Have a play with this, and let me know how you get on. Cheers, Piers Harding. On Sun, Dec 07, 2008 at 12:33:49PM -0500, Jens Rehsack via RT wrote: Show quoted text
> Queue: sapnwrfc > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=39088 > > > I patched lib/SAPNW/Makefile.PL a bit in 0.21 and voila :) > > The original Makefile.PL was much to gcc fixated - and there were some > problems in ExtUtils::MakeMaker, I need to fix, too - but this wasn't > your fault :) > > Can be closed when patches accepted or discussed or so ...
-- Home - http://www.piersharding.com xmpp:piers@ompka.net
I believe this is resolved. If the problem still persists, please contact me. Cheers.