in reply to Re: Embedding Perl Interpreter/DynaLoader
in thread Embedding Perl Interpreter/DynaLoader

OK - now the problem is that the libperl.so/.a is from a build that does not include the dl_open.xs (or whichever implementation is used under HP-UX) module.

Is the C compiler you are using the basic C compiler that comes with HP-UX?

I have a feeling that if that's the case then that C compiler is an old K&R compiler that can't be used to build dynamically loadable modules, etc. Maybe it'd be worth it to download/install gcc? I think there is a site that offers binaries, similar to sunfreeware for Solaris.

Michael

  • Comment on Re: Re: Embedding Perl Interpreter/DynaLoader

Replies are listed 'Best First'.
Re: Re: Re: Embedding Perl Interpreter/DynaLoader
by MatthewFrancis (Acolyte) on Dec 02, 2003 at 15:58 UTC
    Interesting. I've heard of these ".so" files before, but we don't have any on our server. All we've got is the libperl.a. Does this mean that our current Perl installation is broken/incomplete? If so, I am going to see what I can do about having our Perl reinstalled. For what it's worth, we're using (courtesy of of "perl -v"):
    Binary build 633 provided by ActiveState Corp. http://www.ActiveState. +com Built 21:04:57 Jun 17 2002
    If it's a binary build, then, perhaps the .so file was never there to begin with. Would you recommend actually building it ourselves, as opposed to working with a precompiled binary?

    Yes, I believe the compiler is the standard, no-frills HP-UX compiler.

    And - please forgive the remedial nature of my questions - how can I statically link the File::Glob module into my perl executable? What do I have to provide at the command line in order to make this happen?

    Thank you again, for the help

    MatthewFrancis

      Actually you probably have .sl files instead (that's the shared library extension on HP-UX, IIRC).

      I don't think that the ActiveState binary is incomplete - but I'm almost certain that you'll need gcc or some other modern compiler to build any binary for use with perl. I would start by installing gcc, and see if that solves your problems.

      Michael