Bug 1118933

Summary: configure: error: cannot run C compiled programs
Product: [Fedora] Fedora Reporter: Lokesh Mandvekar <lsm5>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: jakub, law, redhat-bugzilla
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-13 14:08:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
config.log none

Description Lokesh Mandvekar 2014-07-12 02:58:46 UTC
Created attachment 917467 [details]
config.log

Description of problem:

I'm trying to build libressl on rawhide, but running the configure script gives an error 

But ./configure seems to work well in my f20 container.

Version-Release number of selected component (if applicable):
gcc-4.9.0-14.fc21.x86_64


How reproducible: always


Steps to Reproduce:
1. fetch http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-2.0.0.tar.gz , extract and cd
2. ./configure
3. see error

Actual results:

$ ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... configure: error: in `/home/lsm5/repositories/pkgs/fedora/libressl/libressl-2.0.0':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details

Comment 1 Robert Scheck 2014-07-12 17:44:48 UTC
[...]
configure:3453: gcc -o conftest  -Wall -Werror -std=c99 -g -Wno-pointer-sign -D_BSD_SOURCE -D_POSIX_SOURCE -D_GNU_SOURCE   conftest.c  >&5
In file included from /usr/include/stdio.h:27:0,
                 from conftest.c:11:
/usr/include/features.h:148:3: error: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Werror=cpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^
cc1: all warnings being treated as errors
[...]

Remove either -Werror from configure or correct the reason for warning. This
is not a GCC issue IMHO.

Comment 2 Lokesh Mandvekar 2014-07-13 14:08:33 UTC
(In reply to Robert Scheck from comment #1)
> [...]
> configure:3453: gcc -o conftest  -Wall -Werror -std=c99 -g -Wno-pointer-sign
> -D_BSD_SOURCE -D_POSIX_SOURCE -D_GNU_SOURCE   conftest.c  >&5
> In file included from /usr/include/stdio.h:27:0,
>                  from conftest.c:11:
> /usr/include/features.h:148:3: error: #warning "_BSD_SOURCE and _SVID_SOURCE
> are deprecated, use _DEFAULT_SOURCE" [-Werror=cpp]
>  # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
>    ^
> cc1: all warnings being treated as errors
> [...]
> 
> Remove either -Werror from configure or correct the reason for warning. This
> is not a GCC issue IMHO.

Yup, upstream libressl took care of this in 2.0.1. Closing this, thanks!