From owner-freebsd-hackers Wed Feb 26 21:24:17 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id VAA04327 for hackers-outgoing; Wed, 26 Feb 1997 21:24:17 -0800 (PST) Received: from spyder.webstar5.com (root@spyder.webstar5.com [207.194.110.245]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id VAA04319 for ; Wed, 26 Feb 1997 21:24:13 -0800 (PST) Received: from earwig.webstar5.com (earwig.webstar5.com [207.194.110.1]) by spyder.webstar5.com (8.8.3/8.7.2) with SMTP id VAA16035 for ; Wed, 26 Feb 1997 21:21:24 -0800 (PST) Message-ID: <33151AC8.41C67EA6@webstar5.com> Date: Wed, 26 Feb 1997 21:25:28 -0800 From: Greg MacKay Organization: Webstar5 Internet Group X-Mailer: Mozilla 3.01Gold (X11; I; FreeBSD 2.1.7-RELEASE i386) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Subject: Problem with ld under gcc... Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I am trying to build s/w with gcc while linking to the Mini-SQL library (libmsql.a). All of my source compiles fine until the link stage. Then I get the following error: ld: symbol __GLOBAL_OFFSET_TABLE_ remains undefined I have checked all the dependencies in my makefile, and ensured that I put the "-lmsql" after everything that needs it. I end up with an executable which works fine until any calls are made to msql functions - then it dumps core. gdb indicates that any calls to msql functions generate seg faults... I also giving ld "-u _GLOBAL_OFFSET_TABLE_", but to no avail. As an aside, I took the code and compiled it on an SGI Indy (IRIX 5.3), and everything worked fine, with msql built on the SGI box. Anyone out there who has found a workaround for something like this.....? Greg Mackay greg@webstar5.com