Billy N. Patton <[EMAIL PROTECTED]> writes:
>Here is my Makefile.PL.
>
>use 5.008;
>use ExtUtils::MakeMaker;
>$CC = 'g++';
>$LD = 'g++';
>$s = `uname`;
>$PLATFORM = ($s eq 'Linux') ? 'lnx86' : 'sun' ;
># See lib/ExtUtils/MakeMaker.pm for details of how to influence
># the contents of the Makefile that is written.
>WriteMakefile(
>     'NAME'            => 'OAPerl',
>     ,'VERSION_FROM'   => 'OAPerl.pm'
>     ,'PREREQ_PM'      => {}
>     ,ABSTRACT         => 'perl extention of C++ OpenAccess database'
>     ,AUTHOR           => 'Billy N. Patton <[EMAIL PROTECTED]>'
>     ,'LIBS'     => 
>['-L/data/cdmg/dev/cdmg_toolbox/OAPerl/OA/tools.lnx86/lib 
>-lcdsCommonMT_sh -lclsMT_sh_g -loaDBMT_g -loaLangCPP
>_g -lcdsCommonMT_sh_g -lcls_sh -loaDB_g -loaTC -lcdsCommon_sh -lcls_sh_g 
>-loaDD -loaTCMT -lcdsCommon_sh_g -loaBase -loaDDMT -loaT
>CMT_g -lclaliteMT_sh -loaBaseMT -loaDDMT_g -loaTC_g -lclaliteMT_sh_g 
>-loaBaseMT_g -loaDD_g -loaUpRev -lclalite_sh -loaBase_g -loa
>LangCPP -loaUpRev_g -lclalite_sh_g -loaDB -loaLangCPPMT -lclsMT_sh 
>-loaDBMT -loaLangCPPMT_g -lm -lnsl -ldl -lelf ']
>     ,'DEFINE'         => ''
>     ,'INC'            => "-IOA/tools.lnx86/oa/include 
>-IOA/tools.lnx86/include"
>     ,'XSOPT'          => '-C++'
>     ,'CC'             => 'g++'
>     ,'LD'             => 'g++'
>     ,'TYPEMAPS'       => ['typemap' ]
>);
>
>
>Shortened lines do effect it's appearance :)

It looks okay apart from a LOT of libraries - which can itself 
be a problem C++ or C:

  - Are ALL of those libraries compiled for dynamic loading?
  - Are they list in the right order?

When 'make' has built your OAperl.so 
what does ldd say about it?

Does 'nm' show any undefined symbols that don't start Perl_ perl_ or PL_
and are not in libc ?


Reply via email to