Looks like the answer was to add MYEXTLIB into Makefile.PL:
use 5.008005;
use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
WriteMakefile(
NAME => 'test',
VERSION_FROM => 'lib/test.pm', # finds $VERSION
PREREQ_PM => {}, # e.g., Module::Name => 1.1
($] >= 5.005 ? ## Add these new keywords supported since 5.005
(ABSTRACT_FROM => 'lib/test.pm', # retrieve abstract from module
AUTHOR => 'A. U. Thor <johnm@localdomain>') : ()),
LIBS => ['-lm'], # e.g., '-lm'
DEFINE => '', # e.g., '-DHAVE_SOMETHING'
INC => '-I.', # e.g., '-I. -I/usr/include/other'
MYEXTLIB => '/home/johnm/lib/libpmap.so /home/johnm/lib/libmap.so /home/johnm/lib/liblang.so /home/johnm/lib/libdispatch.so /home/johnm/lib/libed.so',
# Un-comment this if you add C files to link with later:
#OBJECT => '$(O_FILES)' # link all the C files too
);
I was able to get past the original problem with the following error:
undefined symbol: cpro_supported
but dealing with another error:
/usr/include/curses.h:581:41: macro "instr" requires 2 arguments, but only 1 given make: *** [test.o] Error 1
I added the following to my .xs file to get rid of the following message but ended up with the message above:
#include <curses.h>
Can't load '/home/johnm/tmp/test/blib/arch/auto/test/test.so' for module test: /home/johnm/dev/pmap-28-00/libso/bin/Linux/i686/libed.so: undefined symbol: stdscr at /usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230.
which seems to be causing troubles with perl..Not sure yet what is going on here..
GOT IT!!
removed #include from .xs file and added -lncurses to LIBS parm and resolved the curses problem..
LIBS => ['-lm -lncurses'], # e.g., '-lm'
I've been taking cjm advise on completing a simple c program to call cpro_supported to help build parameters for Makefile.PM. The documentation for these parms is minimal and horrible if you ask me:
http://metacpan.org/pod/ExtUtils::MakeMaker
This is a slow, painful process..Argg!!!
UPDATE.....
Got it all working and can now call cpro_supported() which is in libpmap.so library.
VICTORY!!!!
WAIT...Made changes recommended by cjm and everything works perfect now..See post by cjm.