[EMAIL PROTECTED] (Lars Gullik Bjønnes) writes:

| I do this:
>
| #!/bin/bash
>
| export PATH=/opt/gcc-head/bin:$PATH
| export LD_LIBRARY_PATH=/opt/gcc-head/lib
>
| exec bash -i
>
| Does that make a difference? (change to fit of course)
>
| Do you have any clues why configure thinks your ptrdiff_t is
| undefined?
>
| My log:
| configure:29030: checking for ptrdiff_t
| configure:29055: gcc -c -g -O2   -I/usr/X11R6/include conftest.c >&5
| configure:29058: $? = 0
| configure:29061: test -s conftest.o
| configure:29064: $? = 0
| configure:29075: result: yes

The strangest thing. When I take your conftest.c and run gcc on it:

configure: In function `main':
configure:29059: error: `ptrdiff_t' undeclared (first use in this
function)
configure:29059: error: (Each undeclared identifier is reported only
once
configure:29059: error: for each function it appears in.)
configure:29059: error: syntax error before ')' token

gcc --version
gcc (GCC) 3.3.2 20031022 (Red Hat Linux 3.3.2-1)

I can only find ptrdiff_t in linux/types.h and in
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/include/stddef.h
(which leads me to suspect your way of calling the compiler...)

It seems that STDC_HEADERS is undefined with your test. Can you check
that?

-- 
        Lgb

Reply via email to