Subject: pkg/32559: audio/mpg123-esound Solaris10 gcc
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Gilles Dauphin <dauphin@enst.fr>
List: pkgsrc-bugs
Date: 01/18/2006 09:30:01
>Number:         32559
>Category:       pkg
>Synopsis:       audio/mpg123-esound Solaris10 gcc
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 18 09:30:00 +0000 2006
>Originator:     Gilles Dauphin
>Release:        SunOS 5.10 i86pc
>Organization:
ENST 
>Environment:


System: SunOS bi.enst.fr 5.10 Generic_118844-20 i86pc


>Description:


[root@redhot 1430] bmake install
===> Checking for vulnerabilities in mpg123-esound-0.59.18nb6
===> Installing for mpg123-esound-0.59.18nb6
===> Creating installation directories
/usr/ucb/install -c -s -o root -g root -m 555 /usr/pkgsrc/audio/mpg123-esound/work/mpg123-0.59r/mpg123 /usr/pkg/bin/mpg123-esound
/usr/ucb/install -c -o root -g root -m 444 /usr/pkgsrc/audio/mpg123-esound/work/mpg123-0.59r/mpg123.1 /usr/pkg/man/man1/mpg123-esound.1
===> Registering installation for mpg123-esound-0.59.18nb6
mpg123-esound-0.59.18nb6 requires installed package esound-0.2.36
/usr/pkg/bin/mpg123-esound:     libesd.so.0 =>   (file not found)
*** The above programs/libs will not find the listed shared libraries
    at runtime. Please fix the package (add -Wl,-R.../lib in the right places)!
*** Error code 1




>How-To-Repeat:


bmake install


>Fix:


in /usr/pkgsrc/audio/mpg123/work/mpg123-0.59r/Makefile add -L${PREFIX}/lib -Wl,-R${PREFIX}/lib 
to AUDIO_LIB



solaris-gcc-esd:
        $(MAKE) CC=gcc LDFLAGS='-lsocket -lnsl' \
                AUDIO_LIB='-L${PREFIX}/lib -Wl,-R${PREFIX}/lib -lesd -lresolv' \
                OBJECTS='decode.o dct64.o audio_esd.o' \
                CFLAGS='$(CFLAGS) -O2 -Wall -DSOLARIS -DREAL_IS_FLOAT -DUSE_MMAP \
                        -DREAD_MMAP \
                        -funroll-all-loops -finline-functions' \
                mpg123-make