Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] openssl 1.0.2 with sed error of unknown option
@ 2015-03-20 23:20 Walt Chow
  2015-03-20 23:52 ` Gustavo Zacarias
  0 siblings, 1 reply; 2+ messages in thread
From: Walt Chow @ 2015-03-20 23:20 UTC (permalink / raw)
  To: buildroot

Upgrading to openssl 1.0.2, I came across a problem during configuration as
below:

Configured for linux-generic32.

/usr/bin/sed: -e expression #1, char 141: unknown option to `s' make[1]:
***

The problem comes from openssl.mk:

$(SED) "s:-O[0-9]:$(OPENSSL_CFLAGS):" $(@D)/Makefile

When it expands OPENSSL_CFLAGS, it contains content like "-rpath
/lib:/usr/lib".
With this the sed operation will fail.  To resolve this problem, I replaced
: with ! like:

$(SED) "s!-O[0-9]!$(OPENSSL_CFLAGS)!" $(@D)/Makefile
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20150320/339833cb/attachment.html>

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Buildroot] openssl 1.0.2 with sed error of unknown option
  2015-03-20 23:20 [Buildroot] openssl 1.0.2 with sed error of unknown option Walt Chow
@ 2015-03-20 23:52 ` Gustavo Zacarias
  0 siblings, 0 replies; 2+ messages in thread
From: Gustavo Zacarias @ 2015-03-20 23:52 UTC (permalink / raw)
  To: buildroot

On 03/20/2015 08:20 PM, Walt Chow wrote:

> Upgrading to openssl 1.0.2, I came across a problem during configuration
> as below:
> 
> Configured for linux-generic32.
> 
> /usr/bin/sed: -e expression #1, char 141: unknown option to `s' make[1]:
> *** 
> 
> 
> The problem comes from openssl.mk <http://openssl.mk>:
> 
> $(SED) "s:-O[0-9]:$(OPENSSL_CFLAGS):" $(@D)/Makefile
> 
> When it expands OPENSSL_CFLAGS, it contains content like "-rpath
> /lib:/usr/lib".
> With this the sed operation will fail.  To resolve this problem, I
> replaced : with ! like:
> 
> $(SED) "s!-O[0-9]!$(OPENSSL_CFLAGS)!" $(@D)/Makefile

Hi.
That's extremely odd, where is that rpath coming from?
Can you post your defconfig so we can look?
Also -rpath in it's direct form shouldn't ever be in CFLAGS, it belongs
to LDFLAGS (should be -Wl,-rpath... for CFLAGS)
Regards.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-03-20 23:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-20 23:20 [Buildroot] openssl 1.0.2 with sed error of unknown option Walt Chow
2015-03-20 23:52 ` Gustavo Zacarias

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox