Created attachment 327392 [details] proposed patch, contributed by phuang Description of problem: Develop with libtranslate-devel has complained that there is undefined symbols (libtranslate functions), from generic.so. The problem might not be appearing if build with `pkg-config --libs --cflags libtranslate` on pure C sources, but it will happen when I wrap it with 'swig' and compile. e.g. wrap libtranslate into python with swig. Version-Release number of selected component (if applicable): 0.99-15 How reproducible: Always. Steps to Reproduce: 1. Build something with libtranslate-devel. (pkg-config --libs --cflags libtranslate). 2. Run the binary. 3. Check results. Actual results: Undefined symbols, one of libtranslate functions. Expected results: All libtranslate functions could be used. Additional info: 'swig' is wrapper which wraps C sources to many other programming langs. http://www.swig.org/
libtranslate-0.99-16.fc10 has been submitted as an update for Fedora 10. http://admin.fedoraproject.org/updates/libtranslate-0.99-16.fc10
I'm not sure if this is related but I am using libtranslate in Python with ctypes and I get the following error: (process:13241): libtranslate-WARNING **: unable to load module "/usr/lib/libtranslate/modules/generic.so": /usr/lib/libtranslate/modules/generic.so: undefined symbol: translate_ascii_strcase_equal 0.99-16 does not solve this problem. You can replicate this with the following Python code: from ctypes import * import ctypes.util lt = cdll.LoadLibrary(ctypes.util.find_library("translate")) lt.translate_init.argtypes = [c_int] lt.translate_init.restype = c_int err = c_int() if not lt.translate_init(err): print "Unable to initialise libtranslate: %s" % err
libtranslate-0.99-16.fc10 has been pushed to the Fedora 10 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update libtranslate'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2008-11504
OK here is the problem and some patches to fix it. 1) With the change to Makefile.am we need to redo all of the things related to automake, with the current build Makefile.am doesn't filter down into Makefile.in, etc. So the patch is not being built. 2) We need to build lintranslate.la before the subdirectory so SUBDIR = . modules solves that. I build a local RPM and its solves my issues with ctypes. Patches to follow.
Created attachment 327565 [details] Updated .spec file to rerun automake and friends
Created attachment 327566 [details] Updates fix-modules patch Adds a change to src/Makefiles.am to ensure that we build src/ before subdirectories.
(In reply to comment #6) Thanks a lot, Dwayne. Your reworked patch works.
It is needed to add BR libtool for F10 . Unfortunately, under rawhide (F11) something goes wrong (libtool-related), see: http://koji.fedoraproject.org/koji/getfile?taskID=1016034&name=build.log
libtranslate-0.99-17.fc10 has been submitted as an update for Fedora 10. http://admin.fedoraproject.org/updates/libtranslate-0.99-17.fc10
Well, under rawhide (F11) "libtoolize" also required before other autotools.
libtranslate-0.99-17.fc10 has been pushed to the Fedora 10 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update libtranslate'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2008-11774
libtranslate-0.99-17.fc10 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report.