databases/tdb fails to compile

Carsten Jensen tomse at
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

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
cc -shared  -o pytdb.o -L. -ltdb `/usr/local/bin/python-config
/usr/bin/ld: cannot find -lpth
gmake: *** [] Error 1
*** Error code 1

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

Googling the error I noticed this PR:
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 ??


More information about the freebsd-ports mailing list