Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Feb 1997 21:25:28 -0800
From:      Greg MacKay <greg@webstar5.com>
To:        freebsd-hackers@freebsd.org
Subject:   Problem with ld under gcc...
Message-ID:  <33151AC8.41C67EA6@webstar5.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?33151AC8.41C67EA6>