on 04-28-2010 3:35 AM
C:\strawberry\perl\SAP-Rfc-1.55>perl Makefile.PL
/usr/lib does not seem to contain the librfc (or librfccm) library files
Found rfc32 installed in /usr/sap/rfcsdk
Which librfc build path do you want to link against? [/usr/sap/rfcsdk]
================================================
BUILD INFORMATION
================================================
rfc dir: c:\usr\sap\rfcsdk
libraries: -lm -ldl -lpthread -lc -L"c:\usr\sap\rfcsdk/lib" -lrfc32
include dir: "c:\usr\sap\rfcsdk\include"
rfc header: "c:\usr\sap\rfcsdk\include"/saprfc.h
rfc candidate: /usr/sap/rfcsdk; /usr/sap/rfcsdk/include; rfc32
================================================
Note (probably harmless): No library found for -ldl
Note (probably harmless): No library found for -lpthread
Note (probably harmless): No library found for -lc
Note (probably harmless): No library found for -lrfc32
Writing Makefile for SAP::Rfc
Welcome to The SAP::Rfc Object oriented Programming Interface for
performing RFC calls to an SAP R/3 System.
YOU MUST READ THE README FILE THAT COMES WITH THIS DISTRIBUTION
AND UNDERSTAND THE TERMS AND CONDITIONS THEREIN.
-
Please Press Enter -
Copyright (c) 2002 - 2006 Piers Harding.
All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of either:
a) the GNU General Public License as published by the Free
Software Foundation; either version 1, or (at your option) any
later version, or
b) the "Artistic License" which comes with this Kit.
This software is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See either
the GNU General Public License or the Artistic License for more details.
You should have received a copy of the Artistic License with this
Kit, in the file named "Artistic". If not, I'll be glad to provide one.
You should also have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
-
Please Press Enter -
Please Enter The Following:
Enter ASHOST - Test SAP System Hostname: [localhost] ldnpsmsa0028
Enter SYSNR - System Number: [00] 01
Enter CLIENT - Client Number: [000] 100
Enter LANG - Login Language: [en]
Enter USER - User Id: [DEVELOPER] mukkavin
Enter PASSWD - Password: [developer] Leh@001
Enter TRACE - Trace Level: [1] 1
Were on our way .............
C:\strawberry\perl\SAP-Rfc-1.55>dmake
Running Mkbootstrap for SAP::Rfc ()
C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e chmod 644 Rfc.bs
dlltool --def Rfc.def --output-exp dll.exp
g++ -o blib\arch\auto\SAP\Rfc\Rfc.dll -Wl,--base-file -Wl,dll.base -mdll -s -L"C
:\strawberry\perl\lib\CORE" -L"C:\strawberry\c\lib" Rfc.o -Wl,--image-base,0x360
a0000 C:\strawberry\perl\lib\CORE\libperl510.a C:\strawberry\c\lib\libm.a C:\st
rawberry\c\lib\libmsvcrt.a C:\strawberry\c\lib\libmoldname.a C:\strawberry\c\lib
\libkernel32.a C:\strawberry\c\lib\libuser32.a C:\strawberry\c\lib\libgdi32.a C:
\strawberry\c\lib\libwinspool.a C:\strawberry\c\lib\libcomdlg32.a C:\strawberry\
c\lib\libadvapi32.a C:\strawberry\c\lib\libshell32.a C:\strawberry\c\lib\libole3
2.a C:\strawberry\c\lib\liboleaut32.a C:\strawberry\c\lib\libnetapi32.a C:\straw
berry\c\lib\libuuid.a C:\strawberry\c\lib\libws2_32.a C:\strawberry\c\lib\libmpr
.a C:\strawberry\c\lib\libwinmm.a C:\strawberry\c\lib\libversion.a C:\strawberry
\c\lib\libodbc32.a C:\strawberry\c\lib\libodbccp32.a dll.exp
Rfc.o: In function `MyInit':
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:786: undefined reference to `RfcInstallSt
ructure2@16'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:791: undefined reference to `RfcInstallSt
ructure2@16'
Rfc.o: In function `rfc_error':
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:813: undefined reference to `RfcLastError
Ex@4'
Rfc.o: In function `MyBcdToChar':
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:842: undefined reference to `RfcConvertBc
dToChar@20'
Rfc.o: In function `MyConnect':
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:879: undefined reference to `RfcEnvironme
nt@4'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:886: undefined reference to `RfcOpenEx@8'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:891: undefined reference to `RfcLastError
Ex@4'
Rfc.o: In function `MyDisconnect':
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:918: undefined reference to `RfcClose@4'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:918: undefined reference to `RfcClose@4'
Rfc.o: In function `MyGetTicket':
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:934: undefined reference to `RfcGetTicket
@8'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:938: undefined reference to `RfcLastError
Ex@4'
Rfc.o: In function `MyAllowStartProgram':
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:952: undefined reference to `RfcAllowStar
tProgram@4'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:952: undefined reference to `RfcAllowStar
tProgram@4'
Rfc.o: In function `MyGetStructure':
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:1081: undefined reference to `ItCreate@16
'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:1106: undefined reference to `RfcCallRece
ive@24'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:1150: undefined reference to `ItGetLine@8
'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:1147: undefined reference to `ItFill@4'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:1159: undefined reference to `ItGetLine@8
'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:1176: undefined reference to `ItFree@4'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:1115: undefined reference to `RfcLastErro
rEx@4'
Rfc.o: In function `MyInstallStructure':
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:1319: undefined reference to `RfcExidToRf
cType@8'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:1332: undefined reference to `RfcInstallS
tructure2@16'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:1347: undefined reference to `RfcLastErro
rEx@4'
Rfc.o: In function `MyRfcPing':
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:1373: undefined reference to `RfcCallRece
ive@24'
Rfc.o: In function `MySysinfo':
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:1447: undefined reference to `RfcCallRece
ive@24'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:1455: undefined reference to `RfcLastErro
rEx@4'
Rfc.o: In function `MyGetInterface':
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:1522: undefined reference to `RfcGetFunct
ionInfoAsTable@16'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:1548: undefined reference to `ItGetLine@8
'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:1547: undefined reference to `ItFill@4'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:1591: undefined reference to `ItFree@4'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:1529: undefined reference to `RfcLastErro
rEx@4'
Rfc.o: In function `MyRfcCallReceive':
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:1777: undefined reference to `ItCreate@16
'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:1805: undefined reference to `ItAppLine@4
'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:1845: undefined reference to `RfcCallRece
ive@24'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:1857: undefined reference to `RfcLastErro
rEx@4'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:2013: undefined reference to `ItGetLine@8
'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:1993: undefined reference to `ItFill@4'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:2020: undefined reference to `ItFree@4'
Rfc.o: In function `install_docu':
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:3577: undefined reference to `RfcInstallF
unction@12'
Rfc.o: In function `my_register':
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:2625: undefined reference to `RfcEnvironm
ent@4'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:2642: undefined reference to `RfcAcceptEx
t@4'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:2656: undefined reference to `RfcCheckReg
isterServer@32'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:2693: undefined reference to `RfcInstallT
ransactionControl@16'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:2708: undefined reference to `RfcAbort@8'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:2717: undefined reference to `RfcInstallF
unction@12'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:2724: undefined reference to `RfcAbort@8'
Rfc.o: In function `get_attributes':
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:2866: undefined reference to `RfcGetAttri
butes@8'
Rfc.o: In function `handle_request':
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:3122: undefined reference to `RfcGetData@
12'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:3238: undefined reference to `ItFree@4'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:3281: undefined reference to `RfcRaise@8'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:3230: undefined reference to `ItGetLine@8
'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:3210: undefined reference to `ItFill@4'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:3383: undefined reference to `ItCreate@16
'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:3415: undefined reference to `ItAppLine@4
'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:3443: undefined reference to `RfcSendData
@12'
Rfc.o: In function `my_one_loop':
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:2768: undefined reference to `RfcWaitForR
equest@8'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:2768: undefined reference to `RfcWaitForR
equest@8'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:2788: undefined reference to `RfcGetName@
8'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:2781: undefined reference to `RfcDispatch
@4'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:2805: undefined reference to `RfcRaise@8'
Rfc.o: In function `user_global_server':
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:2289: undefined reference to `RfcGetName@
8'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:2305: undefined reference to `RfcRaise@8'
Rfc.o: In function `my_accept':
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:2373: undefined reference to `RfcEnvironm
ent@4'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:2390: undefined reference to `RfcAcceptEx
t@4'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:2404: undefined reference to `RfcCheckReg
isterServer@32'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:2446: undefined reference to `RfcInstallT
ransactionControl@16'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:2461: undefined reference to `RfcAbort@8'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:2499: undefined reference to `RfcInstallF
unction@12'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:2520: undefined reference to `RfcWaitForR
equest@8'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:2533: undefined reference to `RfcDispatch
@4'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:2582: undefined reference to `RfcClose@4'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:2540: undefined reference to `RfcGetName@
8'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:2556: undefined reference to `RfcRaise@8'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:2506: undefined reference to `RfcAbort@8'
Rfc.o: In function `do_docu':
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:3539: undefined reference to `RfcGetData@
12'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:3548: undefined reference to `ItAppLine@4
'
C:/strawberry/perl/SAP-Rfc-1.55/Rfc.xs:3558: undefined reference to `RfcSendData
@12'
collect2: ld returned 1 exit status
dmake: Error code 129, while making 'blib\arch\auto\SAP\Rfc\Rfc.dll'
C:\strawberry\perl\SAP-Rfc-1.55>
Windows 2003, gcc compiler 3.4.5 and tried with both RFCSDK 6.40 and 7.0 with the same result.
Strawberry perl 5.10.0.
Any help is greatly appreciated .
Thanks
Hi -
SAP::Rfc is old and unsupported now - you should try using sapnwrfc for Perl - http://search.cpan.org/dist/sapnwrfc/ - this requires the new NW SAP RFCSDK with decent unicode support.
Cheers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Piers. Dmake succeeded after compiling the MSVC dll into mingw32 library. But the dmake test fails with dynamic load of the library SAPNW::Connector. Any help to resolve this is greatly appreciated .
Thanks
C:\strawberry\perl\sapnwrfc-0.31>dmake
cp lib/SAPNW/dll.exp blib\lib\SAPNW\dll.exp
Skip blib\lib\SAPNW\Connection.c (unchanged)
Skip blib\lib\SAPNW\Connection.o (unchanged)
Skip blib\lib\SAPNW\Makefile (unchanged)
Skip blib\lib\SAPNW\RFC\Parameter.pm (unchanged)
Skip blib\lib\SAPNW\Base.pm (unchanged)
Skip blib\lib\SAPNW\RFC\FunctionCall.pm (unchanged)
Skip blib\lib\sapnwrfc.pm (unchanged)
Skip blib\lib\SAPNW\RFC\FunctionDescriptor.pm (unchanged)
Skip blib\lib\SAPNW\pm_to_blib (unchanged)
Skip blib\lib\SAPNW\Connection.bs (unchanged)
Skip blib\lib\SAPNW\Connection.xs (unchanged)
Skip blib\lib\SAPNW\Rfc.pm (unchanged)
Skip blib\lib\sapnwrfc-cookbook.pod (unchanged)
Skip blib\lib\SAPNW\Connection.def (unchanged)
Skip blib\lib\SAPNW\Makefile.PL (unchanged)
Skip blib\lib\SAPNW\Connection.pm (unchanged)
cp lib/SAPNW/dll.base blib\lib\SAPNW\dll.base
Running Mkbootstrap for SAPNW::Connection ()
C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e chmod 644 Connection.bs
dlltool --def Connection.def --output-exp dll.exp
g++ -o ..\..\blib\arch\auto\SAPNW\Connection\Connection.dll -Wl,--base-file -Wl,
dll.base -mdll -s -L"C:\strawberry\perl\lib\CORE" -L"C:\strawberry\c\lib" Connec
tion.o -Wl,--image-base,0x260c0000 C:\strawberry\perl\lib\CORE\libperl510.a C:\
strawberry\c\lib\libm.a c:\usr\sap\nwrfcsdk\lib\libsapnwrfc.a C:\strawberry\c\li
b\libmsvcrt.a C:\strawberry\c\lib\libmoldname.a C:\strawberry\c\lib\libkernel32.
a C:\strawberry\c\lib\libuser32.a C:\strawberry\c\lib\libgdi32.a C:\strawberry\c
\lib\libwinspool.a C:\strawberry\c\lib\libcomdlg32.a C:\strawberry\c\lib\libadva
pi32.a C:\strawberry\c\lib\libshell32.a C:\strawberry\c\lib\libole32.a C:\strawb
erry\c\lib\liboleaut32.a C:\strawberry\c\lib\libnetapi32.a C:\strawberry\c\lib\l
ibuuid.a C:\strawberry\c\lib\libws2_32.a C:\strawberry\c\lib\libmpr.a C:\strawbe
rry\c\lib\libwinmm.a C:\strawberry\c\lib\libversion.a C:\strawberry\c\lib\libodb
c32.a C:\strawberry\c\lib\libodbccp32.a dll.exp
dlltool --def Connection.def --base-file dll.base --output-exp dll.exp
g++ -o ..\..\blib\arch\auto\SAPNW\Connection\Connection.dll -mdll -s -L"C:\straw
berry\perl\lib\CORE" -L"C:\strawberry\c\lib" Connection.o -Wl,--image-base,0x260
c0000 C:\strawberry\perl\lib\CORE\libperl510.a C:\strawberry\c\lib\libm.a c:\us
r\sap\nwrfcsdk\lib\libsapnwrfc.a C:\strawberry\c\lib\libmsvcrt.a C:\strawberry\c
\lib\libmoldname.a C:\strawberry\c\lib\libkernel32.a C:\strawberry\c\lib\libuser
32.a C:\strawberry\c\lib\libgdi32.a C:\strawberry\c\lib\libwinspool.a C:\strawbe
rry\c\lib\libcomdlg32.a C:\strawberry\c\lib\libadvapi32.a C:\strawberry\c\lib\li
bshell32.a C:\strawberry\c\lib\libole32.a C:\strawberry\c\lib\liboleaut32.a C:\s
trawberry\c\lib\libnetapi32.a C:\strawberry\c\lib\libuuid.a C:\strawberry\c\lib\
libws2_32.a C:\strawberry\c\lib\libmpr.a C:\strawberry\c\lib\libwinmm.a C:\straw
berry\c\lib\libversion.a C:\strawberry\c\lib\libodbc32.a C:\strawberry\c\lib\lib
odbccp32.a dll.exp
C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e chmod 755 ..\..\blib\arch
\auto\SAPNW\Connection\Connection.dll
C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e cp Connection.bs ..\..\bl
ib\arch\auto\SAPNW\Connection\Connection.bs
C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e chmod 644 ..\..\blib\arch
\auto\SAPNW\Connection\Connection.bs
C:\strawberry\perl\sapnwrfc-0.31>dmake test
cp lib/SAPNW/dll.exp blib\lib\SAPNW\dll.exp
Skip blib\lib\SAPNW\Connection.c (unchanged)
Skip blib\lib\SAPNW\Connection.o (unchanged)
Skip blib\lib\SAPNW\Makefile (unchanged)
Skip blib\lib\SAPNW\RFC\Parameter.pm (unchanged)
Skip blib\lib\SAPNW\Base.pm (unchanged)
Skip blib\lib\SAPNW\RFC\FunctionCall.pm (unchanged)
Skip blib\lib\sapnwrfc.pm (unchanged)
Skip blib\lib\SAPNW\RFC\FunctionDescriptor.pm (unchanged)
Skip blib\lib\SAPNW\pm_to_blib (unchanged)
Skip blib\lib\SAPNW\Connection.bs (unchanged)
Skip blib\lib\SAPNW\Connection.xs (unchanged)
Skip blib\lib\SAPNW\Rfc.pm (unchanged)
Skip blib\lib\sapnwrfc-cookbook.pod (unchanged)
Skip blib\lib\SAPNW\Connection.def (unchanged)
Skip blib\lib\SAPNW\Makefile.PL (unchanged)
Skip blib\lib\SAPNW\Connection.pm (unchanged)
Skip blib\lib\SAPNW\dll.base (unchanged)
C:\strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0,
'blib\lib', 'blib\arch')" t/*.t
t/00use...................Can't load 'C:\strawberry\perl\sapnwrfc-0.31\blib\arch
/auto/SAPNW/Connection/Connection.dll' for module SAPNW::Connection: load_file:T
he specified module could not be found at C:/STRAWB~1/perl/lib/DynaLoader.pm lin
e 203.
at C:\strawberry\perl\sapnwrfc-0.31\blib\lib/sapnwrfc.pm line 18
Compilation failed in require at C:\strawberry\perl\sapnwrfc-0.31\blib\lib/sapnw
rfc.pm line 18.
BEGIN failed--compilation aborted at C:\strawberry\perl\sapnwrfc-0.31\blib\lib/s
apnwrfc.pm line 18.
Compilation failed in require at t/00use.t line 4.
BEGIN failed--compilation aborted at t/00use.t line 4.
t/00use................... Dubious, test returned 2 (wstat 512, 0x200)
Failed 1/1 subtests
t/01conn..................Can't load 'C:\strawberry\perl\sapnwrfc-0.31\blib\arch
/auto/SAPNW/Connection/Connection.dll' for module SAPNW::Connection: load_file:T
he specified module could not be found at C:/STRAWB~1/perl/lib/DynaLoader.pm lin
e 203.
at C:\strawberry\perl\sapnwrfc-0.31\blib\lib/sapnwrfc.pm line 18
Compilation failed in require at C:\strawberry\perl\sapnwrfc-0.31\blib\lib/sapnw
rfc.pm line 18.
BEGIN failed--compilation aborted at C:\strawberry\perl\sapnwrfc-0.31\blib\lib/s
apnwrfc.pm line 18.
Compilation failed in require at t/01conn.t line 4.
BEGIN failed--compilation aborted at t/01conn.t line 4.
t/01conn.................. Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/2 subtests
t/01conn_z................
Failed test 'use sapnwrfc;'
at t/01conn_z.t line 3.
t/01conn_z................1/201 # Tried to use 'sapnwrfc'.
Error: Can't load 'C:\strawberry\perl\sapnwrfc-0.31\blib\arch/auto/SAPNW/
Connection/Connection.dll' for module SAPNW::Connection: load_file:The specified
module could not be found at C:/STRAWB~1/perl/lib/DynaLoader.pm line 203.
at C:\strawberry\perl\sapnwrfc-0.31\blib\lib/sapnwrfc.pm line 18
Compilation failed in require at C:\strawberry\perl\sapnwrfc-0.31\blib\lib/sap
nwrfc.pm line 18.
BEGIN failed--compilation aborted at C:\strawberry\perl\sapnwrfc-0.31\blib\lib
/sapnwrfc.pm line 18.
Compilation failed in require at (eval 3) line 2.
BEGIN failed--compilation aborted at (eval 3) line 2.
Testing SAPNW::Rfc-0.31
Can't locate auto/SAPNW/Connection/connect.al in @INC (@INC contains: C:\strawbe
rry\perl\sapnwrfc-0.31\blib\lib C:\strawberry\perl\sapnwrfc-0.31\blib\arch C:/ST
RAWB1/perl/lib C:/STRAWB1/perl/site/lib .) at C:\strawberry\perl\sapnwrfc-0.31
\blib\lib/SAPNW/Rfc.pm line 66
Looks like you planned 201 tests but ran 1.
Looks like you failed 1 test of 1 run.
Looks like your test exited with 2 just after 1.
t/01conn_z................ Dubious, test returned 2 (wstat 512, 0x200)
Failed 201/201 subtests
t/02attrib................Can't load 'C:\strawberry\perl\sapnwrfc-0.31\blib\arch
/auto/SAPNW/Connection/Connection.dll' for module SAPNW::Connection: load_file:T
he specified module could not be found at C:/STRAWB~1/perl/lib/DynaLoader.pm lin
e 203.
at C:\strawberry\perl\sapnwrfc-0.31\blib\lib/sapnwrfc.pm line 18
Compilation failed in require at C:\strawberry\perl\sapnwrfc-0.31\blib\lib/sapnw
rfc.pm line 18.
BEGIN failed--compilation aborted at C:\strawberry\perl\sapnwrfc-0.31\blib\lib/s
apnwrfc.pm line 18.
Compilation failed in require at t/02attrib.t line 4.
BEGIN failed--compilation aborted at t/02attrib.t line 4.
t/02attrib................ Dubious, test returned 2 (wstat 512, 0x200)
Failed 4/4 subtests
t/02attrib_z..............
Test Summary Report
-
t/00use (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: Bad plan. You planned 1 tests but ran 0.
t/01conn (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: Bad plan. You planned 2 tests but ran 0.
t/01conn_z (Wstat: 512 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 2
Parse errors: Bad plan. You planned 201 tests but ran 1.
t/02attrib (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: Bad plan. You planned 4 tests but ran 0.
t/02attrib_z (Wstat: 512 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 2
Parse errors: Bad plan. You planned 151 tests but ran 1.
t/03read_report (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: Bad plan. You planned 9 tests but ran 0.
t/03read_report_z (Wstat: 512 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 2
Parse errors: Bad plan. You planned 703 tests but ran 1.
t/04read_table_z (Wstat: 256 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 1
Parse errors: Bad plan. You planned 754 tests but ran 1.
t/05_function_lookup_z (Wstat: 256 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 1
Parse errors: Bad plan. You planned 2854 tests but ran 1.
t/06test_data_z (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: No plan found in TAP output
t/07changing_z (Wstat: 256 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 1
Parse errors: Bad plan. You planned 654 tests but ran 1.
t/08deep_z (Wstat: 256 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 1
Parse errors: Bad plan. You planned 1456 tests but ran 1.
Files=12, Tests=7, 500 wallclock secs ( 0.09 usr + 0.11 sys = 0.20 CPU)
Result: FAIL
Failed 12/12 test programs. 7/7 subtests failed.
dmake: Error code 129, while making 'test_dynamic'
Hi,
I think that with dmake test, the system is somehow trying to look for MSVC dll instead of the newly created gcc dll.This is causing the the dynamic libraries unsuitable for loading. There must be somewhere in the library , where ther rfc dll is being hardcoded. Although makefile gets the correct value?
Here is the exact windows pop up message when issued dmake test command.
"This application has failed to start because sapnwrfc.dll was not found. Re-installing the application may fix this problem"
Can this possible point to fixing this issue? Looks like lot of people have experienced this issue.
Thanks
Hi - this is way beyond my Windows C programming knowledge -there maybe some hints in https://service.sap.com/sap/support/notes/1056696. I'll do some asking around.
Cheers
Hi -
I have asked Ulrich from the NW RFC SDK team, what he thinks. Can you start with looking into the following, and let me know what you find:
"
I think the Windows messages are quite correct in this regard, so this would simply mean the sapnwrfc.dll is not in the PATH?!
"This application has failed to start because sapnwrfc.dll was not found."
If one of the required runtime DLLs would be missing, we would definitely get a different error message. (I think... But then:
I'm no MS expert. So in order to make absolutely sure, he should check whether he has the ATL patch (latest C++ runtime
used when making sapnwrfc.dll) is installed on his machine. See
Another idea: did he use the x64 sapnwrfc.dll on a x86 computer?
"
Cheers,
Piers Harding.
Hi,
I have set the path where the new .a file and the nwrfc.dll both and the process worked. Interestingly, makefile generated refers to the new dll file and compiles and links correctly. But the test I think somehow does something different. But it did solve the problem and able to access the RFCs .
Thank you for all the help.I think a really nice improvement to the library would be to add support for SAP objects and provide translation between SAP and Non SAP class structure(specially Java, as the features seem closer to java).May be SAP could be pursuaded to provide this support.
Rgds
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.