[Bug bootstrap/13571] libstdc++-v3/libmath/stubs.c Parse error

richard_wheeler at cinfin dot com gcc-bugzilla@gcc.gnu.org
Mon Jan 5 21:11:00 GMT 2004


------- Additional Comments From richard_wheeler at cinfin dot com  2004-01-05 21:10 -------
(In reply to comment #15)
> Subject: Re:  libstdc++-v3/libmath/stubs.c Parse error 
> 	hypotl() was added in AIX 5.2.
> 	The routines are protected by
> #ifdef _ISOC99_SOURCE
> David

Please forgive me but I am new at this so what does that mean and how does it 
relate with compling GCC 3.3.2 for AIX 5.2?

The config.log showed an attempt at detecting hypotl which got an error. 
Perhaps the problem is in the configuration(see below).

configure:19336: checking for hypotl declaration
configure:19358: /cmDevTest/Tools/gcc.3.3.2/gcc/xgcc -shared-libgcc -
B/cmDevTest/Tools/gcc.3.3.2/gcc/ -nostdinc++ -
L/cmDevTest/Tools/gcc.3.3.2/powerpc-ibm-aix5.2.0.0/pthread/libstdc++-v3/src -
L/cmDevTest/Tools/gcc.3.3.2/powerpc-ibm-aix5.2.0.0/pthread/libstdc++-
v3/src/.libs -B/cmDevTest/local/powerpc-ibm-aix5.2.0.0/bin/ -
B/cmDevTest/local/powerpc-ibm-aix5.2.0.0/lib/ -isystem /cmDevTest/local/powerpc-
ibm-aix5.2.0.0/include  -pthread -c -fno-builtin -D_GNU_SOURCE  conftest.C 1>&5
configure:19385: checking for hypotl
configure:19413: /cmDevTest/Tools/gcc.3.3.2/gcc/xgcc -
B/cmDevTest/Tools/gcc.3.3.2/gcc/ -B/cmDevTest/local/powerpc-ibm-
aix5.2.0.0/bin/ -B/cmDevTest/local/powerpc-ibm-aix5.2.0.0/lib/ -
isystem /cmDevTest/local/powerpc-ibm-aix5.2.0.0/include  -pthread -o conftest -
O2 -g -O2   conftest.c  -lm 1>&5
ld: 0711-317 ERROR: Undefined symbol: .hypotl
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status
configure: failed program was:
#line 19390 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char hypotl(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char hypotl();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_hypotl) || defined (__stub___hypotl)
choke me
#else
hypotl();
#endif

; return 0; }


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13571



More information about the Gcc-bugs mailing list