Subject: pkg/29232: pkgsrc/gcc3 configures for "solaris2" instead of "solaris2.x"
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <rquinn@sec.sprint.net>
List: pkgsrc-bugs
Date: 02/04/2005 21:42:00
>Number: 29232
>Category: pkg
>Synopsis: pkgsrc/gcc3 configures for "solaris2" instead of "solaris2.x"
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Feb 04 21:42:00 +0000 2005
>Originator: Rob Quinn
>Release: pkgsrc-current
>Organization:
>Environment:
Solaris2.9
Solaris2.8
>Description:
When compiling gcc3 on a Solaris box, pkgsrc configures it as "solaris2"
instead of "2.8" or "2.9" that gcc uses by default when hand compiled.
The resulting gcc can not create 64bit binaries, so for instance you can
not compile the 'lsof' package.
There's at least one other program that complains about the "solaris2" vs
"solaris2.x" problem when being built, I think it's perl58.
>How-To-Repeat:
By hand:
struck:~/gcc-3.3.5 %./configure
Configuring for a sparc-sun-solaris2.9 host.
[...]
In pkgsrc:
struck:/usr/pkgsrc/lang/gcc3-c #bmake extract
struck:/usr/pkgsrc/lang/gcc3-c #bmake patch
[...]
struck:/usr/pkgsrc/lang/gcc3-c #bmake configure
===> Checking for vulnerabilities in gcc3-c-3.3.5
===> Overriding tools for gcc3-c-3.3.5
===> Creating toolchain wrappers for gcc3-c-3.3.5
===> Configuring for gcc3-c-3.3.5
[...]
checking host system type... sparc-sun-solaris2
checking build system type... sparc-sun-solaris2
[...]
struck:/tmp %/usr/pkg/gcc3/bin/gcc -v
Reading specs from /usr/pkg/gcc3/lib/gcc-lib/sparc-sun-solaris2/3.3.5/specs
Configured with: ./configure --prefix=/usr/pkg/gcc3 --host=sparc-sun-solaris2 --enable-shared --enable-languages=c
Thread model: posix
gcc version 3.3.5
struck:/tmp %/usr/pkg/gcc3/bin/gcc -m64 test.c -o test
cc1: error: -m64 is not supported by this configuration
>Fix: