Subject: pkg/32832: [SOLARIS] gettext-asprintf doesn't build on Solaris 10
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <raczkow@prz.edu.pl>
List: pkgsrc-bugs
Date: 02/14/2006 10:15:04
>Number:         32832
>Category:       pkg
>Synopsis:       [SOLARIS] gettext-asprintf doesn't build on Solaris 10
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 14 10:15:04 +0000 2006
>Originator:     Krzysztof Raczkowski
>Release:        Solaris 10, x86_64
>Organization:
Rzeszow University of Technology
>Environment:
SunOS pkgsrc-i64 5.10 Generic_118844-27 i86pc i386 i86pc

>Description:
gettext-asprintf-0.14.5 doesn't build on Solaris. There are problems with linking, I suppose, because building process doesn't create libasprintf.so.0.0.0 library.

===> Building for gettext-asprintf-0.14.5
/usr/pkg/bin/bmake  all-am
cp ./autosprintf.h.in autosprintf.h
/usr/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H  -I. -I. -I.      -O -xtarget=pentium4 -xarch=amd64 -c -o lib-asprintf.lo lib-asprintf.c
mkdir .libs
 gcc -DHAVE_CONFIG_H -I. -O -xtarget=pentium4 -xarch=amd64 -c lib-asprintf.c  -KPIC -DPIC -o .libs/lib-asprintf.o
 gcc -DHAVE_CONFIG_H -I. -O -xtarget=pentium4 -xarch=amd64 -c lib-asprintf.c -o lib-asprintf.o >/dev/null 2>&1
/usr/bin/bash ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H  -I. -I. -I.      -O -xtarget=pentium4 -xarch=amd64 -c -o autosprintf.lo autosprintf.cc
 g++ -DHAVE_CONFIG_H -I. -O -xtarget=pentium4 -xarch=amd64 -c autosprintf.cc  -DPIC -o .libs/autosprintf.o
 g++ -DHAVE_CONFIG_H -I. -O -xtarget=pentium4 -xarch=amd64 -c autosprintf.cc -o autosprintf.o >/dev/null 2>&1
/usr/bin/bash ./libtool --tag=CXX --mode=link g++   -O -xtarget=pentium4 -xarch=amd64  -Wl,-R/usr/pkg/lib -o libasprintf.la -rpath /usr/pkg/lib  lib-asprintf.lo autosprintf.lo   ||  /usr/bin/bash ./libtool --tag=CC --mode=link gcc  -O -xtarget=pentium4 -xarch=amd64   -Wl,-R/usr/pkg/lib -o libasprintf.la -rpath /usr/pkg/lib  lib-asprintf.lo autosprintf.lo
(cd .libs && rm -f libasprintf.so.0 && ln -s libasprintf.so.0.0.0 libasprintf.so.0)
(cd .libs && rm -f libasprintf.so && ln -s libasprintf.so.0.0.0 libasprintf.so)
ar cru .libs/libasprintf.a  lib-asprintf.o autosprintf.o
ranlib .libs/libasprintf.a
creating libasprintf.la
(cd .libs && rm -f libasprintf.la && ln -s ../libasprintf.la libasprintf.la)
=> Unwrapping files-to-be-installed.
===> Installing for gettext-asprintf-0.14.5
test -z "/usr/pkg/lib" || /usr/bin/bash ./../../build-aux/mkinstalldirs "/usr/pkg/lib"
 /usr/bin/bash ./libtool --mode=install /usr/ucb/install -c -o root -g root  'libasprintf.la' '/usr/pkg/lib/libasprintf.la'
/usr/ucb/install -c -o root -g root .libs/libasprintf.so.0.0.0 /usr/pkg/lib/libasprintf.so.0.0.0
install: .libs/libasprintf.so.0.0.0: No such file or directory
*** Error code 1

>How-To-Repeat:
1. cd /usr/pkgsrc/devel/gettext-asprintf
2. bmake
>Fix: