On Thu, Jan 18, 2001 at 03:45:31PM +0100, Lars J. Aas wrote:
: On Thu, Jan 18, 2001 at 03:13:02PM +0100, Akim Demaille wrote:
: : Lars, does it work as expected? It works like a charm with g++:
:
: It didn't do any difference for me, but it wasn't me who had the problem.
: I'm waiting for feedback, if any, from the one who sent me the config.log.
It still failed for him with '' as the first choice, and it still triggered
on the same setting with the same warning:
configure(3302) : warning C4273: 'exit' : inconsistent dll linkage. dllexport assumed.
If you doubled the number of delarations, prefixing half of them with
__declspec(dllimport), the linkage setting might become correct, but I
really don't see why there's a need for the declaration at all, or why
people shouldn't have the option to avoid the legacy exit prototype.
Lars J
--
Innovation is one percent inspiration and ninetynine percent perspiration,
and in my case; twice that... -- Norville Barnes, `The Hudsucker Proxy'
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure 2.49c, executed with
> ./configure
## ---------- ##
## Platform. ##
## ---------- ##
hostname = MRROVIK
uname -m = i686
uname -r = 1.1.6(0.30/3/2)
uname -s = CYGWIN_NT-4.0
uname -v = 2000-11-21 21:00
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo =
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH =
/usr/local/bin:/usr/bin:/bin:/cygdrive/c/ntapps/oracle/bin:/cygdrive/c/WINNT/system32:/cygdrive/c/WINNT:/cygdrive/c/ntapps/TGS/OIV2.5.2/Doc:/cygdrive/d/ntapps/ULTRAE~1:/cygdrive/d/ntapps/polytrans:/cygdrive/d/ntapps/polytrans/vcplugin:/cygdrive/d/ntapps/tmake/bin:/cygdrive/d/ntapps/sim/soqt
coin
sdk/dll:/cygdrive/d/ntapps/qt/lib:/cygdrive/d/ntapps/doxygen/bin:/cygdrive/d/ntapps/emacs-20.6/bin:/cygdrive/d/ntapps/Rational/common:/cygdrive/c/ntapps/TGS/OIV2.6/Program:/cygdrive/c/ntapps/TGS/OIV2.6/Doc:/cygdrive/d/soqt/bin:/cygdrive/d/ntapps/doxygen/bin:/cygdrive/d/ntapps/ematrix8/lib/winnt:/cygdrive/d/workspace_er/genlibs/sim3/bin:/cygdrive/d/workspace_er/release/plugins:/cygdrive/d/qt/bin:/cygdrive/d/ntapps/qt/bin:/cygdrive/d/ntapps/Microsoft
Visual Studio/Common/Tools/WinNT:/cygdrive/d/ntapps/Microsoft Visual
Studio/Common/MSDev98/Bin:/cygdrive/d/ntapps/Microsoft Visual
Studio/Common/Tools:/cygdrive/d/ntapps/Microsoft Visual Studio/VC98/bin
## ------------ ##
## Core tests. ##
## ------------ ##
configure:1243: checking build system type
configure:1261: result: i686-pc-cygwin
configure:1268: checking host system type
configure:1282: result: i686-pc-cygwin
configure:1289: checking target system type
configure:1303: result: i686-pc-cygwin
configure:1329: checking for a BSD compatible install
configure:1378: result: /usr/bin/install -c
configure:1389: checking whether build environment is sane
configure:1432: result: yes
configure:1469: checking for mawk
configure:1494: result: no
configure:1469: checking for gawk
configure:1491: result: gawk
configure:1501: checking whether make sets ${MAKE}
configure:1521: result: yes
configure:1641: checking whether to enable maintainer-specific portions of Makefiles
configure:1650: result: no
configure:1749: checking for ranlib
configure:1772: result: true
configure:1791: checking how to run the C preprocessor
configure:1815: /cygdrive/d/coin/coin/cfg/m4/msvccc -E conftest.c >/dev/null
configure:1821: $? = 0
configure:1840: /cygdrive/d/coin/coin/cfg/m4/msvccc -E conftest.c >/dev/null
configure(1837) : fatal error C1083: Cannot open include file: 'ac_nonexistent.h': No
such file or directory
configure:1846: $? = 2
configure: failed program was:
#line 1836 "configure"
#include "confdefs.h"
#include <ac_nonexistent.h>
configure:1961: result: /cygdrive/d/coin/coin/cfg/m4/msvccc -E
configure:2017: checking for gcc
configure:2039: result: /cygdrive/d/coin/coin/cfg/m4/msvccc
configure:2261: checking whether the C compiler works
configure:2276: /cygdrive/d/coin/coin/cfg/m4/msvccc -o conftest conftest.c >&5
configure:2279: $? = 0
configure:2281: test -s conftest
configure:2284: $? = 0
configure:2289: ./conftest
configure:2292: $? = 0
configure:2307: result: yes
configure:2319: checking whether we are cross compiling
configure:2321: result: no
configure:2324: checking whether we are using the GNU C compiler
configure:2345: /cygdrive/d/coin/coin/cfg/m4/msvccc -c conftest.c >&5
configure(2336) : error C2065: 'choke' : undeclared identifier
configure(2336) : error C2146: syntax error : missing ';' before identifier 'me'
configure(2339) : error C2065: 'me' : undeclared identifier
configure:2348: $? = 2
configure: failed program was:
#line 2330 "configure"
#include "confdefs.h"
int
main ()
{
#ifndef __GNUC__
choke me
#endif
;
return 0;
}
configure:2360: result: no
configure:2363: checking for object suffix
configure:2381: /cygdrive/d/coin/coin/cfg/m4/msvccc -c conftest.c >&5
configure:2384: $? = 0
configure:2403: result: obj
configure:2407: checking for executable suffix
configure:2426: /cygdrive/d/coin/coin/cfg/m4/msvccc conftest.c >&5
configure:2429: $? = 0
configure:2450: /cygdrive/d/coin/coin/cfg/m4/msvccc -o conftest conftest.c >&5
configure:2453: $? = 0
configure:2455: test -s conftest
configure:2458: $? = 0
configure:2484: result: .exe
configure:2491: checking whether /cygdrive/d/coin/coin/cfg/m4/msvccc accepts -g
configure:2509: /cygdrive/d/coin/coin/cfg/m4/msvccc -c -g conftest.c >&5
configure:2512: $? = 0
configure:2522: result: yes
configure:2549: /cygdrive/d/coin/coin/cfg/m4/msvccc -c -g conftest.c >&5
conftest.c(2) : error C2061: syntax error : identifier 'me'
conftest.c(2) : error C2059: syntax error : ';'
configure:2552: $? = 2
configure: failed program was:
#ifndef __cplusplus
choke me
#endif
configure:2631: checking dependency style of /cygdrive/d/coin/coin/cfg/m4/msvccc
configure:2673: result: none
configure:2715: checking for non-GNU ld
configure:2745: result: /bin/ld
configure:2754: checking if the linker (/bin/ld) is GNU ld
GNU ld version 2.10.91 (with BFD 2.10.91)
configure:2766: result: yes
configure:2769: checking for BSD-compatible nm
configure:2803: result: /usr/bin/nm -B
configure:2806: checking whether ln -s works
configure:2825: result: yes
ltconfig:581: checking whether we are using GNU C
ltconfig:589: /cygdrive/d/coin/coin/cfg/m4/msvccc -E conftest.c
ltconfig:603: checking for object suffix
ltconfig:604: /cygdrive/d/coin/coin/cfg/m4/msvccc -c -g conftest.c 1>&5
ltconfig:829: checking if /cygdrive/d/coin/coin/cfg/m4/msvccc supports -c -o file.o
ltconfig:830: /cygdrive/d/coin/coin/cfg/m4/msvccc -c -g -o out/conftest2.o conftest.c
1>&5
ltconfig:862: checking if /cygdrive/d/coin/coin/cfg/m4/msvccc supports -c -o file.lo
ltconfig:863: /cygdrive/d/coin/coin/cfg/m4/msvccc -c -g -c -o conftest.lo conftest.c
1>&5
ltconfig:958: checking if /cygdrive/d/coin/coin/cfg/m4/msvccc static flag works
ltconfig:959: /cygdrive/d/coin/coin/cfg/m4/msvccc -o conftest -g conftest.c 1>&5
GNU ld version 2.10.91 (with BFD 2.10.91)
ltconfig:1653: checking if global_symbol_pipe works
ltconfig:1654: /cygdrive/d/coin/coin/cfg/m4/msvccc -c -g conftest.c 1>&5
ltconfig:1657: eval "/usr/bin/nm -B conftest.obj | sed -n -e 's/^.*[
]\([ABCDGISTW]\)[ ][ ]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' >
conftest.nm"
cannot find nm_test_var in conftest.nm
ltconfig:1653: checking if global_symbol_pipe works
ltconfig:1654: /cygdrive/d/coin/coin/cfg/m4/msvccc -c -g conftest.c 1>&5
ltconfig:1657: eval "/usr/bin/nm -B conftest.obj | sed -n -e 's/^.*[
]\([ABCDGISTW]\)[ ][ ]*\(_\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' >
conftest.nm"
ltconfig:1709: /cygdrive/d/coin/coin/cfg/m4/msvccc -o conftest -g conftest.c
conftstm.obj 1>&5
configure:3138: checking whether the C++ compiler works
configure:3153: /cygdrive/d/coin/coin/cfg/m4/msvccc -o conftest.exe /MDd conftest.cc
>&5
configure:3156: $? = 0
configure:3158: test -s conftest.exe
configure:3161: $? = 0
configure:3166: ./conftest.exe
configure:3169: $? = 0
configure:3184: result: yes
configure:3196: checking whether we are cross compiling
configure:3198: result: no
configure:3201: checking whether we are using the GNU C++ compiler
configure:3222: /cygdrive/d/coin/coin/cfg/m4/msvccc -c /MDd conftest.cc >&5
configure(3216) : error C2065: 'choke' : undeclared identifier
configure(3216) : error C2146: syntax error : missing ';' before identifier 'me'
configure(3216) : error C2065: 'me' : undeclared identifier
configure:3225: $? = 2
configure: failed program was:
#line 3207 "configure"
#include "confdefs.h"
int
main ()
{
#ifndef __GNUC__
choke me
#endif
;
return 0;
}
configure:3237: result: no
configure:3243: checking whether /cygdrive/d/coin/coin/cfg/m4/msvccc accepts -g
configure:3261: /cygdrive/d/coin/coin/cfg/m4/msvccc -c -g conftest.cc >&5
configure:3264: $? = 0
configure:3274: result: yes
configure:3313: /cygdrive/d/coin/coin/cfg/m4/msvccc -c /MDd conftest.cc >&5
configure:3316: $? = 0
configure:3338: /cygdrive/d/coin/coin/cfg/m4/msvccc -c /MDd conftest.cc >&5
configure(3331) : error C2065: 'exit' : undeclared identifier
configure:3341: $? = 2
configure: failed program was:
#line 3326 "configure"
#include "confdefs.h"
int
main ()
{
exit (42);
;
return 0;
}
configure:3313: /cygdrive/d/coin/coin/cfg/m4/msvccc -c /MDd conftest.cc >&5
configure(3302) : error C2653: 'std' : is not a class or namespace name
configure(3302) : warning C4273: 'exit' : inconsistent dll linkage. dllexport assumed.
configure(3302) : error C2653: 'std' : is not a class or namespace name
configure(3302) : error C2873: 'exit' : symbol cannot be used in a using-declaration
configure:3316: $? = 2
configure: failed program was:
#line 3300 "configure"
#include "confdefs.h"
#include <stdlib.h>
extern "C" void std::exit (int) throw (); using std::exit;
int
main ()
{
exit (42);
;
return 0;
}
configure:3313: /cygdrive/d/coin/coin/cfg/m4/msvccc -c /MDd conftest.cc >&5
configure(3302) : error C2653: 'std' : is not a class or namespace name
configure(3302) : warning C4273: 'exit' : inconsistent dll linkage. dllexport assumed.
configure(3302) : error C2653: 'std' : is not a class or namespace name
configure(3302) : error C2873: 'exit' : symbol cannot be used in a using-declaration
configure:3316: $? = 2
configure: failed program was:
#line 3300 "configure"
#include "confdefs.h"
#include <stdlib.h>
extern "C" void std::exit (int); using std::exit;
int
main ()
{
exit (42);
;
return 0;
}
configure:3313: /cygdrive/d/coin/coin/cfg/m4/msvccc -c /MDd conftest.cc >&5
configure(3302) : warning C4273: 'exit' : inconsistent dll linkage. dllexport assumed.
configure:3316: $? = 0
configure:3338: /cygdrive/d/coin/coin/cfg/m4/msvccc -c /MDd conftest.cc >&5
configure:3341: $? = 0
configure:3365: checking how to run the C++ preprocessor
configure:3385: /cygdrive/d/coin/coin/cfg/m4/msvccc -E conftest.cc >/dev/null
configure:3391: $? = 0
configure:3410: /cygdrive/d/coin/coin/cfg/m4/msvccc -E conftest.cc >/dev/null
configure(3407) : fatal error C1083: Cannot open include file: 'ac_nonexistent.h': No
such file or directory
configure:3416: $? = 2
configure: failed program was:
#line 3406 "configure"
#include "confdefs.h"
#include <ac_nonexistent.h>
configure:3531: result: /cygdrive/d/coin/coin/cfg/m4/msvccc -E
configure:3547: checking dependency style of /cygdrive/d/coin/coin/cfg/m4/msvccc
configure:3589: result: none
configure:3593: checking whether the C++ compiler handles inlined loops
configure:3620: /cygdrive/d/coin/coin/cfg/m4/msvccc -c /MDd conftest.cc >&5
configure:3623: $? = 0
configure:3634: result: yes
configure:3647: checking for function name variable
configure:3669: /cygdrive/d/coin/coin/cfg/m4/msvccc -c /MDd conftest.cc >&5
configure(3662) : error C2065: '__func__' : undeclared identifier
configure:3672: $? = 2
configure: failed program was:
#line 3657 "configure"
#include "confdefs.h"
#include <stdio.h>
int
main ()
{
(void)printf("%s\n",__func__)
;
return 0;
}
configure:3697: /cygdrive/d/coin/coin/cfg/m4/msvccc -c /MDd conftest.cc >&5
configure(3690) : error C2065: '__PRETTY_FUNCTION__' : undeclared identifier
configure:3700: $? = 2
configure: failed program was:
#line 3685 "configure"
#include "confdefs.h"
#include <stdio.h>
int
main ()
{
(void)printf("%s\n",__PRETTY_FUNCTION__)
;
return 0;
}
configure:3725: /cygdrive/d/coin/coin/cfg/m4/msvccc -c /MDd conftest.cc >&5
configure(3718) : error C2065: '__FUNCTION__' : undeclared identifier
configure:3728: $? = 2
configure: failed program was:
#line 3713 "configure"
#include "confdefs.h"
#include <stdio.h>
int
main ()
{
(void)printf("%s\n",__FUNCTION__)
;
return 0;
}
configure:3739: result: none
configure:3770: checking for unistd.h
configure:3781: /cygdrive/d/coin/coin/cfg/m4/msvccc -E conftest.cc >/dev/null
configure(3778) : fatal error C1083: Cannot open include file: 'unistd.h': No such
file or directory
configure:3787: $? = 2
configure: failed program was:
#line 3777 "configure"
#include "confdefs.h"
#include <unistd.h>
configure:3806: result: no
configure:3770: checking for sys/types.h
configure:3781: /cygdrive/d/coin/coin/cfg/m4/msvccc -E conftest.cc >/dev/null
configure:3787: $? = 0
configure:3806: result: yes
configure:3770: checking for sys/param.h
configure:3781: /cygdrive/d/coin/coin/cfg/m4/msvccc -E conftest.cc >/dev/null
configure(3778) : fatal error C1083: Cannot open include file: 'sys/param.h': No such
file or directory
configure:3787: $? = 2
configure: failed program was:
#line 3777 "configure"
#include "confdefs.h"
#include <sys/param.h>
configure:3806: result: no
configure:3770: checking for io.h
configure:3781: /cygdrive/d/coin/coin/cfg/m4/msvccc -E conftest.cc >/dev/null
configure:3787: $? = 0
configure:3806: result: yes
configure:3770: checking for windows.h
configure:3781: /cygdrive/d/coin/coin/cfg/m4/msvccc -E conftest.cc >/dev/null
configure:3787: $? = 0
configure:3806: result: yes
configure:3770: checking for winsock2.h
configure:3781: /cygdrive/d/coin/coin/cfg/m4/msvccc -E conftest.cc >/dev/null
configure:3787: $? = 0
configure:3806: result: yes
configure:3829: checking netinet/in.h
configure:3852: /cygdrive/d/coin/coin/cfg/m4/msvccc -c /MDd conftest.cc >&5
configure(3841) : fatal error C1083: Cannot open include file: 'netinet/in.h': No such
file or directory
configure:3855: $? = 2
configure: failed program was:
#line 3836 "configure"
#include "confdefs.h"
#if HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif /* HAVE_SYS_TYPES_H */
#include <netinet/in.h>
int
main ()
{
;
return 0;
}
configure:3865: result: false
configure:3879: checking network byteorder conversion
configure:3921: /cygdrive/d/coin/coin/cfg/m4/msvccc -o conftest.exe /MDd conftest.cc
>&5
D:\ntapps\Microsoft Visual Studio\VC98\include\stdlib.h(261) : error C2375: 'exit' :
redefinition; different linkage
confdefs.h(9) : see declaration of 'exit'
configure:3924: $? = 2
configure: failed program was:
#line 3890 "configure"
#include "confdefs.h"
#if HAVE_WINSOCK2_H
#include <winsock2.h> /* MSWindows htonl() etc */
#endif /* HAVE_WINSOCK2_H */
#if HAVE_SYS_PARAM_H
#include <sys/param.h> /* FreeBSD htonl() etc */
#endif /* HAVE_SYS_PARAM_H */
#if HAVE_SYS_TYPES_H
/* According to Coin user Ralf Corsepius, at least SunOS4 needs
to include sys/types.h before netinet/in.h. There have also
been a problem report for FreeBSD which seems to indicate
the same dependency on that platform aswell. */
#include <sys/types.h>
#endif /* HAVE_SYS_TYPES_H */
#if HAVE_NETINET_IN_H
#include <netinet/in.h> /* Linux htonl() etc */
#endif /* HAVE_NETINET_IN_H */
int
main ()
{
(void)htonl(0x42); (void)htons(0x42); (void)ntohl(0x42); (void)ntohs(0x42);
;
return 0;
}
configure:3921: /cygdrive/d/coin/coin/cfg/m4/msvccc -o conftest.exe /MDd conftest.cc
-lwsock32 >&5
D:\ntapps\Microsoft Visual Studio\VC98\include\stdlib.h(261) : error C2375: 'exit' :
redefinition; different linkage
confdefs.h(9) : see declaration of 'exit'
configure:3924: $? = 2
configure: failed program was:
#line 3890 "configure"
#include "confdefs.h"
#if HAVE_WINSOCK2_H
#include <winsock2.h> /* MSWindows htonl() etc */
#endif /* HAVE_WINSOCK2_H */
#if HAVE_SYS_PARAM_H
#include <sys/param.h> /* FreeBSD htonl() etc */
#endif /* HAVE_SYS_PARAM_H */
#if HAVE_SYS_TYPES_H
/* According to Coin user Ralf Corsepius, at least SunOS4 needs
to include sys/types.h before netinet/in.h. There have also
been a problem report for FreeBSD which seems to indicate
the same dependency on that platform aswell. */
#include <sys/types.h>
#endif /* HAVE_SYS_TYPES_H */
#if HAVE_NETINET_IN_H
#include <netinet/in.h> /* Linux htonl() etc */
#endif /* HAVE_NETINET_IN_H */
int
main ()
{
(void)htonl(0x42); (void)htons(0x42); (void)ntohl(0x42); (void)ntohs(0x42);
;
return 0;
}
configure:3941: result: UNRESOLVED
configure:3953: error: could not find network conversion functions
configure: exit 1