Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

configure: error: cannot run C compiled programs.

isaranjaMay 16 2012 — edited May 17 2012
Hi,
I am new to Solaris. I have installed Solaris 10 and compiled packages without any error.
I have tried to compile Wireshark 1.7.1 and it was exist indicating '/usr/include/sys/feature_tests.h no such file or directory'.
So I have download feature_tests.h file and uploaded it to the relevant location and run ./configure again.
Now I am not able to compile any package and it indicate error

'configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details'

I have attached portion of the config.log

configure:3739: checking whether the C compiler works
configure:3761: gcc conftest.c >&5
configure:3765: $? = 0
configure:3813: result: yes
configure:3816: checking for C compiler default output file name
configure:3818: result: a.out
configure:3824: checking for suffix of executables
configure:3831: gcc -o conftest conftest.c >&5
configure:3835: $? = 0
configure:3857: result:
configure:3879: checking whether we are cross compiling
configure:3887: gcc -o conftest conftest.c >&5
In file included from conftest.c:11:
/usr/include/stdio.h:21:31: sys/feature_tests.h: No such file or directory
In file included from /usr/include/stdio.h:66,
from conftest.c:11:
/usr/include/iso/stdio_iso.h:90: error: syntax error before "fpos_t"
/usr/include/iso/stdio_iso.h:208: error: syntax error before "fpos_t"
/usr/include/iso/stdio_iso.h:210: error: syntax error before '*' token
In file included from /usr/include/stdio.h:135,
from conftest.c:11:
/usr/include/iso/stdio_c99.h:54: error: conflicting types for '_RESTRICT_KYWD'
/usr/include/iso/stdio_c99.h:54: error: previous definition of '_RESTRICT_KYWD' was here
/usr/include/iso/stdio_c99.h:56: error: redefinition of parameter '_RESTRICT_KYWD'
/usr/include/iso/stdio_c99.h:56: error: previous definition of '_RESTRICT_KYWD' was here
/usr/include/iso/stdio_c99.h:68: error: conflicting types for '_RESTRICT_KYWD'
/usr/include/iso/stdio_c99.h:68: error: previous definition of '_RESTRICT_KYWD' was here
/usr/include/iso/stdio_c99.h:70: error: conflicting types for '_RESTRICT_KYWD'
/usr/include/iso/stdio_c99.h:70: error: previous definition of '_RESTRICT_KYWD' was here
configure:3891: $? = 1
configure:3898: ./conftest
./configure: line 3900: ./conftest: No such file or directory
configure:3902: $? = 127
configure:3909: error: in `/wireshark-1.6.7':
configure:3911: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 14 2012
Added on May 16 2012
1 comment
1,067 views