Bug Tracker item #2940224, was opened at 2010-01-26 15:57
Message generated for change (Settings changed) made by itetcu
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: Open
Resolution: None
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: Jan Ondrej (ondrejj)
Date: 2010-01-26 16: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 16: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