From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,3fb2d1b74b42a083,start X-Google-Attributes: gidfee84,public From: wiebusch@ifh.de Subject: alpha/dec unix 4.0: Linking/ld f77 with gcc on dec unix 4 Date: 1998/08/11 Message-ID: <6qp7i5$n6f$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 380009321 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Tue Aug 11 10:48:37 1998 GMT Newsgroups: comp.unix.osf.osf1 X-Http-User-Agent: Mozilla/3.04 (X11; I; IRIX64 6.2 IP19) Dear reader I am developer of a C-library, and try to give mixed language support for Fortran on multiple plattforms I was browsing digital web pages for suport in a specific problem, but was unable to find help. Please give look at the following problem: On DEC-UNIX-4 (OSF1 spice2.physics.wisc.edu V4.0 564 alpha) I experince a strange linking problem, which I do not have on DEC-UNIX V.3.2 or on any other unix system: HPUX, LINUX, Irix, Sun. This problem appears on every DEC-UNIX-V.4.0 site. The library is usually compiled with gcc, the fortran code is compiled with f77. I link using f77. The name of the library is librdmc.a The output is: Compilation: > f77 -v -static -G 0 -g -fpe -O0 -extend_source -g -c rdmc_exam4.f > -o rdmc_exam4.o > /usr/lib/cmplrs/fort/decfort -noautomatic -G 0 -g -fpe -O0 > > -extend_source -g -switch fe_platinum -o rdmc_exam4.o rdmc_exam4.f Linking: f77 -v -static -G 0 -g -fpe -O0 -extend_source -g -L. rdmc_exam4.o librdmc.a -lm -lc -o rdmc_exam4 /usr/bin/cc -v -G 0 -g -O0 -g -L. -o rdmc_exam4 /usr/lib/cmplrs/fort/for_main.o rdmc_exam4.o librdmc.a -lm -lc -lUfor -lfor -lFutil -lm_4sqrt -lm -lots /usr/lib/cmplrs/cc/ld -o rdmc_exam4 -L. -g2 -O0 -call_shared /usr/lib/cmplrs/cc/crt0.o /usr/lib/cmplrs/fort/for_main.o rdmc_exam4.o librdmc.a -lm -lc -lUfor -lfor -lFutil -lm_4sqrt -lm -lots -lc ld: Object file format error in: librdmc.a(rdmc_mcopen.o): local_is_complete: iaux(971) > iauxMax(889) for obj librdmc.a(rdmc_mcopen.o) /usr/lib/cmplrs/cc/ld: 0.00u 0.01s 0:00 50% 0+5k 1+0io 0pf+0w 5stk+656mem fort: Severe: Failed while trying to link. gmake[1]: *** [rdmc_exam4] Error 1 iauxMax seems to be a maximum size for a symbol table. If I use gcc instead of cc, everything is fine. How can I tell f77 to use gcc instead of cc for linking? or How can I increase iauxMax? Is there another solution? Thank you for help, Sincerily Christopher Wiebusch -----== Posted via Deja News, The Leader in Internet Discussion ==----- http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum