
dave_barettt at yahoo
Feb 19, 2006, 3:42 PM
Post #1 of 1
(1325 views)
Permalink
|
|
Link failure/Incorrect building of pkg? Crash...
|
|
Folks, I am possibly going in circles and am at a dead end. Cygwin Ver: 1.5.19 ClamAV: Src tree for ver 0.88 freshclam/clamscan all crash when they call into libclamav, built in the above setup. The eip at this point is accessing an out of bound addr, possibly indicating some sort of link issue (guessing). (gdb) bt #0 0x00cf00cc in ?? () #1 0x00337ba2 in cli_strtok (line=0x22e920 "\r\n", fieldno=0, delim=0x408520 " \r\n") at str.c:240 #2 0x00401834 in parsecfg (cfgfile=0x10022858 "etc/clamd.conf", messages=1) at ../shared/cfgparser.c:140 #3 0x0040325a in freshclam (opt=0x10022830) at freshclam.c:119 #4 0x00404078 in main (argc=2, argv=0x100227b0) at options.c:121 (Call to strchr in frame 1) There seems nothing wrong with cygwin as test apps using these apis just work fine. I had to hack some to get things building. References to DIR->d_ino had to be removed. To get around "undefined reference to _WinMain [at] 1" when building libclamav, "-shared" option was included in libtool (manual editing). I have also tried defining "main" in scanners.c (an alternative to the "shared"). Neither work. Again, all lib/system-calls from within libclamav src initiate a similar crash. Many thanks in advance! -B --------------------------------- What are the most popular cars? Find out at Yahoo! Autos _______________________________________________ http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-win32
|