Subject: Re: Linker problems
To: tech-pkg@netbsd.org, Jan Schaumann <jschauma@netmeister.org>
From: None <flo@cfdisk.org>
List: netbsd-help
Date: 05/12/2004 23:09:28
Quoting Jan Schaumann <jschauma@netmeister.org>:

> flo@cfdisk.org wrote:
> > Quoting Jan Schaumann <jschauma@netmeister.org>:
>
> > > > # $NetBSD: gcc.mk,v 1.64 2004/05/05 03:05:41 jschauma Exp $
> > >
> > > Hmmm.  Try editing that file and in line 139, add
> > >
> > > LDFLAGS+=	-mabi=${ABI:C/^32$/n&/}
> > >
> > > Also, what version is your linker?
>
> > Ok, now i did a..
> >
> > cd /usr/pkgsrc/bootstrap/
>
> [...]
>
> Yes, but did you add the line above?
>
> And what ld does gcc use?  Does it use GNU ld or the systems ld?
>
> -Jan
>
> P.S.: I moved this thread to tech-pkg, where it belongs.  See Reply-To.
>
> --
> http://www.netbsd.org -
>          Multiarchitecture OS, no hype required.
>


Ok, I applied your patch and it worked for bzip2, but not for OpenSSL.

....

cc -DMONOLITH -I../include -DTHREADS -D_SGI_MP_SOURCE -DDSO_DLFCN -DHAVE_DLFCN_H
-DNO_IDEA -DNO_RC5 -DNO_MDC2 -DNO_ASM -O2 -mabi=64 -mabi=64 -64 -mips4 -O2
-use_readonly_const -DTERMIOS -DB_ENDIAN -DBN_DIV3W   -c x509.c
gcc: unrecognized option `-64'

....

ld32: FATAL 12: Expecting 32-bit objects: libcrypto.a is 64-bit.

My gcc uses systems ld (Version 7.2.1) on IRIX 6.5.20, installed yesterday
evening with the following CD sets:

6.5.20_1of4
6.5.20_3of4
6.5.20_4of4
6.5_Applications
6.5_Development_Foundation
6.5_Development_Libraries
6.5_Foundation1
6.5_Foundation2
6.5_NFS

keep *
install standard
     (for testing)

+ gcc3.3 from freeware.sgi.com



Kind regards
Flo