On Fri, 29 May 2009, soko.tica wrote:
> From: soko.tica <[email protected]>
> To: [email protected]
> Date: Fri, 29 May 2009 13:01:13 +0200
> Subject: 4.5 - stable/ports/gcc-4.2/Error code 1
> X-Spam-Score: 0.4 (/)
>
> Hello list,
>
> I am trying to install gnome-session from ports on 4.5 - stable, and I
> am facing the following error in gcc-4.2
> ......
> ===> Configuring for gcc-4.2.20070307
> loading site script /usr/ports/infrastructure/db/config.site
> loading cache ./config.cache
> checking host system type... i386-unknown-openbsd4.5
> checking target system type... i386-unknown-openbsd4.5
> checking build system type... i386-unknown-openbsd4.5
> checking for a BSD compatible install... /usr/bin/install -c -o root -g bin
> checking whether ln works... yes
> checking whether ln -s works... yes
> checking for gcc... /usr/ports/lang/gcc/4.2/w-gcc-4.2.20070307/bin/egcc
> checking whether the C compiler
> (/usr/ports/lang/gcc/4.2/w-gcc-4.2.20070307/bin/egcc -O2 -g ) works...
> no
> *** Error code 1
>
> Stop in /usr/ports/lang/gcc/4.2 (line 2147 of
> /usr/ports/infrastructure/mk/bsd.port.mk).
> *** Error code 1
Seriously consider installing gcc-4.2 from a pre-built package.
Alternatively add the soft link libc.so.42.0 in /usr/lib:
(root) ?// pwd
/usr/lib
(root) ?// ls -l libc.so.42.0
lrwxr-xr-x 1 root wheel 12 May 7 12:35 libc.so.42.0 -> libc.so.50.1
Can't remember how I found this out. Seems the bootstrap compiler
wants it:
(root) ?// ldd /usr/ports/lang/gcc/4.2/w-gcc-4.2.20070307/bootstrap/bin/egcc
/usr/ports/lang/gcc/4.2/w-gcc-4.2.20070307/bootstrap/bin/egcc:
Start End Type Open Ref GrpRef Name
1c000000 3c008000 exe 1 0 0
/usr/ports/lang/gcc/4.2/w-gcc-4.2.20070307/bootstrap/bin/egcc
04402000 2443b000 rlib 0 1 0 /usr/lib/libc.so.42.0
09b3d000 09b3d000 rtld 0 1 0 /usr/libexec/ld.so
*But* as noted above, consider installing the package
--
Dennis Davis, BUCS, University of Bath, Bath, BA2 7AY, UK
[email protected] Phone: +44 1225 386101