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
HP-UX cc: +z
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).
Regards,
Nick