Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 507434 - net-misc/openssh-6.6_p1[static]: configure tests fail due to -pie and -static
Summary: net-misc/openssh-6.6_p1[static]: configure tests fail due to -pie and -static
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: ARM Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on: 504764
Blocks:
  Show dependency tree
 
Reported: 2014-04-11 16:35 UTC by Alexander Hof
Modified: 2014-11-15 21:03 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
net-misc:openssh-6.6_p1-r1:20140410-205714.log (net-misc:openssh-6.6_p1-r1:20140410-205714.log,22.40 KB, text/plain)
2014-04-11 16:35 UTC, Alexander Hof
Details
emerge --info (emerge.info,4.20 KB, text/plain)
2014-04-11 16:36 UTC, Alexander Hof
Details
emerge -pqv (emerge.pqv,148 bytes, text/plain)
2014-04-11 16:37 UTC, Alexander Hof
Details
config.log (config.log,672.57 KB, text/plain)
2014-04-11 16:53 UTC, Alexander Hof
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Hof 2014-04-11 16:35:38 UTC
Created attachment 374750 [details]
net-misc:openssh-6.6_p1-r1:20140410-205714.log

Trying to merge openssh-6.6_p1-r1 on a RPi fails with:
"checking OpenSSL header version... not found
configure: error: OpenSSL version header not found."

Last succesfully merged version openssh-6.4_p1-r1 still compiles fine.
Comment 1 Alexander Hof 2014-04-11 16:36:47 UTC
Created attachment 374752 [details]
emerge --info
Comment 2 Alexander Hof 2014-04-11 16:37:02 UTC
Created attachment 374754 [details]
emerge -pqv
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2014-04-11 16:45:08 UTC
!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/net-misc/openssh-6.6_p1-r1/work/openssh-6.6p1/config.log

Please do.
Comment 4 Alexander Hof 2014-04-11 16:53:53 UTC
Created attachment 374756 [details]
config.log
Comment 5 Rafał Mużyło 2014-04-11 17:15:07 UTC
...something's fishy..
There are a few tests logged, where compilation seems to succeed (exit status 0), but no binary is created ("./conftest not found").
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2014-04-12 19:06:19 UTC
./configure --without-openssl-header-check ?
Comment 7 Alexander Hof 2014-04-12 20:11:07 UTC
(In reply to Jeroen Roovers from comment #6)
> ./configure --without-openssl-header-check ?

Should I try to add this to the ebuild? But that would just be a rather dirty workaround I guess?
Comment 8 Rafał Mużyło 2014-04-12 20:29:52 UTC
(In reply to Jeroen Roovers from comment #6)
> ./configure --without-openssl-header-check ?

Unlikely to matter - note, that the same problem happens while "checking whether snprintf correctly terminates long strings" too.
Comment 9 Magnus Granberg gentoo-dev 2014-04-27 19:29:54 UTC
-pie and -static should note be uset in the same time for it -pie and -static use diffrent startfiles when linking and it is ony on hardened that we have hybrid pie version of the startfiles.
Comment 10 SpanKY gentoo-dev 2014-05-18 20:03:41 UTC
(In reply to Magnus Granberg from comment #9)

that sentence doesn't really parse
Comment 11 Alexander Hof 2014-06-09 11:27:03 UTC
(In reply to Magnus Granberg from comment #9)
> -pie and -static should note be uset in the same time for it -pie and
> -static use diffrent startfiles when linking and it is ony on hardened that
> we have hybrid pie version of the startfiles.

It builds fine without static, indeed.
Comment 12 SpanKY gentoo-dev 2014-11-15 20:14:03 UTC
should be all set now in the tree; thanks for the report!

Commit message: Reject pie/static USE combos
http://sources.gentoo.org/net-misc/openssh/openssh-6.6.1_p1-r4.ebuild?r1=1.1&r2=1.2
Comment 13 Alexander Hof 2014-11-15 20:27:48 UTC
Thanks for fixing! I don't use it with +static anymore, but would you want me to test it again?
Comment 14 SpanKY gentoo-dev 2014-11-15 20:53:43 UTC
(In reply to Alexander Hof from comment #13)

the ebuild won't even let you try to build w/USE="pie static" anymore ;).  you'll get an error that you need to select one or the other.
Comment 15 Alexander Hof 2014-11-15 21:03:08 UTC
(In reply to SpanKY from comment #14)
> (In reply to Alexander Hof from comment #13)
> 
> the ebuild won't even let you try to build w/USE="pie static" anymore ;). 
> you'll get an error that you need to select one or the other.

Yea I saw the patch. Ok, if you're sure it was the combination of both that caused the error then it's fine. Thanks!