tech-pkg archive

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

error building DB_File in perl: missing -ldb



I have often had trouble building perl within pkgsrc.  The problem
consistently involves an error message like:

     Running Mkbootstrap for DB_File ()
     chmod 644 DB_File.bs
     rm -f ../../lib/auto/DB_File/DB_File.so
     cc  -Wl,-R/usr/pkg-2011Q2/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-2011Q2/lib/perl5/5.12.0/i386-netbsd-thread-multi/CORE 
-Wl,-R../../lib/CORE -lperl          
     ld: cannot find -ldb
     *** Error code 1

Thus, it appears that DB_File is being made, but incorrectly.

However, from PR 42155 it sounds like DB_File is not supposed to be
made, even on NetBSD.

     After some thoughts I came to a conclusion that it is better to revert my
     original proposal and to *remove* DB_File extension from perl on all
     platforms including NetBSD. In this case perl will become lighter and
     packages requering DB_Fill (e.g. ikiwiki) should depend on
     databases/p5-DB_File.

     -- 
     Best regards, Aleksey Cheusov.

But it is unclear to me if this PR was ever closed.  Thus, I wonder if
I am running into some sort of inconsistency in handling DB_File.
Some people seem to get perl compiled though as there are binary
packages available, so I am really confused about what is going on and
what should be going on.

Does anyone have any ideas about what would cause this problem and how
to fix it?

Thanks for your help.

Cheers,
Brook


Home | Main Index | Thread Index | Old Index