Yesterday I was compilling a new release of PHP packages for Red Hat Enterprise 5 (RPM) in the x86_64 architecture and I got a bug during the compilation proccess of the php-mssql module that requires the freetds-devel package to be built.
By default, the configure script doesn’t find the required freetds libraries on the system (even if they are correctly installed) because in the lastest versions of freetds we don’t have the tds.h and libtds.a files.
To bypass this check and continue building your packages normally you can use this simple and dirty workarround:
$ touch /usr/include/tds.h
$ touch /usr/lib/libtds.a
Or you can edit the configure script (make a patch and apply during the build process) to find the correct files and directories.
Official report: http://bugs.php.net/bug.php?id=44991
Tanks to Brian for the help!