databases/tdb fails to compile

Carsten Jensen tomse at tomse.dk
Thu May 5 11:12:20 UTC 2011


I'm trying to install samba35, during the compile phase it installs
python27 if it isn't already installed (I've previously installed it
with pth enabled) and it compiles/installs the tdb (or tries to).

I've linked /usr/local/includes/pth/pth.h and pthread.h to
/usr/local/includes/pth/python2.7 (this is required for py-imaging which
I'm also using bunt wondering if this is the right way?).

Now I get this compile error

<snip>
cc -I./include -Iinclude  -O2 -pipe -fno-strict-aliasing -I./libreplace
 -o bin/tdbtool tools/tdbtool.o -L. -ltdb
cc -I./include -Iinclude  -O2 -pipe -fno-strict-aliasing -I./libreplace
 -o bin/tdbdump tools/tdbdump.o -L. -ltdb
cc -I./include -Iinclude  -O2 -pipe -fno-strict-aliasing -I./libreplace
 -o bin/tdbbackup tools/tdbbackup.o -L. -ltdb
ln -fs libtdb.so.1 libtdb.so
cc -shared  -o tdb.so pytdb.o -L. -ltdb `/usr/local/bin/python-config
--ldflags`
/usr/bin/ld: cannot find -lpth
gmake: *** [tdb.so] Error 1
*** Error code 1

Stop in /usr/ports/databases/tdb.
*** Error code 1
</snip>

Googling the error I noticed this PR:
http://www.freebsd.org/cgi/query-pr.cgi?pr=152111
Which didn't work for me


I've tried some different things, and basically ended out in installing
python26, adding tdb from the packages repo, uninstalling python26 and
reinstalling python27 to continue.

are there any hints to if this should be reported as a bug, though it's
there already, or how to take it from here ??

cheers
Carsten


More information about the freebsd-ports mailing list