Subject: Building package failed
To: None <port-sparc@netbsd.org>
From: Paavo Hartikainen <pahartik@sci.fi>
List: port-sparc
Date: 08/14/2001 23:37:51
Once again I installed NetBSD on one of my SPARCs to see what is new
since version 1.5.  Otherwise it seems ok but then I got stuck while
trying to build utilities I think I cannot live without.  First thing
I tried to build was Bash and this is what I get:

---
# cd /usr/pkgsrc/shells/bash2
# make
[...lots of stuff...]
===> [Automatic manual page handling]
===> Compressing manual pages for gettext-lib-0.10.35nb1
===> [Automatic ELF shared object handling]
ls: /usr/pkg/lib/libintl.a: No such file or directory
ls: /usr/pkg/lib/libintl.la: No such file or directory
ls: /usr/pkg/lib/libintl.so: No such file or directory
ls: /usr/pkg/lib/libintl.so.1: No such file or directory
ls: /usr/pkg/lib/libintl.so.1.0: No such file or directory
===> Registering installation for gettext-lib-0.10.35nb1
pkg_create: can't stat `/usr/pkg/lib/libintl.a'
pkg_create: can't stat `/usr/pkg/lib/libintl.la'
pkg_create: can't stat `/usr/pkg/lib/libintl.so'
pkg_create: can't stat `/usr/pkg/lib/libintl.so.1'
pkg_create: can't stat `/usr/pkg/lib/libintl.so.1.0'
===> Returning to build of bash-2.05
===> Patching for bash-2.05
===> Applying NetBSD patches for bash-2.05
===> Configuring for bash-2.05
creating cache ./config.cache
checking host system type... sparc--netbsd
Beginning configuration for bash-2.05 for sparc--netbsd
checking for gcc... cc
checking whether the C compiler (cc -O2  -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
rafiki# cc -v
Using builtin specs.
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
rafiki# cc -O2  -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib
/usr/lib/crt0.o: In function `___start':
/usr/lib/crt0.o(.text+0xf8): undefined reference to `main'
collect2: ld returned 1 exit status
rafiki# pkg_info
digest-20010320     message digest wrapper utility
libtool-base-1.4.20010219nb6 Generic shared library support script (the script itself)
libtool-info-1.4.20010219nb6 Generic shared library support script - info pages
libtool-1.4.20010219nb6 Generic shared library support script
gettext-lib-0.10.35nb1 tools for providing messages in different languages, libintl
---

Something is broken... is it the shared library or something in
packages?  Might not even be SPARC-specific.

-- 
 "pienena   /  Paavo "Rainbow Rat" Hartikainen
  minusta  /  E-mail: pahartik@sci.fi
  tulee   /  URL: http://www.sci.fi/~pahartik/
  rotta" /  EFnet: pahartik at #Atari and #LionKing