Opened 10 years ago

Closed 8 years ago

#72 closed defect (fixed)

Configure errors for Cbc-2.2.2 on Fedora11 (64 bits)

Reported by: fmargot Owned by: andreasw
Priority: minor Component: configuration tests
Version: 0.5 Keywords:
Cc: fmargot@…

Description

The following (non fatal) errors are reported when running

../configure -C

for compiling Cbc-2.2.2.

configure:2482: gcc -c -g -O2  conftest.c >&5
conftest.c:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'me'
configure:2488: $? = 1
configure: failed program was:
| #ifndef __cplusplus
|   choke me
| #endif
configure:3419: g++ -c -g -O2  conftest.cc >&5
conftest.cc: In function 'int main()':
conftest.cc:13: error: 'exit' was not declared in this scope
configure:3425: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME "Cbc"
| #define PACKAGE_TARNAME "cbc"
| #define PACKAGE_VERSION "2.2.2"
| #define PACKAGE_STRING "Cbc 2.2.2"
| #define PACKAGE_BUGREPORT "coin-cbc@lists.coin-or.org"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| exit (42);
|   ;
|   return 0;
| }
configure:3374: g++ -c -g -O2  conftest.cc >&5
conftest.cc:9: error: 'void std::exit(int)' should have been declared inside 'std'
configure:6630: gcc -E  conftest.c
conftest.c:14:28: error: ac_nonexistent.h: No such file or directory

I attach the main config.log file

Attachments (1)

config.log (41.3 KB) - added by fmargot 10 years ago.

Download all attachments as: .zip

Change History (4)

Changed 10 years ago by fmargot

comment:1 follow-up: Changed 10 years ago by andreasw

hHi Francois,

I think those "errors" are benign, I have looked at the "exit" part before. The configure tests are meant to create also errors, like in the first example, where it is essentially trying to see if cplusplus is defined automatically by the compiler.

Why do these messages worry you?

Andreas

comment:2 in reply to: ↑ 1 Changed 10 years ago by fmargot

Replying to andreasw:

hHi Francois,

I think those "errors" are benign, I have looked at the "exit" part before. The configure tests are meant to create also errors, like in the first example, where it is essentially trying to see if cplusplus is defined automatically by the compiler.

As I said, these are non-fatal errors, but since no such error occur on Fedora 10 ix86 32-bits, I thought that maybe something can be done to remove them.

Why do these messages worry you?

How would I know what is worrysome or not? That is your job :->

Francois

comment:3 Changed 8 years ago by lou

  • Resolution set to fixed
  • Status changed from new to closed

I'm with Andreas. Never look inside config.log, it'll just upset you. :-) More seriously, 64-bit configure has worked fine for me on Fed12 and Fed14. I'm going to claim this is fixed.

Note: See TracTickets for help on using tickets.