Adding -lnsl to the ARS_LIBS makefile.pl worked like a charm.  Many
thanks.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Thilo Stapff
Sent: Monday, March 03, 2008 4:16 PM
To: ARSperl User Discussion
Subject: Re: [Arsperl-users] Compiling ARS perl on AIX

I'm no AIX expert, but according to Google, "xdr_sizeof" and 
"__rpc_createerr" are symbols from libnsl.

So the first thing I would try is to append "-lnsl" to the $ARS_LIBS 
variable in Makefile.PL. This was included for earlier versions of the 
ARS API (see the "if ($ARSVERSION >= ...)" blocks in Makefile.PL), but 
has been removed for version >= 6.3 (I don't know why).

The next step would be to verify if there is a libnsl.a installed on 
your system and if ld is able to find it.


Regards,
Thilo


White, Linn wrote:
> I'm having issues compiling ARSperl on AIX Version 5.  I can 
> successfully create the makefile, but the compile chokes with an error

> from ld.
> 
> $ make
> cp ARSarerrno-h.pm blib/lib/ARSarerrno-h.pm
> cp ARSnparm.pm blib/lib/ARSnparm.pm
> cp artypes.ph blib/lib/artypes.ph
> cp _h2ph_pre.ph blib/lib/_h2ph_pre.ph
> cp ARSar-h.pm blib/lib/ARSar-h.pm
> cp ARSnterrno-h.pm blib/lib/ARSnterrno-h.pm
> cp ARSnt-h.pm blib/lib/ARSnt-h.pm
> cp ARSOOsup.pm blib/lib/ARSOOsup.pm
> cp ARSOOmsgs.pm blib/lib/ARSOOmsgs.pm
> cp ARSOOform.pm blib/lib/ARSOOform.pm
> cp ARS.pm blib/lib/ARS.pm
> AutoSplitting blib/lib/ARS.pm (blib/lib/auto/ARS)
>         /usr/bin/perl -e 'use ExtUtils::Mksymlists;  Mksymlists("NAME"

> => "ARS", "DL_FUNCS" => {  }, "FUNCLIST" => [], "DL_VARS" => []);'
> 
>         /usr/bin/perl /usr/opt/perl5/lib/5.8.2/ExtUtils/xsubpp
-typemap 
> /usr/opt/perl5/lib/5.8.2/ExtUtils/typemap -typemap typemap  ARS.xs > 
> ARS.xsc && mv ARS.xsc ARS.c
> 
>         cc_r -c  -I/opt/tools/remedy/api/include  -D_ALL_SOURCE 
> -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -qnoansialias 
> -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -qlonglong

> -O    -DVERSION=\"1.84\"  -DXS_VERSION=\"1.84\"  
> "-I/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE"  -g  -DARS32  
> -DARS452  -DPERL_PATCHLEVEL_IS=8 -DPERL_SUBVERSION_IS=2 
> -DPERL_BASEREV_IS=50  ARS.c
> 
> "ARS.xs", line 4296.36: 1506-280 (W) Function argument assignment 
> between types "unsigned long*" and "int*" is not allowed.
> 
>         cc_r -c  -I/opt/tools/remedy/api/include  -D_ALL_SOURCE 
> -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -qnoansialias 
> -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -qlonglong

> -O    -DVERSION=\"1.84\"  -DXS_VERSION=\"1.84\"  
> "-I/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE"  -g  -DARS32  
> -DARS452  -DPERL_PATCHLEVEL_IS=8 -DPERL_SUBVERSION_IS=2 
> -DPERL_BASEREV_IS=50  support.c
> 
>         cc_r -c  -I/opt/tools/remedy/api/include  -D_ALL_SOURCE 
> -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -qnoansialias 
> -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -qlonglong

> -O    -DVERSION=\"1.84\"  -DXS_VERSION=\"1.84\"  
> "-I/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE"  -g  -DARS32  
> -DARS452  -DPERL_PATCHLEVEL_IS=8 -DPERL_SUBVERSION_IS=2 
> -DPERL_BASEREV_IS=50  supportrev.c
> 
> Running Mkbootstrap for ARS ()
>         chmod 644 ARS.bs
>         rm -f blib/arch/auto/ARS/ARS.so
>         LD_RUN_PATH="" ld  -bhalt:4 -bM:SRE 
> -bI:/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE/perl.exp
-bE:ARS.exp 
> -bnoentry -lpthreads -lc_r ARS.o support.o supportrev.o 
> /opt/tools/remedy/api/lib/libar.a  -o blib/arch/auto/ARS/ARS.so   
> -L/opt/tools/remedy/api/lib -lpthread
> 
> ld: 0711-317 ERROR: Undefined symbol: .xdr_sizeof
> ld: 0711-317 ERROR: Undefined symbol: .__rpc_createerr
> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more 
> information.
> make: 1254-004 The error code from the last command is 8.
> 
> 
> Stop.
> 
> Thank You
> Linn White
> Infrastructure Associate(Automation)
> Desk:  864-987-1795
> Cell:   864-901-0997
> 
> 
>
------------------------------------------------------------------------
> 
>
------------------------------------------------------------------------
-
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> 
> 
>
------------------------------------------------------------------------
> 
> _______________________________________________
> Arsperl-users mailing list
> Arsperl-users@arsperl.org
> https://lists.sourceforge.net/lists/listinfo/arsperl-users


------------------------------------------------------------------------
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Arsperl-users mailing list
Arsperl-users@arsperl.org
https://lists.sourceforge.net/lists/listinfo/arsperl-users

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Arsperl-users mailing list
Arsperl-users@arsperl.org
https://lists.sourceforge.net/lists/listinfo/arsperl-users

Reply via email to