OpenBSD and sophie

"Will Harris" <[email protected]>
Newsgroups gmane.comp.security.virus.vtools
Message-ID <001a01c3f043$3198fa10$6464a8c0@none>
I am trying to compile sophie 3.03 or 3.04rc2 on OpenBSD 3.4, but i am running into some problems.  I got sophos sweep working by using the FreeBSD (elf) version, enabling FreeBSD emulation, and then installing the freebsd libs from the ports.

"./configure --with-savilib=/emul/freebsd/usr/lib" worked just fine for both 3.3 and 3.4rc2, but i get (different) compiling problems when i try to 'make' either of them.

with sophie-3.04rc2 i get the following:

# make
gcc -g -O2 -Wall -Isav_if  -c sophie.c
sophie.c: In function `set_sockopts':
sophie.c:171: `IPPROTO_TCP' undeclared (first use in this function)
sophie.c:171: (Each undeclared identifier is reported only once
sophie.c:171: for each function it appears in.)
*** Error code 1

Stop in /root/sophie-3.04rc2.


with sophie-3.03 i get the following:

# make
gcc -g -O2 -Wall -Isav_if  -c sophie.c
gcc -g -O2 -Wall -Isav_if  -c sophie_init.c
gcc -g -O2 -Wall -Isav_if  -c sophie_scandir.c
gcc -g -O2 -Wall -Isav_if  -c sophie_core.c
gcc -g -O2 -Wall -Isav_if  -c sophie_notify.c
gcc -g -O2 -Wall -Isav_if -Wl,-rpath,/emul/freebsd/usr/lib/ -L/emul/freebsd/usr/lib/ -lsavi sophie.o sophie_init.o sophie_scandir.o sophie_core.o sophie_notify.o -o sophie
sophie.o: In function `main':
/root/sophie-3.03/sophie.c:167: undefined reference to `__guard'
sophie_init.o: In function `sophie_load_config':
/root/sophie-3.03/sophie_init.c:126: undefined reference to `__guard'
/root/sophie-3.03/sophie_init.c:319: undefined reference to `__guard'
/root/sophie-3.03/sophie_init.c:319: undefined reference to `__stack_smash_handler'
sophie_init.o: In function `sophie_isnumeric':
/root/sophie-3.03/sophie_init.c:455: undefined reference to `_ctype_'
sophie_init.o: In function `show_config_details':
/root/sophie-3.03/sophie_init.c:549: undefined reference to `__guard'
/root/sophie-3.03/sophie_init.c:587: undefined reference to `__guard'
/root/sophie-3.03/sophie_init.c:587: undefined reference to `__stack_smash_handler'
sophie_init.o: In function `sophie_set_engine_config':
/root/sophie-3.03/sophie_init.c:601: undefined reference to `__guard'
/root/sophie-3.03/sophie_init.c:663: undefined reference to `__guard'
/root/sophie-3.03/sophie_init.c:663: undefined reference to `__stack_smash_handler'
sophie_scandir.o: In function `sophie_scandir':
/root/sophie-3.03/sophie_scandir.c:8: undefined reference to `__guard'
/root/sophie-3.03/sophie_scandir.c:92: undefined reference to `__guard'
/root/sophie-3.03/sophie_scandir.c:92: undefined reference to `__stack_smash_handler'
sophie_core.o: In function `sophie_print':
/root/sophie-3.03/sophie_core.c:314: undefined reference to `__guard'
/root/sophie-3.03/sophie_core.c:375: undefined reference to `__guard'
/root/sophie-3.03/sophie_core.c:375: undefined reference to `__stack_smash_handler'
sophie_core.o: In function `sophie_syslog':
/root/sophie-3.03/sophie_core.c:381: undefined reference to `__guard'
/root/sophie-3.03/sophie_core.c:395: undefined reference to `__guard'
/root/sophie-3.03/sophie_core.c:395: undefined reference to `__stack_smash_handler'
sophie_core.o: In function `sophie_log_virus':
/root/sophie-3.03/sophie_core.c:401: undefined reference to `__guard'
/root/sophie-3.03/sophie_core.c:428: undefined reference to `__guard'
/root/sophie-3.03/sophie_core.c:428: undefined reference to `__stack_smash_handler'
sophie_core.o: In function `sophie_version':
/root/sophie-3.03/sophie_core.c:711: undefined reference to `__guard'
/root/sophie-3.03/sophie_core.c:778: undefined reference to `__guard'
/root/sophie-3.03/sophie_core.c:778: undefined reference to `__stack_smash_handler'
collect2: ld returned 1 exit status
*** Error code 1

Stop in /root/sophie-3.03 (line 15 of Makefile).


I would greatly appreciate any ideas on this, it is the last piece of the puzzle in my mail server.
Will Harris

_______________________________________________
vtools mailing list
[email protected]
http://www.vanja.com/list/listinfo.cgi/vtools
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.