Bug Tracker item #2940224, was opened at 2010-01-26 14:57
Message generated for change (Settings changed) made by sbajic
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1126467&aid=2940224&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: Jan Ondrej (ondrejj)
Assigned to: Stevan Bajic (sbajic)
Summary: undefined reference to `_ds_pref_new'

Initial Comment:
When trying to load libdspam.so.7 in python, I am getting undefined symbol 
error message. Same problem can be simulated this way:

[ondr...@work ~]$ ld /usr/lib/libdspam.so.7
ld: warning: cannot find entry symbol _start; not setting start address
/usr/lib/libdspam.so.7: undefined reference to `_ds_pref_new'

or:

[ondr...@work ~]$ python -c "from ctypes import *;CDLL('libdspam.so.7')"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.6/ctypes/__init__.py", line 353, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: /usr/lib/libdspam.so.7: undefined symbol: _ds_pref_new

Also I can't compile src/example.c from dspam sources (may be similar problem).

Why this symbol was moved from dynamic library to pref.o, which is not linked 
statically in dspam binary?


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

>Comment By: Stevan Bajic (sbajic)
Date: 2010-01-27 21:42

Message:
Hallo Jan

The issue should be fixed in latest DSPAM GIT. Thanks for reporting this
issue.

-- 
Kind Regards from Switzerland,

Stevan Bajić

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

Comment By: Stevan Bajic (sbajic)
Date: 2010-01-27 17:11

Message:
Hallo Jan,

the error is not the Fedora 12 package. It is an error that I introduced
while fixing the compile error on Mac OS X. I have a patch for the issue
but I first need to get confirmation that the patch does not break
compilation on Mac OS X. That will probably happen today. If everything is
okay then expect tomorrow to see the error fixed in GIT.

-- 
Kind Regards from Switzerland,

Stevan Bajić

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

Comment By: Jan Ondrej (ondrejj)
Date: 2010-01-26 15:22

Message:
I think you need to add pref.c into src/Makefile.am. I think attached patch
is only partial, may be you can remove pref.o from dspam binary linking,
but at least I can load libdspam.so.7.

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

Comment By: Jan Ondrej (ondrejj)
Date: 2010-01-26 15:00

Message:
I use dspam Fedora 12 package, which is compiled with these options (from
spec file):

%configure \
    --enable-long-usernames \
    --enable-syslog \
    --enable-large-scale \
    --disable-domain-scale \
    --disable-homedir \
    --enable-virtual-users \
    --enable-preferences-extension \
    --with-mysql-includes='%{_includedir}/mysql' \
    --with-mysql-libraries='%{_libdir}/mysql' \   
    --with-pgsql-includes='%{_includedir}/pgsql' \
    --with-pgsql-libraries='%{_libdir}' \
    --enable-daemon \
    --enable-external-lookup \
    --with-storage-driver='hash_drv,mysql_drv,pgsql_drv,sqlite3_drv' \
    --with-dspam-home='%{dspam_homedir}' \
    --with-dspam-owner='%{dspam_user}' \  
    --with-dspam-group='%{dspam_group}' \ 
    --with-dspam-home-group='%{dspam_group}' \
    --with-dspam-mode='%{dspam_mode}' \
    --with-logdir='%{dspam_logdir}' \  
    --sysconfdir='%{dspam_confdir}'    
%{__make} OPTIMIZE="%{optflags} -fPIC -DPIC"


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

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

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Dspam-devel mailing list
Dspam-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspam-devel

Reply via email to