[bt-devel] [ bibletime-Bugs-1954606 ] ./configure

SourceForge.net noreply at sourceforge.net
Sat May 10 04:45:16 MST 2008


Bugs item #1954606, was opened at 2008-04-30 03:25
Message generated for change (Comment added) made by mgruner
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100954&aid=1954606&group_id=954

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: Backend / SWORD
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: William Streeter (quimaxw)
>Assigned to: Martin Gruner (mgruner)
Summary: ./configure

Initial Comment:
./configure --prefix=/opt/kde

This complains that it cannot check the Sword version.

conftest.cpp:8: error: second argument of 'int main(int, char*)' should be 'char **'
conftest.cpp:8: warning: unused parameter 'argc'
conftest.cpp:8: warning: unused parameter 'argv'
configure:32796: $? = 1
configure: failed program was:
configure:32803: error: Failed to compile the test program to check the Sword version! Please have a look at config.log! Report this to the Bib
leTime developers!

Could this be due to Gcc 4.3?

Installed on my system are:
Sword 1.5.10
gcc 4.3.0
clucene 0.9.20
kde 3.5.9

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

>Comment By: Martin Gruner (mgruner)
Date: 2008-05-10 13:45

Message:
Logged In: YES 
user_id=169722
Originator: NO

Not sure, I don't have gcc 4.3 but saw the error as well. Might have been
caused by autotools swallowing []? I changed this to char** argv in CVS
(file sword.m4), that should work. Will be in the next released 1.6.x, if
there comes any.

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

Comment By: Eeli Kaikkonen (eelik)
Date: 2008-05-10 09:49

Message:
Logged In: YES 
user_id=1031029
Originator: NO

Actually that workaround by Deji seems to be not a workaround but a real
fix. Probably gcc 4.3 is stricter with that code and the original is just
wrong.

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

Comment By: Nobody/Anonymous (nobody)
Date: 2008-05-10 03:05

Message:
Logged In: NO 

As a workaround goto line 32785 in configure, and change,

"int main(int argc, char* argv) {"

to,

"int main(int argc, char* argv[]) {"



Deji

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100954&aid=1954606&group_id=954



More information about the bt-devel mailing list