compiling of sophie-3.05 failed on FreeBSD6.0

Tadashi Ichihara <[email protected]> Sat, 04 Mar 2006 16:13:15 +0900
Newsgroups gmane.comp.security.virus.vtools
Message-ID <[email protected]>
Hello,

 Is there any person who succeeded in compiling sophie-3.05 
on FreeBSD6.0?

In my case, it is as follows, and it fails in compile.

lix# uname -srim
FreeBSD 6.0-SECURITY i386 GENERIC
lix# sweep -v
SWEEP virus detection utility
Copyright (c) 1989-2006 Sophos Plc, www.sophos.com

System time 16:07:57, System date 04 March 2006

Product version           : 4.03.0
Engine version            : 2.32.12
Virus data version        : 4.03
User interface version    : 2.07.129
Platform                  : FreeBSD/Intel
Released                  : 06 March 2006
Total viruses (with IDEs) : 119192
lix# ls -l /usr/local/lib/*sav*
lrwxr-xr-x  1 root  wheel       12 Mar  3 14:56 /usr/local/lib/libsavi.so -> libsavi.so.3
lrwxr-xr-x  1 root  wheel       21 Mar  3 16:53 /usr/local/lib/libsavi.so.2 -> libsavi.so.3.2.07.129
lrwxr-xr-x  1 root  wheel       21 Mar  3 16:53 /usr/local/lib/libsavi.so.3 -> libsavi.so.3.2.07.129
-r-xr-xr-x  1 bin   bin    1705448 Mar  3 16:53 /usr/local/lib/libsavi.so.3.2.07.129
lix# tar zxvf sophie-3.05.tar.bz2
lix# cd sophie-3.05
lix# ./configure
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking build system type... i386-unknown-freebsd6.0
checking host system type... i386-unknown-freebsd6.0
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking sys/sched.h usability... no
checking sys/sched.h presence... yes
configure: WARNING: sys/sched.h: present but cannot be compiled
configure: WARNING: sys/sched.h:     check for missing prerequisite headers?
configure: WARNING: sys/sched.h: see the Autoconf documentation
configure: WARNING: sys/sched.h:     section "Present But Cannot Be Compiled"
configure: WARNING: sys/sched.h: proceeding with the preprocessor's result
configure: WARNING: sys/sched.h: in the future, the compiler will take precedence
configure: WARNING:     ## ------------------------------------------ ##
configure: WARNING:     ## Report this to the AC_PACKAGE_NAME lists.  ##
configure: WARNING:     ## ------------------------------------------ ##
checking for sys/sched.h... yes
checking sched.h usability... yes
checking sched.h presence... yes
checking for sched.h... yes
checking whether stdio.h declares vsnprintf... yes
checking whether grp.h declares initgroups... no
checking whether unistd.h declares initgroups... yes
checking for an ANSI C-conforming const... yes
checking for uid_t in sys/types.h... yes
checking for pid_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for working memcmp... yes
checking return type of signal handlers... void
checking for bind... yes
checking for nanosleep... yes
checking for location of libsavi... /usr/local/lib
checking for DllGetClassObject in -lsavi... yes
checking if network support is enabled... no
checking if fgets() will be used... no
checking if only fatal errors will be reported... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating sophie.cfg
config.status: creating config.h
lix# make
gcc -g -O2 -Wall -Isav_if -c sophie.c
In file included from sophie.h:27,
                 from sophie.c:29:
/usr/include/sys/sched.h: In function `sched_pin':
/usr/include/sys/sched.h:103: error: `curthread' undeclared (first use in this function)
/usr/include/sys/sched.h:103: error: (Each undeclared identifier is reported only once
/usr/include/sys/sched.h:103: error: for each function it appears in.)
/usr/include/sys/sched.h: In function `sched_unpin':
/usr/include/sys/sched.h:109: error: `curthread' undeclared (first use in this function)
*** Error code 1

Stop in /usr/local/src/sophie-3.05.

Any ideas ?
Best wishes,

Tadashi