Bug Tracker item #2770990, was opened at 2009-04-17 18:24
Message generated for change (Comment added) made by sbajic
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1126467&aid=2770990&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: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: chris (interplanetaryc)
Assigned to: Nobody/Anonymous (nobody)
Summary: Duplicate symbol _agent_config when compiling on Mac OS X

Initial Comment:
The following error prevents compilation on Mac OS X 10.5 using gcc 4.0.1

ld: duplicate symbol _agent_config in .libs/read_config.o and .libs/pref.o

A fix is possible by declaring agent_config as a static type in read_config.h

Diff attached.

----------------------------------------------------------------------

>Comment By: Stevan Bajic (sbajic)
Date: 2009-06-25 21:47

Message:
Hallo Chris

Thanks for the patch. Maybe better would be to not include read_config.h
in prefs.c if the header file is already included? Could you check if the
patch below fixes the issue on Mac OS X?

diff --git a/src/pref.c b/src/pref.c
index 9da6139..1a24e83 100644
--- a/src/pref.c
+++ b/src/pref.c
@@ -43,7 +43,10 @@
 #include "config.h"
 #include "util.h"
 #include "language.h"
+
+#ifndef _READ_CONFIG_H
 #include "read_config.h"
+#endif

 /*
  *  _ds_pref_aggregate: aggregate system preferences and user
preferences



Kind Regards

Stevan Bajic

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1126467&aid=2770990&group_id=250683

------------------------------------------------------------------------------
_______________________________________________
Dspam-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspam-devel

Reply via email to