2009/6/17 Török Edwin <[email protected]>: > On 2009-06-17 01:58, Renato Botelho wrote: >> Hi, >> >> After upgrade clamav on FreeBSD ports collection i recieved this email >> from a user, talking about this problem building on 6.3. >> >> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. >> configure:3597: $? = 0 >> configure:3604: cc -v >&5 >> Using built-in specs. >> Configured with: FreeBSD/i386 system compiler >> Thread model: posix >> gcc version 3.4.6 [FreeBSD] 20060305 >> configure:3608: $? = 0 >> configure:3615: cc -V >&5 >> cc: `-V' option must have argument >> configure:3619: $? = 1 >> configure:3642: checking for C compiler default output file name >> configure:3664: cc -O2 -fno-strict-aliasing -pipe -I/usr/local/include >> -L/usr/local/lib -pthread conftest.c >&5 >> /usr/lib/libpthread.so: undefined reference to `__fcntl_compat' >> > > > Can you try compiling this program with various flags: > int main() { return 0; } > > cc -O2 -fno-strict-aliasing -pipe -L/usr/local/lib -pthread test.c > cc -O2 -pipe -L/usr/local/lib -pthread test.c > cc -O2 -pipe -L/usr/local/lib test.c > cc -pipe -L/usr/local/lib -pthread test.c
Here is the results on 6.3, i asked the guy to test it with -lpthread and -lpth, i'll send you the results. cc -O2 -fno-strict-aliasing -pipe -L/usr/local/lib -pthread test.c /usr/lib/libpthread.so: undefined reference to `__fcntl_compat' cc -O2 -pipe -L/usr/local/lib -pthread test.c /usr/lib/libpthread.so: undefined reference to `__fcntl_compat' cc -O2 -pipe -L/usr/local/lib test.c WORKS!!! cc -pipe -L/usr/local/lib -pthread test.c /usr/lib/libpthread.so: undefined reference to `__fcntl_compat' -- Renato Botelho _______________________________________________ http://lurker.clamav.net/list/clamav-devel.html Please submit your patches to our Bugzilla: http://bugs.clamav.net
