In regard to: RE: Compiling hpux PA2.0W (LP64) dynamic libraries, Jonathan...:
>Here is the salient output from the build. Please keep in mind that it
>is only representative, i.e. I have tried a permutation of flags of
>-D_POSIX_SOURCE and -D_HPUX_SOURCE through the --with-ccopts configure
>argument.
>
>../src/configure --with-cc="cc -Ae" --enable-shared
>--prefix=/usr/kerberos/hp11w_dynamic_123
Does the compiler you're using support the
+Olibcalls
command line argument? Also, for files that reference alloca, are they
including alloca.h?
>/usr/ccs/bin/ld: Unsatisfied symbols:
> alloca (code)
HP-UX through at least 10.20 has alloca, but it's in the Programmer's
Workbench library (/usr/lib/libPW.a). If that isn't compiled PIC, you
may have trouble linking it into shared objects.
Using the +Olibcalls has often worked around this problem for me, because
the compiler will shim in a "low overhead" version of alloca, instead of
requiring you to use the one from libPW.a or elsewhere.
Still, it's not immediately obvious to me why ld should be looking for
`alloca' anyway -- if alloca.h is included, then
#define alloca(x) __builtin_alloca(x)
should be in place, and the linker should therefore be looking for
__builtin_alloca
Make sure that everything that needs alloca is including alloca.h, and
once you've done that, try the +Olibcalls option to the compiler.
Tim
--
Tim Mooney [EMAIL PROTECTED]
Information Technology Services (701) 231-1076 (Voice)
Room 242-J6, IACC Building (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164