Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* missing items in GNU and COMPAQ libraries ?
@ 2000-01-27  5:00 Xavier GALLEZ
  2000-01-27  5:00 ` Tony Hammitt
  0 siblings, 1 reply; 2+ messages in thread
From: Xavier GALLEZ @ 2000-01-27  5:00 UTC (permalink / raw)


We are encountering problems when compiling our CFD code with either gcc or
Compaq ccc on a Microway-installed RedHat 6.0 system (164LX). To my
understanding, some items (variables, functions) are missing in the system
libraries. Although the compilation stage itself runs fine, we get the
following error messages when linking shared or non-shared versions of our
code with either compiler:

gcc :
collect2: ld terminated with signal 11 [Segmentation fault]

gcc -static :
collect2: ld terminated with signal 11 [Segmentation fault]
/home/kermadec.users/gallez/NumLab/lib/libNumLabDec.a(managerMemory.)(.lita+
0x18): undefined reference to `_iob'

ccc :
collect2: ld terminated with signal 11 [Segmentation fault]

ccc -non_shared :
/home/kermadec.users/gallez/NumLab/lib/libNumLabDec.a(managerMemory.)(.lita+
0x10): undefined reference to `fputs'
/home/kermadec.users/gallez/NumLab/lib/libNumLabDec.a(managerMemory.)(.lita+
0x18): undefined reference to `_iob'

We first compile all our source files but the main program and build a
library (libNumLabDec.a), then compile the main program and try to link it
against libNumLabDec.a. Interestingly, Compaq ccc introduces an additional
depency (fputs); but in any case, the variable '_iob' is missing.

There is a linker in /usr/bin/ which comes from a binutils package:

deepflow:>rpm -qf /usr/bin/ld
binutils-2.9.1.0.23-4
deepflow:>

but neither compilers seem to make use of it:

gcc:

deepflow:gallez> gcc -v -o NumLab constriction.o ../lib/libNumLabDec.a
Reading specs from /usr/lib/gcc-lib/alpha-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
 /usr/lib/gcc-lib/alpha-redhat-linux/egcs-2.91.66/collect2 -m
elf64alpha -O1 -dynamic-linker /lib/ld-linux.so.2 -o bvr /usr/lib/crt1.o
/usr/lib/crti.o
/usr/lib/crtbegin.o -L/usr/lib/gcc-lib/alpha-redhat-linux/egcs-2.91.66 -L/us
r/alpha-redhat-linux/lib constriction.o
/home/kermadec.users/gallez/NumLab/lib/libNumLabDec.a -lgcc -lc -lgcc
/usr/lib/crtend.o /usr/lib/crtn.o

ccc:

deepflow:gallez> ccc -v -o bvr constriction.o ../lib/libNumLabDec.a -lm
comp.config
ontains:  -SD/usr/lib/compaq/ccc-6.2.9.002-2/alpha-linux/include -SD/usr/loc
al/include -SD/usr/alpha-redhat-linux/include -SD/usr/lib/gcc-lib/alpha-redh
at-linux/egcs-2.91.66/include  | -SysIncDir
/usr/lib/compaq/ccc-6.2.9.002-2/alpha-linux/include -SysIncDir
/usr/local/include   -SysIncDir /usr/alpha-redhat-linux/include -SysIncDir
/usr/lib/gcc-lib/alpha-redhat-linux/egcs-2.91.66/include -L/usr/lib/compaq/c
cc-6.2.9.002-2/alpha-linux/lib -L/usr/local/lib   -L/usr/alpha-redhat-linux/
lib -L/usr/lib/gcc-lib/alpha-redhat-linux/egcs-2.91.66

/usr/lib/compaq/ccc-6.2.9.002-2/alpha-linux/bin/ld -o bvr -O1 -m
elf64alpha -G
8 -L/usr/lib/compaq/ccc-6.2.9.002-2/alpha-linux/lib -L/usr/local/lib -L/usr/
alpha-redhat-linux/lib -L/usr/lib/gcc-lib/alpha-redhat-linux/egcs-2.91.66 -d
ynamic-linker /lib/ld-linux.so.2
/usr/lib/compaq/ccc-6.2.9.002-2/alpha-linux/bin/crt1.o
/usr/lib/compaq/ccc-6.2.9.002-2/alpha-linux/bin/crti.o
/usr/lib/compaq/ccc-6.2.9.002-2/alpha-linux/bin/crtbegin.o constriction.o
/home/kermadec.users/gallez/NumLab/lib/libNumLabDec.a -lcpml -lm -lgcc -lc -
lgcc -lots /usr/lib/compaq/ccc-6.2.9.002-2/alpha-linux/bin/crtend.o
/usr/lib/compaq/ccc-6.2.9.002-2/alpha-linux/bin/crtn.o
collect2: ld terminated with signal 11 [Segmentation fault]
deepflow:gallez>

Packages from Compaq have been installed in this order:

libots-2.2.7-2.alpha.rpm
cpml_ev5-5.0.0-1.alpha.rpm
cfalrtl_rh60-1.0-2.alpha.rpm
cfal-1.0-7.alpha.rpm
cxml_ev5-3.6.0-2.alpha.rpm
ccc-6.2.9.002-2.alpha.rpm

Is there anything I should install on our system ? Concerning the 'fputs'
problem, would it be a Compaq specific function that they forgot to include
in libots ?

Any hint would be very much appreciated.

Regards,

    Xavier

=============================================================
Xavier Gallez
http://www.meca.ucl.ac.be/~gallez

Centre for Systems Engineering and Applied Mechanics (CESAME)
Universite Catholique de Louvain
Batiment Euler, Av. Georges Lemaitre, 4-6
B-1348 Louvain-la-Neuve, BELGIUM

Tel: + 32 - 10 - 47 2365
Fax: + 32 - 10 - 47 2180
E-mail: gallez@mema.ucl.ac.be
=============================================================






^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-01-27  5:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-01-27  5:00 missing items in GNU and COMPAQ libraries ? Xavier GALLEZ
2000-01-27  5:00 ` Tony Hammitt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox