Bug Tracker item #2859795, was opened at 2009-09-16 07:41
Message generated for change (Settings changed) made by sbajic
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1126467&aid=2859795&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: Invalid
Priority: 5
Private: No
Submitted By: Richard5 (richard-5)
Assigned to: Stevan Bajic (sbajic)
Summary: Can't build 3.9.0 beta1 on OSX 10.6

Initial Comment:
I encountered a small problem when trying to compile beta1 on OSX Snow Leopard 
and could not find any other reference to this problem on the bug tracker. It 
looks like something is going wrong during make as I don't see any compilation 
going on and it just moves into the linker and complaining about libraries. I 
was able to compile ALPHA2 with the fix.

I've attached the output of ./configure and make (it looks like configure is 
run again during make????)

Richard

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

>Comment By: Stevan Bajic (sbajic)
Date: 2009-10-12 20:37

Message:
Okay. Then I am going to close this bug since the bug was about not working
./configure. The other bug regarding double symbols is better tracked in
#2864743. If you should have any issues regarding the double symbols then
feel free to post your questions/updates/success story/etc in #2864743

Kind Regards from Switzerland

Stevan Bajic


btw: Thanks for testing out the patch from #2864743.

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

Comment By: Richard5 (richard-5)
Date: 2009-10-12 20:32

Message:
Again, sorry missed that one as well. I can confirm that fix 2864743 is
working for compilation and execution of the dspam binary. I do need to put
some more actual test through it to validate it actually works. Give me a
few days and I'll post some more feedback.

Thanks again for the help Stevan!

Richard



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

Comment By: Stevan Bajic (sbajic)
Date: 2009-10-12 20:25

Message:
The fix in #2770990 is not going to be applied to DSPAM since it breaks all
other platforms (Linux, FreeBSD, Solaris, etc). The only fix that could
flow into DSPAM would be the one mentioned in #2864743. Can you confirm
that the fix in #2864743 is fixing the compile issue on Mac OS X and that
fix #2864743 is functional in production?

Kind Regards from Switzerland

Stevan Bajic

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

Comment By: Richard5 (richard-5)
Date: 2009-10-12 20:18

Message:
Yes you can close the bug but you still need to include the fix 2770990
from my earlier comment, otherwise it does not work. 

I'm sorry I missed the new compilation instructions, my mistake!

Richard

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

Comment By: Stevan Bajic (sbajic)
Date: 2009-10-12 20:10

Message:
Please see this here:
https://sourceforge.net/tracker/?func=detail&atid=1126467&aid=2864743&group_id=250683

Regarding your first issue:
You have not read the DSPAM wiki entry regarding how to compile DSPAM.
There you should see that you need to execute autogen.sh.

Can I now close this bug report?

Kind Regards from Switzerland

Stevan Bajic

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

Comment By: Richard5 (richard-5)
Date: 2009-10-12 20:07

Message:
Allright, the fix from 2770990 works!!

See:
http://sourceforge.net/tracker/index.php?func=detail&aid=2770990&group_id=250683&atid=1126467

This change makes it work!

diff --git a/src/read_config.h b/src/read_config.h
index 8502af4..666eb3f 100644
--- a/src/read_config.h
+++ b/src/read_config.h
@@ -35,6 +35,6 @@ config_t read_config (const char *path);
 int configure_algorithms (DSPAM_CTX * CTX);
 
 agent_pref_t pref_config(void);
-config_t agent_config;
+static config_t agent_config;
 
 #endif /* _READ_CONFIG_H */

Thanks

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

Comment By: Richard5 (richard-5)
Date: 2009-10-12 19:57

Message:
Sorry, did not work. Make failed again, though different error.

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

I'm going to look if I can solve this by applying fix 2770990 which worked
for the same error on ALPHA




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

Comment By: Stevan Bajic (sbajic)
Date: 2009-10-12 11:37

Message:
Hallo Richard

Can you try this and tell me if that works?
------
# export MACOSX_DEPLOYMENT_TARGET=10.6
# ./autogen.sh
# CFLAGS="-arch x86_64" CXXFLAGS="-arch x86_64" LDFLAGS="" \
./configure \
  --with-storage-driver=mysql_drv \
  --with-mysql-includes=/usr/local/mysql/include/mysql \
  --with-mysql-libraries=/usr/local/mysql/lib/mysql \
  --enable-preferences-extension \
  --with-dspam-home-owner=_dspam \
  --with-dspam-home-group=_postfix \
  --with-dspam-home=/usr/local/var/dspam \
  --enable-long-usernames \
  --with-dspam-group=postfix \
  --enable-domain-scale \
  --enable-virtual-users \
  --enable-debug \
  --enable-verbose-debug \
  --enable-daemon \
  --enable-syslog \
  --disable-large-scale \
  --disable-external-lookup \
  --disable-clamav \
  --disable-homedir \
  --disable-bnr-debug
------


Kind Regards from Switzerland

Stevan Bajic

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1126467&aid=2859795&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