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

> flo@cfdisk.org wrote:
>
> > I use gcc3.3 from freeware.sgi.com
>
> What version is your pkgsrc/mk/compiler/gcc.mk?  If it's not 1.64,
> update it, it includes a fix for gcc to use the ABI if set.
>
> That might actually fix your problem.
>
> -Jan
>
> --
> Tradition is the illusion of permanence. -- Woody Allen
>

It's

# $NetBSD: gcc.mk,v 1.64 2004/05/05 03:05:41 jschauma Exp $

This lokks interesting:

+ rm -f libcrypto.so.300
+ rm -f libcrypto.so
+ rm -f libcrypto.so.300.1
if cc -v 2>&1 | grep '^gcc' >/dev/null 2>&1 &&  my_ld=`cc -print-prog-name=ld
2>&1` &&  [ -n "$my_ld" ] &&  $my_ld -v 2>&1 | grep 'GNU ld' >/dev/null 2>&1;
then  make -f Makefile.ssl do_gnu-shared;  else  libs='-L. '; for i in crypto;
do  ( set -x; cc   -shared -o lib$i.so.300.1  -Wl,-soname,lib$i.so.300.1  -all
lib$i.a $libs -Wl,-rpath,/usr/pkg/lib -lc) || exit 1;  libs="$libs -l$i"; 
done;  fi
+ cc -shared -o libcrypto.so.300.1 -Wl,-soname,libcrypto.so.300.1 -all
libcrypto.a -L. -Wl,-rpath,/usr/pkg/lib -lc
ld32: FATAL 12: Expecting 32-bit objects: libcrypto.a is 64-bit.
collect2: ld returned 4 exit status
*** Error code 1


:(