[sword-devel] Compiling sword

Will Thimbleby will at thimbleby.net
Mon Apr 18 11:58:35 MST 2005

Great that's fixed my problem. Thanks. I've compiled sword, but there 
remain a couple of problems.

When finally finishing compiling both the i386 and ppc architectures 
are specified. It works if I just remove the -arch i386, but I do that 
by hand,

/bin/sh ../libtool --mode=link g++ -ftemplate-depth-25 -DCURLAVAILABLE 
-g -O2   -o libsword.la -rpath /usr/local/lib -release 
swkey.lo listkey.lo ...... flatapi.lo  -lcurl -L/usr/lib -lcurl -arch 
i386 -arch ppc -lz -lssl -lcrypto -lz  -lz


g++ -dynamiclib -arch i386 -arch ppc -single_module -flat_namespace 
-undefined suppress -o .libs/libsword-  .libs/swkey.o 
.libs/listkey.o .....

and then when it comes to compile the tests I get an undefined symbol

g++ -ftemplate-depth-25 -DCURLAVAILABLE -g -O2 -o .libs/testlib 
testlib.o -Wl,-bind_at_load  ./lib/.libs/libsword- 
-L/usr/lib -lcurl -lssl -lcrypto -lz
ld: Undefined symbols:

On 17 Apr 2005, at 12:19 am, Daniel Glassey wrote:

> Daniel Glassey wrote:
>> Troy A. Griffitts wrote:
>>> Will,
>>>     It might be the version of automake/autoconf that you have on 
>>> your system.  But since you mention a link error, does that mean 
>>> that you are able to run ./configure and make even thought the 
>>> autogen.sh script thows these warnings?  If so, could you post the 
>>> link error?  I don't know much about the build system (dglasseys is 
>>> the resident expert in that area) but I only get 1 warning when I 
>>> run ./autogen.sh   Below is my version information.  It you're able 
>>> to update your automake/autoconf packages on your mac, maybe that 
>>> might help.  Hope we can get ya working again.
>> updating isn't a solution - it should work with whatever comes with 
>> the system.
>> I've replicated the problem and it exists in revision 1770 (before 
>> the changes I made recently so reverting that won't help). It doesn't 
>> exist in 1674 and I haven't pinned it down more than that yet.
>> or at least this bit appears
>>  >> lib/Makefile.am:18: libsword_la_SOURCES was already defined in
>>  >> condition TRUE, which implies condition WITHCURL_TRUE
>>  >>
>>  >> ...
>> Regards,
>> Daniel
> Found it - someone added something to the build system without knowing 
> what they were doing in rev 1689 ;)
> Regards,
> Daniel
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page

More information about the sword-devel mailing list