Article View: gnu.gcc.help
Article #51790linkage problems , need help
From: Limor Schweitzer
Date: Tue, 30 Mar 1993 15:13
Date: Tue, 30 Mar 1993 15:13
26 lines
1798 bytes
1798 bytes
I'm trying to port a very large program package (100,000s lines of sources in C and fortran) to compile with gcc. I've had problems linking gcc compiled files with libraries compiled by standard sun C and ansi C (SC1.0) . (libF77.a , motif libs, X libs and C lib) the main problem is that sources that use the shared memory and semaphore system calls do not run propperly. the problem was solved by compiling those sources with Sun's acc compiler and linking everything with gcc (gcc 1.40 exhibited the same problems as 2.3.3) but i would rather compile everything with gcc (in order to be able to benefit from the cross compilers and source compatibility throughout other 5 different Unix systems on my net) with the gcc-2.3.3 i tried compiling the package with and without the -fcc-struct-return ... but with the same results. trying to link the programs staticly, sometimes results with /usr/bin/ld crashing with a segmentation fault, and usually with an unusefull executable that crashes as it begins running. I have no clues as to where the problem resides. if anyone out there has any idea at all, please e-mail me thanks Limor. (limor@math.tau.ac.il)
Technical Details
Message-ID:
<1993Mar30.151348.1685@aristo.tau.ac.il>Path:
arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!yale.edu!ira.uka.de!scsing.switch.ch!aristo.tau.ac.il!limorShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,6ec72a63d603c2b3,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-03-30 07:59:09 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!yale.edu!ira.uka.de!scsing.switch.ch!aristo.tau.ac.il!limor From: limor@math.tau.ac.il (Limor Schweitzer) Subject: linkage problems , need help Message-ID: <1993Mar30.151348.1685@aristo.tau.ac.il> Sender: usenet@aristo.tau.ac.il (USENET) Organization: School of Math & CS - Tel Aviv University , Tel Aviv , ISRAEL. Date: Tue, 30 Mar 1993 15:13:48 GMT Lines: 27