Subject: pkg/32840: upx does not compile correctly on Solaris
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <sd4dfg2@hotmail.com>
List: pkgsrc-bugs
Date: 02/14/2006 20:50:02
>Number:         32840
>Category:       pkg
>Synopsis:       upx does not compile correctly on Solaris
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 14 20:50:02 +0000 2006
>Originator:     Rob Quinn
>Release:        pkgsrc-current, Solaris2.9
>Organization:
>Environment:
>Description:
The final stage of building archivers/upx fails under Solaris:
[...]
g++ -DWITH_UCL -D_FILE_OFFSET_BITS=64 -I/usr/pkg/include -Wall -W -Wcast-align -Wcast-qual -Winline -Woverloaded-virtual -Wpointer-arith -Wshadow -Wsign-promo -Wsynth -Wwrite-strings -O2 -fstrict-aliasing -fconserve-space -o s_win32.o -c s_win32.cpp
g++ -L/usr/pkg/gcc3/lib/gcc-lib/sparc-sun-solaris2/3.3.5 -Wl,-R/usr/pkg/gcc3/lib/gcc-lib/sparc-sun-solaris2/3.3.5 -L/usr/pkg/gcc3/lib -Wl,-R/usr/pkg/gcc3/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -s -Wl,-Map,upx.map -o upx compress.o except.o file.o lefile.o filter.o mem.o ui.o msg.o stdcxx.o work.o packer.o packhead.o packmast.o p_com.o p_djgpp2.o p_exe.o p_sys.o p_tmt.o p_tos.o p_unix.o p_w32pe.o p_wcle.o filteri.o help.o linker.o main.o mygetopt.o snprintf.o util.o c_init.o c_file.o c_none.o c_screen.o s_object.o s_djgpp2.o s_vcsa.o s_win32.o -lucl
ld: fatal: file ap: stat failed: No such file or directory
collect2: ld returned 1 exit status
gmake: *** [upx] Error 1
*** Error code 2

Stop.
bmake: stopped in /usr/pkgsrc/archivers/upx
===> 
===> There was an error during the ``build'' phase.
===> Please investigate the following for more information:
===>      * log of the build
===>      * /usr/obj/pkg/archivers/upx/work/.work.log
===> 
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/archivers/upx

>How-To-Repeat:

>Fix:
I re-run the g++ command by hand in /usr/obj/pkg/archivers/upx/work/upx-1.25/src without the "-Wl,-Map,upx.map".  Then resume the build.