bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

size 0 should be rejected?


From: Jay K
Subject: size 0 should be rejected?
Date: Sat, 6 Nov 2010 17:02:54 +0000

address@hidden :~ > echo "int main(){}" > 1.c
address@hidden :~ > /opt/csw/gcc4/bin/g++ 1.c
address@hidden :~ > ./a.out
ld.so.1: a.out: fatal: libstdc++.so.6: open failed: No such file or directory
Killed


now, this is some local problem.
My complaint to autoconf though, is that in this situation, autoconf blithely 
produced:

config.h:


#define SIZEOF_INT 0
#define SIZEOF_LONG 0


I think it should notice that and error out loudly/early.


This is part of my gcc 4.5.1 configure -enable-build-with-cxx adventure..


If autoconf were really clever, I'd like it to recognize this situation and 
fallback to /usr/bin/CC, which works.
But ok either way. I'm setting CXX to it now.


Also, http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46334 is maybe an autoconf 
bug.
If set CXX=/usr/bin/CC and I don't set CC, then CC gets gcc flags and warns 
like crazy.
Or it might be stuff specific in gcc's Makefile...



 - Jay
                                          


reply via email to

[Prev in Thread] Current Thread [Next in Thread]