Bug Tracker item #2864743, was opened at 2009-09-23 05:51 Message generated for change (Comment added) made by richard-5 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: Open Resolution: None 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: 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 ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Dspam-devel mailing list Dspam-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspam-devel