When your shared library links, that doesn't mean it will work. You would need to run a program with it, that uses symbols in the archive you've attempted to link to your shared library.
IIRC, HPUX will generate non-pic by default and your link may not be resolving anything in the static archive. On Tue, Jul 13, 2010 at 11:09 AM, Alon Bar-Lev <alon.bar...@gmail.com>wrote: > Hello, > > When I try to link shared library with static library on hpux I get > the following message: > """ > *** Warning: This system can not link to static lib archive libcore.la. > *** I have the capability to make that library automatically link in when > *** you link to this library. But I can only do this if you have a > *** shared version of the library, which you do not appear to have. > *** But as you try to build a module library, libtool will still create > *** a static module, that should work as long as the dlopening application > *** is linked with the -dlopen flag to resolve symbols at runtime. > """ > > However if I change libtool: > -deplibs_check_method="file_magic > (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library" > +deplibs_check_method="pass_all" > > It succeed in linking. > > Any reason why this is forbidden in hpux? > > $ uname -a > HP-UX hpux1 B.11.11 U 9000/800 1528720528 unlimited-user license > > Regards, > Alon Bar-Lev. > > _______________________________________________ > http://lists.gnu.org/mailman/listinfo/libtool >
_______________________________________________ http://lists.gnu.org/mailman/listinfo/libtool