FAQ
I'am using Solaris 8 and on this machine is installed
Perl 5.8.0.

The compiler which i'm using is gcc-3.2.

I'm trying to compile the SAP module R3-rfcapi-0.32.
Prerequisite rfcsdk has been installed in the path:
/sapmnt/TST/exe/rfcsdk

This is the sequence of commands to be executed:

1. perl Makefile.PL

response:
---------------------------------------------
Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for -lrfc
Writing Makefile for R3::rfcapi
-------------------------------------------------

2. make

response:
-----------------------------------------------------------
gcc -c -I/sapmnt/TST/exe/rfcsdk/include -fno-strict-aliasing -
D_LARGEFILE_SOUR
CE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"0.32\" -DXS_VERSION=\"0.32
\" -fPIC
"-I/usr/local/lib/perl5/5.8.0/sun4-solaris/CORE" rfcapi.c
gcc -c -I/sapmnt/TST/exe/rfcsdk/include -fno-strict-aliasing -
D_LARGEFILE_SOUR
CE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"0.32\" -DXS_VERSION=\"0.32
\" -fPIC
"-I/usr/local/lib/perl5/5.8.0/sun4-solaris/CORE" r3rfc.c
gcc -c -I/sapmnt/TST/exe/rfcsdk/include -fno-strict-aliasing -
D_LARGEFILE_SOUR
CE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"0.32\" -DXS_VERSION=\"0.32
\" -fPIC
"-I/usr/local/lib/perl5/5.8.0/sun4-solaris/CORE" r3conn.c
gcc -c -I/sapmnt/TST/exe/rfcsdk/include -fno-strict-aliasing -
D_LARGEFILE_SOUR
CE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"0.32\" -DXS_VERSION=\"0.32
\" -fPIC
"-I/usr/local/lib/perl5/5.8.0/sun4-solaris/CORE" r3func.c
gcc -c -I/sapmnt/TST/exe/rfcsdk/include -fno-strict-aliasing -
D_LARGEFILE_SOUR
CE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"0.32\" -DXS_VERSION=\"0.32
\" -fPIC
"-I/usr/local/lib/perl5/5.8.0/sun4-solaris/CORE" r3itab.c
gcc -c -I/sapmnt/TST/exe/rfcsdk/include -fno-strict-aliasing -
D_LARGEFILE_SOUR
CE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"0.32\" -DXS_VERSION=\"0.32
\" -fPIC
"-I/usr/local/lib/perl5/5.8.0/sun4-solaris/CORE" r3errh.c
rm -rf blib/arch/auto/R3/rfcapi/rfcapi.a
/usr/ccs/bin/ar cr blib/arch/auto/R3/rfcapi/rfcapi.a rfcapi.o r3rfc.o
r3conn.o r
3func.o r3itab.o r3errh.o && : blib/arch/auto/R3/rfcapi/rfcapi.a
chmod 755 blib/arch/auto/R3/rfcapi/rfcapi.a
Manifying blib/man3/R3::rfcapi.3
------------------------------------------------------------------

3. make test

response:
-------------------------------------------------------------------
Writing "Makefile.aperl" for this perl
Note (probably harmless): No library found for -lrfc
Writing Makefile.aperl for R3::rfcapi
make -f Makefile.aperl perl
Writing perlmain.c
cd . && gcc -c "-I/usr/local/lib/perl5/5.8.0/sun4-solaris/CORE" \
-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O \
-DVERSION=\"0.32\" \
-DXS_VERSION=\"0.32\" "-I/usr/local/lib/perl5/5.8.0/sun4-solaris/CORE"
perlmain.
c
cat /usr/local/lib/perl5/5.8.0/sun4-
solaris/auto/DynaLoader/extralibs.ld >> blib
/arch/auto/R3/rfcapi/extralibs.all
cat blib/arch/auto/R3/rfcapi/extralibs.ld >>
blib/arch/auto/R3/rfcapi/extralibs.
all
gcc -L/usr/local/lib -o perl -O ./perlmain.o rfcapi.o r3rfc.o r3conn.o
r3func.o
r3itab.o r3errh.o
blib/arch/auto/R3/rfcapi/rfcapi.a /usr/local/lib/perl5/5.8.0/
sun4-
solaris/auto/DynaLoader/DynaLoader.a /usr/local/lib/perl5/5..8.0/sun4-
solari
s/CORE/libperl.a `cat blib/arch/auto/R3/rfcapi/extralibs.all` -lsocket -
lnsl -ld
l -lm -lc
Undefined first referenced
symbol in file
ItGupLine r3itab.o
ItFill r3func.o
ItGetLine r3func.o
RfcCallReceive r3func.o
RfcInstallStructure r3func.o
ItInsLine r3itab.o
ItFree r3itab.o
ItCreate r3func.o
ItAppLine r3itab.o
RfcLastError r3errh.o
ItDelete r3func.o
RfcClose r3conn.o
RfcOpen r3conn.o
ItDelLine r3itab.o
ld: fatal: Symbol referencing errors. No output written to perl
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `perl'
Current working directory /appo/R3-rfcapi-0.32
*** Error code 1
make: Fatal error: Command failed for target `perl'
-------------------------------------------------------------------

Could anyone help me? Is any link missing ? Or any prerequisite?


Regards
Massimiliano D'Onorio

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupperl5-porters @
categoriesperl
postedNov 11, '02 at 2:04p
activeNov 11, '02 at 2:04p
posts1
users1
websiteperl.org

1 user in discussion

Massimiliano Donorio: 1 post

People

Translate

site design / logo © 2021 Grokbase