Dear all,<br><br>
I'm recently migrating a OpenACS 3.2.5 website to a Fedora Core 3 server<br>
My problem was PostgreSQL compilation.<br>
Everytime I run <span style="font-family: courier new,monospace; font-weight: bold;">./configure</span><span style="font-weight: bold;"></span>, the compilation ended with these lines:<br>
<br style="font-family: courier new,monospace;">
<div style="margin-left: 40px;"><span style="font-family: courier new,monospace; font-style: italic;">(some lines skipped)...</span><br style="font-style: italic;">
<span style="font-family: courier new,monospace;"><span style="font-style: italic;">.......................</span><br style="font-style: italic;">
checking for preprocessor stringizing operator... yes<br>
checking for signed types... no<br>
checking for volatile... no<br>
checking whether struct tm is in sys/time.h or time.h... sys/time.h<br>
checking for tm_zone in struct tm... no<br>
checking for tzname... no</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">checking for union semun... no</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">checking for struct sockaddr_un... no</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">checking for int timezone... no</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">checking types of arguments for accept()... configure: error: could not determine argument types</span><br>
</div>
<br>
I searched the last line on google and found nothing applicable.<br>
I went to <span style="font-weight: bold;">config.log</span> and see these lines:<br>
<br>
<div style="margin-left: 40px;"><span style="font-family: courier new,monospace; font-style: italic;">(some lines skipped)...</span><br style="font-style: italic;">
<span style="font-family: courier new,monospace; font-style: italic;">.......................</span><br style="font-style: italic;">
<span style="font-family: courier new,monospace;">configure:3122: gcc -o conftest -O2     conftest.c -lreadline  1>&5</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">In file included from configure:3111:</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">confdefs.h:7: error: syntax error before numeric constant</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">confdefs.h:9: error: missing terminating " character</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">configure: failed program was:</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">#line 3111 "configure"</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">#include "confdefs.h"</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">/* Override any gcc2 internal prototype to avoid an error.  */</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">/* We use char because int might match the return type of a gcc2</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    builtin and then its argument prototype would still apply.  */</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">char readline();</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">int main() {</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">readline()</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">; return 0; }<br>
configure:3122: gcc -o conftest -O2     conftest.c -ledit -ltermcap  1>&5<br>
In file included from configure:3111:<br>
confdefs.h:7: error: syntax error before numeric constant<br>
confdefs.h:9: error: missing terminating " character<br>
configure: failed program was:<br>
#line 3111 "configure"<br>
#include "confdefs.h"<br>
/* Override any gcc2 internal prototype to avoid an error.  */<br>
/* We use char because int might match the return type of a gcc2<br>
    builtin and then its argument prototype would still apply.  */<br>
char readline();<br>
<br>
int main() {<br>
readline()<br>
; return 0; }<br>
configure:3122: gcc -o conftest -O2     conftest.c -lreadline -lncurses  1>&5<br>
In file included from configure:3111:<br>
confdefs.h:7: error: syntax error before numeric constant<br>
confdefs.h:9: error: missing terminating " character<br>
configure: failed program was:<br>
#line 3111 "configure"<br>
#include "confdefs.h"<br>
/* Override any gcc2 internal prototype to avoid an error.  */<br>
/* We use char because int might match the return type of a gcc2<br>
    builtin and then its argument prototype would still apply.  */<br>
char readline();<br>
<br>
int main() {<br>
readline()<br>
; return 0; }<br style="font-style: italic;">
</span><span style="font-family: courier new,monospace; font-style: italic;">(some more similar sections for 3122 skipped)...</span><br style="font-style: italic;">

<span style="font-family: courier new,monospace; font-style: italic;">................................................</span><br>

<span style="font-family: courier new,monospace;"></span><span style="font-family: courier new,monospace;">configure:3149: checking for library containing using_history<br>
configure:3167: gcc -o conftest -O2     conftest.c  1>&5<br>
In file included from configure:3156:<br>
confdefs.h:7: error: syntax error before numeric constant<br>
confdefs.h:9: error: missing terminating " character<br>
configure: failed program was:<br>
#line 3156 "configure"<br>
#include "confdefs.h"<br>
/* Override any gcc2 internal prototype to avoid an error.  */<br>
/* We use char because int might match the return type of a gcc2<br>
    builtin and then its argument prototype would still apply.  */<br>
char using_history();<br>
<br>
int main() {<br>
using_history()<br>
; return 0; }<br>
configure:3189: gcc -o conftest -O2     conftest.c -lhistory   1>&5<br>
In file included from configure:3178:<br>
confdefs.h:7: error: syntax error before numeric constant<br>
confdefs.h:9: error: missing terminating " character<br>
configure: failed program was:<br>
#line 3178 "configure"<br>
#include "confdefs.h"<br>
/* Override any gcc2 internal prototype to avoid an error.  */<br>
/* We use char because int might match the return type of a gcc2<br>
    builtin and then its argument prototype would still apply.  */<br>
char using_history();<br>
<br>
int main() {<br>
using_history()<br>
; return 0; }<br>
</span><span style="font-family: courier new,monospace; font-style: italic;">(many more syntax error. I skipped)...</span><br style="font-style: italic;">


<span style="font-family: courier new,monospace; font-style: italic;">......................................</span><span style="font-family: courier new,monospace;"></span><span style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;">
</span><span style="font-family: courier new,monospace;"></span></div>

<span style="font-family: courier new,monospace;">
</span><br>
There are so many lines about syntax error.<br>
I think it may be the problem of gcc version or some library may be missed.<br>
What can I do? Or is there any other possible cause?<br>
<br>
Thanks a lot<br>
<br>
<br>
Koala Yeung<br>