Bug Tracker item #2864743, was opened at 2009-09-23 05:51 Message generated for change (Comment added) made by sbajic You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=1126467&aid=2864743&group_id=250683
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: daemon Group: v3.9.0 Status: Closed Resolution: Fixed Priority: 5 Private: No Submitted By: chris (interplanetaryc) Assigned to: Stevan Bajic (sbajic) Summary: dspam does not compile on Mac OS X Initial Comment: This is a continuation of 2770990 (which was never actually resolved). Even by including the patch identified in 2770990, dspam still fails to compile on Mac OS 10.6.1, gcc 4.2, with the same problems: libtool: link: gcc -dynamiclib -Wl,-undefined -Wl,dynamic_lookup -o .libs/libdspam.7.dylib .libs/libdspam.o .libs/heap.o .libs/diction.o .libs/base64.o .libs/buffer.o .libs/util.o .libs/nodetree.o .libs/error.o .libs/decode.o .libs/pref.o .libs/read_config.o .libs/config_shared.o .libs/bnr.o .libs/hash.o .libs/list.o .libs/external_lookup.o .libs/tokenizer.o .libs/hash_drv.o -lm -install_name /usr/local/lib/libdspam.7.dylib -compatibility_version 8 -current_version 8.0 -Wl,-single_module ld: duplicate symbol _agent_config in .libs/read_config.o and .libs/pref.o collect2: ld returned 1 exit status make[3]: *** [libdspam.la] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all] Error 2 make: *** [all-recursive] Error 1 ---------------------------------------------------------------------- >Comment By: Stevan Bajic (sbajic) Date: 2009-11-14 15:57 Message: Hallo Richard, thanks for posting a status report. You mentioned the other day that you will blog about DSPAM. Can you post a link where the article will be? -- Kind Regards from Switzerland, Stevan Bajić ---------------------------------------------------------------------- Comment By: Richard5 (richard-5) Date: 2009-11-14 15:51 Message: Just wanted to let everyone know that the latest GIT version has done it for me. It works on a Mac on Snow Leopard. I will update http://diymacserver.com with instructions on how to compile, configure and run it. ---------------------------------------------------------------------- Comment By: Stevan Bajic (sbajic) Date: 2009-11-03 00:14 Message: Hallo Richard and Chris Latest GIT should be able to compile under Mac OS X. Big thanks to Richard Valk and to Ceriel Jacobs for helping me getting access to a Mac OS X system and allow me to test there the compile process. Kind Regards from Switzerland Stevan Bajic ---------------------------------------------------------------------- Comment By: Stevan Bajic (sbajic) Date: 2009-10-28 10:57 Message: Hallo Richard, please retry now again with the GIT version and let me know what the outcome was. Kind Regards from Switzerland Stevan Bajic ---------------------------------------------------------------------- Comment By: Richard5 (richard-5) Date: 2009-10-28 07:18 Message: Stevan, I've downloaded the latest version just now and tried to compile it. I was going to attach all the output and config.log files to this bugreport but I can't find the feature where to do it.? Richard Here is the last of the make fase with the error: /bin/sh ../libtool --tag=CC --mode=link gcc -g -arch x86_64 -Wall -Wmissing-prototypes -Wmissing-declarations -rpath '/usr/local/lib' -version-info 7:0:0 -L/usr/local/mysql/lib/mysql -o libdspam.la -rpath /usr/local/lib libdspam.lo heap.lo diction.lo base64.lo buffer.lo util.lo nodetree.lo error.lo decode.lo pref.lo read_config.lo config_shared.lo bnr.lo hash.lo list.lo external_lookup.lo tokenizer.lo -lm mysql_drv.lo -lm -pthread -lmysqlclient -lm -lz -lm -pthread libtool: link: gcc -dynamiclib -Wl,-undefined -Wl,dynamic_lookup -o .libs/libdspam.7.dylib .libs/libdspam.o .libs/heap.o .libs/diction.o .libs/base64.o .libs/buffer.o .libs/util.o .libs/nodetree.o .libs/error.o .libs/decode.o .libs/pref.o .libs/read_config.o .libs/config_shared.o .libs/bnr.o .libs/hash.o .libs/list.o .libs/external_lookup.o .libs/tokenizer.o .libs/mysql_drv.o -L/usr/local/mysql/lib/mysql /usr/local/mysql/lib/mysql/libmysqlclient.dylib /usr/local/mysql/lib/mysql/libz.a -lm -arch x86_64 -pthread -pthread -pthread -install_name /usr/local/lib/libdspam.7.dylib -compatibility_version 8 -current_version 8.0 -Wl,-single_module ld: duplicate symbol _agent_config in .libs/read_config.o and .libs/pref.o collect2: ld returned 1 exit status make[3]: *** [libdspam.la] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all] Error 2 make: *** [all-recursive] Error 1 ---------------------------------------------------------------------- Comment By: Stevan Bajic (sbajic) Date: 2009-10-28 00:43 Message: Hallo Richard, can you try to compile DSPAM from GIT without any additional patch? Does that compile now on Mac OS X? If not, could you attach the whole compile output as an attachment here in this bug report? Kind Regards from Switzerland Stevan Bajic ---------------------------------------------------------------------- Comment By: Stevan Bajic (sbajic) Date: 2009-10-27 20:21 Message: Hallo Richard, can you try to compile DSPAM from GIT without the patch mentioned here but with "--disable-external-lookup". Does it then compile? Kind Regards from Switzerland Stevan Bajic ---------------------------------------------------------------------- Comment By: Stevan Bajic (sbajic) Date: 2009-10-27 13:28 Message: Hallo Richard For the moment: No. I know what the issue is but I don't know jet how to fix it on Mac OS X. I need some time to work on that issue. I wish I would know why the Mac OS X gcc is linking so strange. Kind Regards from Switzerland Stevan Bajic ---------------------------------------------------------------------- Comment By: Richard5 (richard-5) Date: 2009-10-27 13:21 Message: Stevan, anything else you want me to try? ---------------------------------------------------------------------- Comment By: Richard5 (richard-5) Date: 2009-10-14 08:06 Message: Stevan, here is the crash report (added option -g) more /Library/Logs/DiagnosticReports/dspam_2009-10-13-074318_localhost.crashProcess: dspam [34522]Path: /usr/local/bin/dspamIdentifier: dspam Version: ??? (???) Code Type: X86-64 (Native) Parent Process: bash [1105] Date/Time: 2009-10-13 07:43:18.078 +0200 OS Version: Mac OS X 10.6.1 (10B504) Report Version: 6 Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000 Crashed Thread: 0 Dispatch queue: com.apple.main-thread Thread 0 Crashed: Dispatch queue: com.apple.main-thread 0 dspam 0x000000010000b868 set_libdspam_attributes + 656 1 dspam 0x000000010000ab24 daemon_start + 305 2 dspam 0x0000000100000e1d main + 529 3 dspam 0x0000000100000c04 start + 52 Thread 0 crashed with X86 Thread State (64-bit): rax: 0x0000000000000000 rbx: 0x000000004ad41376 rcx: 0x0000000000000000 rdx: 0x0000000000000000 rdi: 0x0000000000000000 rsi: 0x00000001000158dc rbp: 0x00007fff5fbfec40 rsp: 0x00007fff5fbfec00 r8: 0x00000001001fc0a0 r9: 0x00000001001fc0a4 r10: 0x0000000100040f9f r11: 0x000000010002a590 r12: 0x0000000000000000 r13: 0x0000000000000000 r14: 0x0000000000000000 r15: 0x0000000000000000 rip: 0x000000010000b868 rfl: 0x0000000000010246 cr2: 0x0000000000000000 DIYMBP:dspam-3.9.0-BETA12 richard$ more /Library/Logs/DiagnosticReports/dspam_2009-10-14-080331_localhost.crash Process: dspam [43824] Path: /usr/local/bin/dspam Identifier: dspam Version: ??? (???) Code Type: X86-64 (Native) Parent Process: bash [1105] Date/Time: 2009-10-14 08:03:31.650 +0200 OS Version: Mac OS X 10.6.1 (10B504) Report Version: 6 Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000 Crashed Thread: 0 Dispatch queue: com.apple.main-thread Thread 0 Crashed: Dispatch queue: com.apple.main-thread 0 dspam 0x000000010000b868 set_libdspam_attributes + 656 (config_api.c:79) 1 dspam 0x000000010000ab24 daemon_start + 305 (dspam.c:3967) 2 dspam 0x0000000100000e1d main + 529 (dspam.c:182) 3 dspam 0x0000000100000c04 start + 52 Thread 0 crashed with X86 Thread State (64-bit): rax: 0x0000000000000000 rbx: 0x000000004ad569b3 rcx: 0x0000000000000000 rdx: 0x0000000000000000 rdi: 0x0000000000000000 rsi: 0x00000001000158dc rbp: 0x00007fff5fbfec40 rsp: 0x00007fff5fbfec00 r8: 0x00000001001fc0a0 r9: 0x00000001001fc0a4 r10: 0x0000000100041f9f r11: 0x000000010002b590 r12: 0x0000000000000000 r13: 0x0000000000000000 r14: 0x0000000000000000 r15: 0x0000000000000000 rip: 0x000000010000b868 rfl: 0x0000000000010246 cr2: 0x0000000000000000 Binary Images: 0x100000000 - 0x100016fff +dspam ??? (???) <CE1A1F36-0E35-93A5-4EEB-7E86A741E5CD> /usr/local/bin/dspam 0x10001d000 - 0x10003eff7 +libdspam.7.dylib ??? (???) <99F7F88E-54EE-D7EB-8F57-D6C4F69EB5D1> /usr/local/lib/libdspam.7.dylib 0x10004a000 - 0x100093fef +libmysqlclient.16.dylib ??? (???) <AC21BED3-3C62-D7C8-256A-4C804900B0FC> /usr/local/mysql/lib/mysql/libmysqlclient.16.dylib 0x7fff5fc00000 - 0x7fff5fc3bdef dyld 132.1 (???) <B633F790-4DDB-53CD-7ACF-2A3682BCEA9F> /usr/lib/dyld 0x7fff844fc000 - 0x7fff84500ff7 libmathCommon.A.dylib ??? (???) <95718673-FEEE-B6ED-B127-BCDBDB60D4E5> /usr/lib/system/libmathCommon.A.dylib 0x7fff865c0000 - 0x7fff8677eff7 libSystem.B.dylib ??? (???) <66102D4E-6C8B-77D0-6766-2A1788B20C6F> /usr/lib/libSystem.B.dylib 0x7fffffe00000 - 0x7fffffe01fff libSystem.B.dylib ??? (???) <66102D4E-6C8B-77D0-6766-2A1788B20C6F> /usr/lib/libSystem.B.dylib If you need more info or changes let me know. Richard ---------------------------------------------------------------------- Comment By: Stevan Bajic (sbajic) Date: 2009-10-13 12:19 Message: You should at least add "-g". You can read here -> http://gcc.gnu.org/onlinedocs/gcc/Debugging-Options.html about other available options. ---------------------------------------------------------------------- Comment By: Richard5 (richard-5) Date: 2009-10-13 12:11 Message: Stevan, dspam was compiled with --enable-debug and --enable-verbose-debug which compiler options would you want me to use? ---------------------------------------------------------------------- Comment By: Stevan Bajic (sbajic) Date: 2009-10-13 11:35 Message: Can you compile with debug turned on (in DSPAM and on GCC level) and attach a backtrace when DSPAM is crashing? ---------------------------------------------------------------------- Comment By: Richard5 (richard-5) Date: 2009-10-13 07:47 Message: I've got it compiled and it will start but when (I think, properly) configured it dspam segfaults. I've tried different times and the result is the same, looks like mysql related but I'm no expert. Here is the crash report: Process: dspam [34522] Path: /usr/local/bin/dspam Identifier: dspam Version: ??? (???) Code Type: X86-64 (Native) Parent Process: bash [1105] Date/Time: 2009-10-13 07:43:18.078 +0200 OS Version: Mac OS X 10.6.1 (10B504) Report Version: 6 Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000 Crashed Thread: 0 Dispatch queue: com.apple.main-thread Thread 0 Crashed: Dispatch queue: com.apple.main-thread 0 dspam 0x000000010000b868 set_libdspam_attributes + 656 1 dspam 0x000000010000ab24 daemon_start + 305 2 dspam 0x0000000100000e1d main + 529 3 dspam 0x0000000100000c04 start + 52 Thread 0 crashed with X86 Thread State (64-bit): rax: 0x0000000000000000 rbx: 0x000000004ad41376 rcx: 0x0000000000000000 rdx: 0x0000000000000000 rdi: 0x0000000000000000 rsi: 0x00000001000158dc rbp: 0x00007fff5fbfec40 rsp: 0x00007fff5fbfec00 r8: 0x00000001001fc0a0 r9: 0x00000001001fc0a4 r10: 0x0000000100040f9f r11: 0x000000010002a590 r12: 0x0000000000000000 r13: 0x0000000000000000 r14: 0x0000000000000000 r15: 0x0000000000000000 rip: 0x000000010000b868 rfl: 0x0000000000010246 cr2: 0x0000000000000000 Binary Images: 0x100000000 - 0x100016fff +dspam ??? (???) <A3DA8F43-B8C0-B9C1-56D6-C6E2C149A15C> /usr/local/bin/dspam 0x10001c000 - 0x10003dff7 +libdspam.7.dylib ??? (???) <9F61FF49-9C50-66F2-39EA-DAE91F25C3D2> /usr/local/lib/libdspam.7.dylib 0x100044000 - 0x10008dfef +libmysqlclient.16.dylib ??? (???) <AC21BED3-3C62-D7C8-256A-4C804900B0FC> /usr/local/mysql/lib/mysql/libmysqlclient.16.dylib 0x7fff5fc00000 - 0x7fff5fc3bdef dyld 132.1 (???) <B633F790-4DDB-53CD-7ACF-2A3682BCEA9F> /usr/lib/dyld 0x7fff844fc000 - 0x7fff84500ff7 libmathCommon.A.dylib ??? (???) <95718673-FEEE-B6ED-B127-BCDBDB60D4E5> /usr/lib/system/libmathCommon.A.dylib 0x7fff865c0000 - 0x7fff8677eff7 libSystem.B.dylib ??? (???) <66102D4E-6C8B-77D0-6766-2A1788B20C6F> /usr/lib/libSystem.B.dylib 0x7fffffe00000 - 0x7fffffe01fff libSystem.B.dylib ??? (???) <66102D4E-6C8B-77D0-6766-2A1788B20C6F> /usr/lib/libSystem.B.dylib Let me know if there is anything I can do to help. Richard ---------------------------------------------------------------------- Comment By: Stevan Bajic (sbajic) Date: 2009-10-12 18:56 Message: Rome was not build in one day. Take your time and test as much and as deep you need to test and let us know if the issue is solved. I am going to remind you again in +/- one week about that issue. Kind Regards from Switzerland Stevan Bajic ---------------------------------------------------------------------- Comment By: chris (interplanetaryc) Date: 2009-10-12 18:43 Message: Thanks. It now compiles without error, but it'll take me some time to test if it actually works. ---------------------------------------------------------------------- Comment By: Stevan Bajic (sbajic) Date: 2009-10-12 12:43 Message: Hallo Chris Would the patch below fix your issue (sorry I don't have any Mac OS X where I could test that issue): ----- --- a/src/read_config.h +++ b/src/read_config.h @@ -1,4 +1,4 @@ -/* $Id: read_config.h,v 1.92 2009/06/27 04:03:13 sbajic Exp $ */ +/* $Id: read_config.h,v 1.921 2009/10/12 12:38:51 sbajic Exp $ */ /* DSPAM @@ -35,6 +35,10 @@ config_t read_config (const char *path); int configure_algorithms (DSPAM_CTX * CTX); agent_pref_t pref_config(void); +#if defined(__GNUC__) && defined(__APPLE__) +static config_t agent_config; +#else config_t agent_config; +#endif #endif /* _READ_CONFIG_H */ ----- ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=1126467&aid=2864743&group_id=250683 ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Dspam-devel mailing list Dspam-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspam-devel