pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/45290: destdir support breaks lang/gcc34



>Number:         45290
>Category:       pkg
>Synopsis:       destdir support breaks lang/gcc34
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 24 12:35:00 +0000 2011
>Originator:     Jörn Clausen
>Release:        
>Organization:
University of Bielefeld
>Environment:
>Description:
It is no longer possible to switch to lang/gcc34 on Solaris (and maybe other 
platforms). Compilation in net/fetch fails with

===> Building for fetch-1.7
cc -O -I/pkgsrc/gcc34/include  -DHAVE_NBCOMPAT_H=1 
-I/pkgsrc/source/pkgsrc/net/fetch/work.pkgsrc-i86/libnbcompat 
-I/pkgsrc/gcc34/include -c fetch.c
cc -L/pkgsrc/source/pkgsrc/net/fetch/work.pkgsrc-i86/libnbcompat 
-L/pkgsrc/gcc34/lib -Wl,-R/pkgsrc/gcc34/lib  -o fetch -nostdlib 
-Wl,-rpath-link,/pkgsrc/source/pkgsrc/lang/gcc34/work.pkgsrc-i86/.destdir/usr/lib
   fetch.o -lfetch -lfetch -lnsl -lsocket -lnbcompat 
-L/pkgsrc/source/pkgsrc/lang/gcc34/work.pkgsrc-i86/.destdir/usr/lib -lgcc -lc 
-lgcc 
cc: Warning: illegal option -nostdlib
ld: fatal: library -lgcc: not found
ld: fatal: library -lgcc: not found
ld: fatal: File processing errors. No output written to fetch

The compiler flags (especially "-lgcc -lc -lgcc") are taken from bsd.prog.mk in 
pkgtools/bootstrap-mk-files.

NB that this error does not happen with lang/gcc46. But given the current state 
of lang/gcc4*, lang/gcc34 should be supported for some time, if possible.
>How-To-Repeat:

>Fix:
Reverting back to version 1.47 of lang/gcc34/Makefile fixes this problem.



Home | Main Index | Thread Index | Old Index