Hi, I came across an autoconf bug after trying to install Spy Bye on OpenBSD 4.2
Just wanted to get advice of some programmers on how to proceed further :-) The Story starts like this. I tried to get http://www.monkey.org/~provos/spybye-0.3.tar.gz complied on OpenBSD 4.2/amd64 as per instructions on http://www.spybye.org/index.php?/pages/installation.html It gave the error as shown below ==================================================================================== $ make event_rpcgen.py spybye.rpc || echo "No Python installed" Reading "spybye.rpc" Created struct: dangerousload Added entry: time_in_seconds Added entry: parent_url Added entry: dangerous_url Added entry: virus_result Added entry: digest Created struct: dangerous_report Added entry: time_in_seconds Added entry: remote_ip Added entry: report Created struct: virusscan Added entry: buffer Added entry: context Created struct: virusresult Added entry: result Added entry: context ... creating "spybye.gen.h" ... creating "spybye.gen.c" make all-am if gcc -DHAVE_CONFIG_H -I. -I. -I. -I./compat -I/usr/local/include -I/usr/local/include -O2 -pipe -O2 -g -Wall -MT spybye.o -MD -MP -MF ".deps/spybye.Tpo" -c -o spybye.o spybye.c; then mv -f ".deps/spybye.Tpo" ".deps/spybye.Po"; else rm -f ".deps/spybye.Tpo"; exit 1; fi if gcc -DHAVE_CONFIG_H -I. -I. -I. -I./compat -I/usr/local/include -I/usr/local/include -O2 -pipe -O2 -g -Wall -MT utils.o -MD -MP -MF ".deps/utils.Tpo" -c -o utils.o utils.c; then mv -f ".deps/utils.Tpo" ".deps/utils.Po"; else rm -f ".deps/utils.Tpo"; exit 1; fi utils.c: In function `make_next_replacement': utils.c:249: warning: implicit declaration of function `strnstr' utils.c:249: warning: assignment makes pointer from integer without a cast if gcc -DHAVE_CONFIG_H -I. -I. -I. -I./compat -I/usr/local/include -I/usr/local/include -O2 -pipe -O2 -g -Wall -MT status.o -MD -MP -MF ".deps/status.Tpo" -c -o status.o status.c; then mv -f ".deps/status.Tpo" ".deps/status.Po"; else rm -f ".deps/status.Tpo"; exit 1; fi if gcc -DHAVE_CONFIG_H -I. -I. -I. -I./compat -I/usr/local/include -I/usr/local/include -O2 -pipe -O2 -g -Wall -MT spybye.gen.o -MD -MP -MF ".deps/spybye.gen.Tpo" -c -o spybye.gen.o spybye.gen.c; then mv -f ".deps/spybye.gen.Tpo" ".deps/spybye.gen.Po"; else rm -f ".deps/spybye.gen.Tpo"; exit 1; fi if gcc -DHAVE_CONFIG_H -I. -I. -I. -I./compat -I/usr/local/include -I/usr/local/include -O2 -pipe -O2 -g -Wall -MT log.o -MD -MP -MF ".deps/log.Tpo" -c -o log.o log.c; then mv -f ".deps/log.Tpo" ".deps/log.Po"; else rm -f ".deps/log.Tpo"; exit 1; fi if gcc -DHAVE_CONFIG_H -I. -I. -I. -I./compat -I/usr/local/include -I/usr/local/include -O2 -pipe -O2 -g -Wall -MT atomicio.o -MD -MP -MF ".deps/atomicio.Tpo" -c -o atomicio.o atomicio.c; then mv -f ".deps/atomicio.Tpo" ".deps/atomicio.Po"; else rm -f ".deps/atomicio.Tpo"; exit 1; fi if gcc -DHAVE_CONFIG_H -I. -I. -I. -I./compat -I/usr/local/include -I/usr/local/include -O2 -pipe -O2 -g -Wall -MT virus.o -MD -MP -MF ".deps/virus.Tpo" -c -o virus.o virus.c; then mv -f ".deps/virus.Tpo" ".deps/virus.Po"; else rm -f ".deps/virus.Tpo"; exit 1; fi virus.c: In function `virus_init': virus.c:61: warning: implicit declaration of function `cl_loaddbdir' virus.c:68: warning: passing arg 1 of `cl_build' from incompatible pointer type virus.c: In function `clamav_scan_buffer': virus.c:114: warning: passing arg 4 of `cl_scandesc' from incompatible pointer type if gcc -DHAVE_CONFIG_H -I. -I. -I. -I./compat -I/usr/local/include -I/usr/local/include -O2 -pipe -O2 -g -Wall -MT proxy.o -MD -MP -MF ".deps/proxy.Tpo" -c -o proxy.o proxy.c; then mv -f ".deps/proxy.Tpo" ".deps/proxy.Po"; else rm -f ".deps/proxy.Tpo"; exit 1; fi if gcc -DHAVE_CONFIG_H -I. -I. -I. -I./compat -I/usr/local/include -I/usr/local/include -O2 -pipe -O2 -g -Wall -MT strnstr.o -MD -MP -MF ".deps/strnstr.Tpo" -c -o strnstr.o strnstr.c; then mv -f ".deps/strnstr.Tpo" ".deps/strnstr.Po"; else rm -f ".deps/strnstr.Tpo"; exit 1; fi if gcc -DHAVE_CONFIG_H -I. -I. -I. -I./compat -I/usr/local/include -I/usr/local/include -O2 -pipe -O2 -g -Wall -MT strncasestr.o -MD -MP -MF ".deps/strncasestr.Tpo" -c -o strncasestr.o strncasestr.c; then mv -f ".deps/strncasestr.Tpo" ".deps/strncasestr.Po"; else rm -f ".deps/strncasestr.Tpo"; exit 1; fi gcc -O2 -g -Wall -o spybye spybye.o utils.o status.o spybye.gen.o log.o atomicio.o virus.o proxy.o strnstr.o strncasestr.o -L/usr/local/lib -levent -L/usr/local/lib -liconv -lz -lbz2 -lgmp -L/usr/local/lib -lcurl -L/usr/local/lib -lidn -lssl -lcrypto -lz -lclamav /usr/local/lib/libgmp.so.7.0: warning: vsprintf() is often misused, please use vsnprintf() /usr/local/lib/libevent.so.2.0: warning: strcpy() is almost always misused, please use strlcpy() /usr/local/lib/libcurl.so.6.0: warning: sprintf() is often misused, please use snprintf() /usr/local/lib/libbz2.so.10.4: warning: strcat() is almost always misused, please use strlcat() /usr/local/lib/libclamav.so.4.2: undefined reference to `pthread_create' /usr/local/lib/libclamav.so.4.2: undefined reference to `pthread_mutex_unlock' /usr/local/lib/libclamav.so.4.2: undefined reference to `pthread_mutex_lock' /usr/local/lib/libclamav.so.4.2: undefined reference to `pthread_join' collect2: ld returned 1 exit status *** Error code 1 Stop in /var/Software/spybye-0.3 (line 305 of Makefile). *** Error code 1 Stop in /var/Software/spybye-0.3 (line 227 of Makefile). $ ========================================================================================================= So I changed the line CFLAGS = -O2 -g -Wall -pthread in spybye-0.3/Makefile.am to include -pthread but now it gives another error. ====================================================================================== \ ========================= $ make event_rpcgen.py spybye.rpc || echo "No Python installed" Reading "spybye.rpc" Created struct: dangerousload Added entry: time_in_seconds Added entry: parent_url Added entry: dangerous_url Added entry: virus_result Added entry: digest Created struct: dangerous_report Added entry: time_in_seconds Added entry: remote_ip Added entry: report Created struct: virusscan Added entry: buffer Added entry: context Created struct: virusresult Added entry: result Added entry: context ... creating "spybye.gen.h" ... creating "spybye.gen.c" make all-am cd . && /bin/sh /var/Software/spybye-0.3/missing --run automake-1.9 --foreign Makefile Use of uninitialized value in string eq at /usr/local/bin/automake-1.9 line 4673, <GEN0> line 1. Use of uninitialized value in exists at /usr/local/bin/automake-1.9 line 4675, <GEN0> line 1. Use of uninitialized value in concatenation (.) or string at /usr/local/bin/automake-1.9 line 4675, <GEN0> line 1. automake-1.9: #################### automake-1.9: ## Internal Error ## automake-1.9: #################### automake-1.9: unrequested trace `' automake-1.9: Please contact <[EMAIL PROTECTED]>. at /usr/local/share/automake-1.9/Automake/Channels.pm line 562 Automake::Channels::msg('automake', '', 'unrequested trace `\'') called at /usr/local/share/automake-1.9/Automake/ChannelDefs.pm line 191 Automake::ChannelDefs::prog_error('unrequested trace `\'') called at /usr/local/bin/automake-1.9 line 4675 Automake::scan_autoconf_traces('configure.in') called at /usr/local/bin/automake-1.9 line 4877 Automake::scan_autoconf_files() called at /usr/local/bin/automake-1.9 line 7493 *** Error code 1 Stop in /var/Software/spybye-0.3 (line 245 of Makefile). *** Error code 1 Stop in /var/Software/spybye-0.3 (line 227 of Makefile). ====================================================================================== Should I really contact "<[EMAIL PROTECTED]>." as said in the error message? Also is there any way to get this compiled on OpenBSD 4.2? This is my first time editing a Make file :-) So just wanted to make sure it is not some thing I did wrong :-)))))) Thank you so much Kind Regards Siju _______________________________________________ bsd-india mailing list [email protected] http://www.bsd-india.org/mailman/listinfo/bsd-india
