pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/29470: popt build on Solaris fails with: ld: fatal: library -lc: not found
>Number: 29470
>Category: pkg
>Synopsis: popt build on Solaris fails with: ld: fatal: library -lc: not
>found
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Feb 20 19:41:00 +0000 2005
>Originator: Eric Boutilier
>Release: Solaris 10
>Organization:
Sun Microsystems
>Environment:
# uname -a
SunOS laptop 5.10 Generic i86pc i386 i86pc
>Description:
Building popt fails because ld can't find libc when trying to compile test1.c.
Below is the relevant build output fragment, and the last
line from .work.log.
If needed, I've also copied the last 200 lines of .work.log and
build output here:
http://speakeasy.net/~boutilier/popt_build.txt
http://speakeasy.net/~boutilier/popt_worklog_tail.txt
Last line of output from work/.work.log:
------------------------------------
<.> /pkgsrc/devel/popt/work/.gcc/bin/gcc -Wall -O
-I/pkgsrc/devel/popt/work/.buildlink/include -Wl,-R/usr/pkg/gcc3/lib/gcc-l
ib/i386-sun-solaris2/3.3.5 -Wl,-R/usr/pkg/gcc3/lib -Wl,-R/usr/pkg/lib -o test1
-static test1.o -L/pkgsrc/devel/popt/work/.bu
ildlink/gcc3/lib/gcc-lib/i386-sun-solaris2/3.3.5
-L/pkgsrc/devel/popt/work/.buildlink/gcc3/lib -L/pkgsrc/devel/popt/work/.bu
ildlink/lib ./.libs/libpopt.a /pkgsrc/devel/popt/work/.buildlink/lib/libintl.a
/pkgsrc/devel/popt/work/.buildlink/lib/libico
nv.a -lc
Build fragment:
---------------
gcc -Wall -O -I/pkgsrc/devel/popt/work/.buildlink/include
-Wl,-R/usr/pkg/gcc3/lib/gcc-lib/i386-sun-solaris2/3.3.5 -Wl,-R/usr
/pkg/gcc3/lib -Wl,-R/usr/pkg/lib -o test1 -static test1.o
-L/pkgsrc/devel/popt/work/.buildlink/gcc3/lib/gcc-lib/i386-sun-so
laris2/3.3.5 -L/pkgsrc/devel/popt/work/.buildlink/gcc3/lib
-L/pkgsrc/devel/popt/work/.buildlink/lib ./.libs/libpopt.a /pkgsr
c/devel/popt/work/.buildlink/lib/libintl.a
/pkgsrc/devel/popt/work/.buildlink/lib/libiconv.a -lc
ld: fatal: library -lc: not found
ld: fatal: library -lc: not found
ld: fatal: File processing errors. No output written to test1
collect2: ld returned 1 exit status
gmake[2]: *** [test1] Error 1
gmake[2]: Leaving directory `/pkgsrc/devel/popt/work/popt-1.7'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/pkgsrc/devel/popt/work/popt-1.7'
gmake: *** [all] Error 2
*** Error code 2
>How-To-Repeat:
Execute bmake in devel/popt on a Solaris 10 system
>Fix:
Home |
Main Index |
Thread Index |
Old Index