[Ace-users] [ace-bugs] [ACE Autoconf setup]: [ACE_HAS_MUTEX_TIMEOUTS ./configure error under LINUX]

korf.peter at arcor.de korf.peter at arcor.de
Mon Jul 30 08:02:18 CDT 2007


Hi,
ACE VERSION: 5.5.9

HOST MACHINE and OPERATING SYSTEM:
Linux 2.6.18.8-0.3-default #1 SMP
x86_64 x86_64 x86_64 GNU/Linux
SuSE 10.2

COMPILER NAME AND VERSION (AND PATCHLEVEL):
gcc (GCC) 4.1.2 20061115 (prerelease) (SUSE Linux)

SYNOPSIS:
ACE_HAS_MUTEX_TIMEOUTS will not defined using the ./configure script due a compiling error.

DESCRIPTION:
The function in the ./configure script which checks for ACE_HAS_MUTEX_TIMEOUTS fails because 
of (part of config.log): 
...
configure:100395: checking for mutex timeouts
configure:100602: g++ -o conftest -g -O2 -pthread -pipe   conftest.cpp -lrt -ldl  >&5
conftest.cpp: In function 'int main()':
conftest.cpp:248: error: 'exit' was not declared in this scope
conftest.cpp:254: error: 'exit' was not declared in this scope
conftest.cpp:260: error: 'exit' was not declared in this scope
configure:100605: $? = 1
configure: program exited with status 1
configure: failed program was:
....
exit() is defined in header file <stdlib.h>, but this is missing in conftest.cpp.
After adding this header file to the test program, the check is OK. 

REPEAT BY:
run ../configure under linux

PATCH:
--- configure.ac.orig   2007-05-24 05:45:22.000000000 +0000
+++ configure.ac        2007-07-30 11:40:09.000000000 +0000
@@ -7275,6 +7275,7 @@
 #include <errno.h>
 #include <sys/time.h>

+#include <stdlib.h>
 #ifndef ACE_LACKS_UNISTD_H
 # include <unistd.h>
 #endif


IMPORTANT NOTES:
This is only tested on one system under one operating system!

(Don't forget to run autoheader and autoconf after applying the patches)

Thanks for developing and maintaing ACE,
Peter 


Viel oder wenig? Schnell oder langsam? Unbegrenzt surfen + telefonieren
ohne Zeit- und Volumenbegrenzung? DAS TOP ANGEBOT FÜR ALLE NEUEINSTEIGER
Jetzt bei Arcor: günstig und schnell mit DSL - das All-Inclusive-Paket
für clevere Doppel-Sparer, nur  34,95 €  inkl. DSL- und ISDN-Grundgebühr!
http://www.arcor.de/rd/emf-dsl-2



More information about the Ace-users mailing list