Current-Users archive

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

Re: gcc-4.5.3 has broken most of pkgsrc for me

On Fri, 19 Aug 2011, Patrick Welche wrote:

On Fri, Aug 19, 2011 at 08:45:09AM -0700, Hisashi T Fujinaka wrote:
Being the genius that I am, I thought there was something wrong with my
pkgsrc and deleted most of it before realizing that my problems are
probably related to gcc-4.5.3. I'm unaware of any workarounds.

Building perl or tcsh fail because of missing intermediary files.

Is there a way to revert just the compiler?

Guessing: add "HAVE_GCC=4" to your /etc/mk.conf?

I just saw the perl error - it is odd:

gcc -c  -I/usr/local/BerkeleyDB/include  -O2 -pthread -I/usr/include -fno-strict-aliasing -pipe 
-fstack-protector -I/usr/pkg/include -I/usr/local/include -O2 -pthread -I/usr/include    
-DVERSION=\"1.821\"  -DXS_VERSION=\"1.821\" -DPIC -fPIC "-I../.."  -D_NOT_CORE  
-DmDB_Prefix_t=size_t -DmDB_Hash_t=u_int32_t DB_File.c
Running Mkbootstrap for DB_File ()
chmod 644
rm -f ../../lib/auto/DB_File/
LD_RUN_PATH="/usr/local/lib" gcc  -Wl,-R/usr/pkg/lib --whole-archive -shared  
-L/usr/local/lib -L/usr/pkg/lib -fstack-protector version.o DB_File.o  -o 
../../lib/auto/DB_File/         -ldb -L../.. 
-Wl,-R/usr/pkg/lib/perl5/5.14.0/i386-netbsd-thread-multi/CORE -Wl,-R../../lib/CORE -lperl
ld: cannot find -ldb

I made sure to remove /usr/local/bin from my PATH. I wonder where the
LD_RUN_PATH comes from and if it is related...

Mine fails even earlier when it's looking for miniperl. Or at least I
think it's earlier. My system is now stuck in a fairly unusable state.

Hisashi T Fujinaka -
BSEE(6/86) + BSChem(3/95) + BAEnglish(8/95) + MSCS(8/03) + $2.50 = latte

Home | Main Index | Thread Index | Old Index