Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

help with inter-library dependencies and "+z or +Z" option (gcc)

125 views
Skip to first unread message

Frank Mattes

unread,
May 23, 2000, 3:00:00 AM5/23/00
to
Hi all,

I tried to compile the program "pybliographer" under hp-ux. I get the
following warning,

*** Warning: inter-library dependencies are not known to be supported.
*** All declared inter-library dependencies are being dropped.
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.

(some compiling output)

Followed by the error message

gcc -fpic -I/user/developr/pybliographer-1.0.0/compiled/../bibtex
-I/opt/glib/lib/glib/include -I/opt/glib/include -I/opt/recode/include
-I.. -g -O2 -I/user/developr/python/include/python1.5
-I/user/developr/python/include/python1.5 -DHAVE_CONFIG_H -c
/user/developr/pybliographer-1.0.0/compiled/bibtexmodule.c
ld -b bibtexmodule.o ../bibtex/.libs/libbibtex.a -L/opt/glib/lib
-lglib -L/opt/recode/lib -lrecode ../intl/libintl.a -o
_bibtexmodule.sl
ld: DP relative code in file ../bibtex/.libs/libbibtex.a(bibtex.o) -
shared library must be position
independent. Use +z or +Z to recompile.
gmake[2]: *** [_bibtexmodule.sl] Error 1

I could't find a compiler option +z or +Z for gcc
Is there anyone who could explain to me what's going wrong ?

I appreciate any help

Regards

Frank

Tim Prince

unread,
May 23, 2000, 3:00:00 AM5/23/00
to
You didn't say which version of HPUX you are using, which may be of interest.
The +z/+Z options AFAIK are relevant to HPUX only, not to gcc or binutils. If
your gcc is set up the usual way, using gnu as, only the HPUX linker is used
from the standard HPUX set of tools. You could check 'man ld' to see if those
options are relevant to HPUX ld. Sorry, I am no longer employed where I had
access to HPUX.

I suppose you should be investigating whether this package has any HPUX version
dependencies, whether it expects you to use gcc built --with-gnu-as or using
the HPUX as, whether your message is simply a warning or is preventing further
progress...
Tim Prince
tpr...@computer.org

Lutz Jaenicke

unread,
May 23, 2000, 3:00:00 AM5/23/00
to
In article <20000523...@rfhsun1.rfhsm>, Frank Mattes wrote:
>I could't find a compiler option +z or +Z for gcc
>Is there anyone who could explain to me what's going wrong ?

Didn't I already answer a similar question this morning? :-)
+z = -fpic
+Z = -fPIC

PIC = position independant code

Best regards,
Lutz
--
Lutz Jaenicke Lutz.J...@iee.TU-Berlin.DE
TU Berlin http://www.iee.TU-Berlin.DE/personen/jaenicke/
Institut fuer Elektrische Energietechnik Tel. +49 30 314-24552
Einsteinufer 11, D-10587 Berlin Fax. +49 30 314-21133

0 new messages