Thread View: comp.unix.unixware
3 messages
3 total messages
Started by George Lindholm
Fri, 16 Dec 1994 20:01
Problem with Perl5 dynamic loading under UnixWare with gcc
Author: George Lindholm
Date: Fri, 16 Dec 1994 20:01
Date: Fri, 16 Dec 1994 20:01
21 lines
1826 bytes
1826 bytes
I'm trying to get Perl5 compiled with dynamic loading on a unixware 1.1.1 system using gcc 2.6.3. I've managed to get everything compiled (except the posix module :-) but when I run the test cases, I get the complaint that: lib/anydbm.....Can't load '../lib/auto/Fcntl/Fcntl.so' for module Fcntl: dynamic linker: ./perl: relocation error: symbol not found: stack_sp at ../lib/DynaLoader.pm line 124. at ../lib/Fcntl.pm line 45 BEGIN failed--compilation aborted at ./lib/anydbm.t line 11. I'm using -fpic and -G options. Any ideas? Thanks George -- George Lindholm phone: (604) 822-4375 University Computing Services, UBC fax: (604) 822-5116 6356 Agricultural Road, Vancouver, B.C., Canada internet: lindholm@ucs.ubc.ca V6T 1Z2
Re: Problem with Perl5 dynamic loading under UnixWare with gcc
Author: Tye McQueen
Date: Mon, 19 Dec 1994 16:24
Date: Mon, 19 Dec 1994 16:24
47 lines
2250 bytes
2250 bytes
I, tye@fohnix.metronet.com (Tye McQueen), wrote:
) Dynamic loading doesn't work under Sytem V Release 4
) (except Sun's versions) unless all globals used by the
) dynamically loaded extensions reside in a shared library.
[...]
) Here is the patch I sent. Good luck.
Here is a patch for a small typo in my patch.
In e-mail, John Hughes <john@nitelite.CalvaCom.FR> wrote me:
)
) I've installed your dynamic loading patch to perl5.000 (as posted to
) comp.unix.unixware).
)
) Maybe I'm dumb, but wouldn't the following little fix make it work a
) bit better?
*** Makefile.SH.old Mon Dec 19 12:37:51 1994
--- Makefile.SH Mon Dec 19 15:15:27 1994
***************
*** 34,40 ****
case "$shrpdir" in
/usr/lib) ;;
"") ;;
! *) shrpenv="env LD_RUN_PATH=$shrpenv";;
esac
pldlflags="$cccdlflags";;
*) plibsuf=.a
--- 34,40 ----
case "$shrpdir" in
/usr/lib) ;;
"") ;;
! *) shrpenv="env LD_RUN_PATH=$shrpdir";;
esac
pldlflags="$cccdlflags";;
*) plibsuf=.a
) --
) John Hughes <jh10@CalvaCom.FR>,
) Atlantic Technologies INC.
Thanks, John!
---
Tye McQueen tye@metronet.com || tye@doober.usu.edu
Nothing is obvious unless you are overlooking something
Re: Problem with Perl5 dynamic loading under UnixWare with gcc
Author: Andy Dougherty
Date: Wed, 21 Dec 1994 20:07
Date: Wed, 21 Dec 1994 20:07
19 lines
1689 bytes
1689 bytes
In article <3csrmu$p11@greve.ucs.ubc.ca> lindholm@ucs.ubc.ca (George Lindholm) writes:
>
>I'm trying to get Perl5 compiled with dynamic loading on a unixware 1.1.1
>system using gcc 2.6.3. I've managed to get everything compiled (except the
>posix module :-) but when I run the test cases, I get the complaint that:
Dynamic loading of perl modules isn't supported for UnixWare. The
svr4 hints file sets the default value for usedl to 'n'. I gather
that it's possible to get it to work, but not with perl5.000 as
distributed. I seem to recall that changes to both the build and
install procedures were needed. I don't have UnixWare, so I can't
test or verify any of this.
I'm afraid you'll have to settle for static linking for now.
Sorry :-(
--
Andy Dougherty doughera@lafcol.lafayette.edu
Dept. of Physics
Lafayette College, Easton PA 18042
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads