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, 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 DB_File.bs
rm -f ../../lib/auto/DB_File/DB_File.so
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/DB_File.so         -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...

Cheers,

Patrick


Home | Main Index | Thread Index | Old Index