zlib fails to build on sparc solaris 2.7

Phil Edwards pedwards@disaster.jaj.com
Mon Oct 30 18:13:00 GMT 2000


On Mon, Oct 30, 2000 at 05:57:42PM -0800, Mike Stump wrote:
> ld: warning: option -o appears more than once, first setting taken
> ld: elf error: file libzgcj.so.0: unknown type, unable to process using elf(3E) libraries
> ld: fatal: File processing errors. No output written to .libs/libzgcj.so.0.0.0
> collect2: ld returned 1 exit status
> make: *** [libzgcj.la] Error 1

GCC thinks you're using one linker but actually
uses another.  Check out the brief thread starting at
<URL: http://gcc.gnu.org/ml/gcc-bugs/2000-10/msg00075.html >.


> :-(  I have a GNU ld in my path, I configured with:

You might also need --with-gnu-ld.  (I've noticed that even then, collect2
still emits a bunch of Sun-type linker options.  Possibly by design?
Fortunately, GNU ld speaks all of those options for portability.)


Incidentally, I made some tweaks to avoid building zlib (build) / libzgcj
(host) when Java isn't one of the configured languages.  I keep forgetting
to post the patch.


-- 
pedwards at disaster dot jaj dot com  |  pme at sources dot redhat dot com
devphil at several other less interesting addresses in various dot domains
The gods do not protect fools.  Fools are protected by more capable fools.


More information about the Gcc-bugs mailing list