On Thu, 14 Dec 2000, Charles Lane wrote:

> I recently found that embedded perl couldn't use "Socket" routines,
> even though they were built as a static extension. It seems that
> the perl code for generating the embedded Perl interface looks at
> the Config.pm parameter "static_ext", and we don't add Socket when
> built as a static extension.
> 
> Here's a little patch to CONFIGURE.COM to remedy this.  A previous
> (and more grandiose) attempt the rationalize the dynamic and static
> extensions got tangled up over how  Dynaloader is handled; if someone
> wants to take another shot at it, be my guest.  The little patch below
> fixes my problem...

Actually - this (the current behavior) seems to be in keeping with other
platforms in that "nothing" is listed in the $static_ext variable, not
even Dynaloader (I thought that was weird on OSF/1 some time ago).  I
guess that VMS differs only in that Socket is added statically, unlike
most other platforms.  BTW on OS/390 and Ultrix everthing is static,
here are some of the things listed in config.sh on OS/390 (long lines
truncated owing to cut-n-paste):

$ grep ext config.sh
cccdlflags='-W 0,dll,"langlvl(extended)"'
dlext='none'
dynamic_ext=''
exe_ext=''
extensions='B ByteLoader Data/Dumper Devel/DProf Devel/Peek Encode Fcntl File/G'
known_extensions='B ByteLoader DB_File Data/Dumper Devel/DProf Devel/Peek Encod'
lib_ext='.a'
man1ext='1'
man3ext='3'
nonxs_ext='Errno'
obj_ext='.o'
static_ext='B ByteLoader Data/Dumper Devel/DProf Devel/Peek Encode Fcntl File/G'
$ grep ext config.sh | grep Dyn
$

in other words DynaLoader is not mentioned (it is not currently built in
OS/390).  Here is a similar result on Tru 64 Unix:

% grep ext config.sh
dlext='so'
dynamic_ext='B ByteLoader DB_File Data/Dumper Devel/DProf Devel/Peek
Encode Fcn'
exe_ext=''
extensions='B ByteLoader DB_File Data/Dumper Devel/DProf Devel/Peek Encode Fcnt'
known_extensions='B ByteLoader DB_File Data/Dumper Devel/DProf Devel/Peek Encod'
lib_ext='.a'
man1ext='1'
man3ext='3'
nonxs_ext='Errno'
obj_ext='.o'
static_ext=' '
% grep -i dynal config.sh
Exit 1
%

Peter Prymmer


Reply via email to