Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure fails on Fedora rawhide #6

Closed
austin987 opened this issue Jul 12, 2014 · 4 comments
Closed

configure fails on Fedora rawhide #6

austin987 opened this issue Jul 12, 2014 · 4 comments

Comments

@austin987
Copy link

I tried libressl-2.0.0.tar.gz on Fedora rawhide with glibc-headers-2.19.90-23.fc21.x86_64, but configure fails:
configure:3445: checking whether we are cross compiling
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
configure:3457: $? = 1
configure:3464: ./conftest
./configure: line 3466: ./conftest: No such file or directory
configure:3468: $? = 127
configure:3475: error: in /home/austin/libressl-2.0.0': configure:3477: error: cannot run C compiled programs. If you meant to cross compile, use--host'.
See `config.log' for more details

changing configure to use both _DEFAULT_SOURCE and _BSD_SOURCE works. See https://perkamon.alioth.debian.org/online/man7/feature_test_macros.7.php

I'll attach a patch.

@austin987
Copy link
Author

Sent as a PR, since I can't attach a .diff:
#7

@busterb
Copy link
Contributor

busterb commented Jul 12, 2014

Hi, we have since disabled -Werror by default, which should allow you to make progress past this issue. Please try the latest git source (run autogen.sh first)

@austin987
Copy link
Author

Yep, 058914f builds fine with ./autogen.sh
&& ./configure && make. make check also passes 41 tests.

Great work!

Note that without the patch, gcc will print a ton of warnings:
grep -c "/usr/include/features.h:148:3:" make.txt
599

On Sat, Jul 12, 2014 at 4:19 PM, busterb notifications@github.com wrote:

Hi, we have since disabled -Werror by default, which should allow you to
make progress past this issue. Please try the latest git source (run
autogen.sh first)


Reply to this email directly or view it on GitHub
#6 (comment)
.

-Austin

@bob-beck
Copy link
Contributor

closing, as this is fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants