Bug Tracker item #2864743, was opened at 2009-09-23 05:51
Message generated for change (Settings changed) 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: Open
Resolution: None
Priority: 5
Private: No
Submitted By: chris (interplanetaryc)
Assigned to: Nobody/Anonymous (nobody)
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-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

Reply via email to