On Fri, 03 Jun 2005 13:11:57 +0100, Nick Glencross
<[EMAIL PROTECTED]> wrote:

> Guys,
> 
> I'm currently investigating the build process for nci and dynclasses on 
> HP-UX. As you may have seen from my previous posts, I'm using gcc and 
> the native bundled ld.
> 
> Although the build process isn't using the right flags to compile nci 
> and dynclasses, I've managed to compile things manually.
> 
> Certain files need special PIC treatment (at least on HP-UX) so that 
> they can be included in shared libraries:
> 
> src/extend.o
> src/nci_test.o
> dynclasses/*.o
> more?
> 
> Hence, these files need:
> 
>     GNU cc:   -fpic

use -fPIC for more portability

>     HP-UX cc: +z

use +Z -z for more portability and higher run-time safety
and never forget -Ae, but I can't see from this post if you already use it

further, if you use -O2 or up, add +Onolimit

> and then for linking the library:
> 
>     GNU ld: -shared
>     HP ld:  -b
> 
> Also HP ld does not like -g, and should not be used. In fact, I'm not 
> aware that any flavours of ld should be using -g (it is ignored in GNU ld).
> 
> Most of the nci tests pass, except for tests 8 and 52 which both hang 
> (on the dlvar call with "nci_dlvar_int").
> 
> I'm still working on getting dynclasses working. Although compiled, the 
> libraries are failing to mmap in the backend of dlopen (probably 
> unresolved symbols, pic or something else).

-- 
H.Merijn Brand        Amsterdam Perl Mongers (http://amsterdam.pm.org/)
using Perl 5.6.2, 5.8.0, 5.8.5, & 5.9.2  on HP-UX 10.20, 11.00 & 11.11,
 AIX 4.3 & 5.2, SuSE 9.2 & 9.3, and Cygwin. http://www.cmve.net/~merijn
Smoking perl: http://www.test-smoke.org,    perl QA: http://qa.perl.org
 reports  to: [EMAIL PROTECTED],                perl-qa@perl.org

Reply via email to