All of lore.kernel.org
 help / color / mirror / Atom feed
* [morty][PATCH 1/1] openssl-native: Compile with -fPIC
@ 2017-05-26  7:03 Mirza Krak
  2017-05-26 18:47 ` Andre McCurdy
  2017-06-28 18:06 ` Martin Kelly
  0 siblings, 2 replies; 7+ messages in thread
From: Mirza Krak @ 2017-05-26  7:03 UTC (permalink / raw)
  To: openembedded-core; +Cc: Mirza Krak

From: Khem Raj <raj.khem@gmail.com>

Fixes
| /usr/bin/ld: libcrypto.a(sha1-x86_64.o): relocation R_X86_64_PC32 against undefined symbol `OPENSSL_ia32cap_P' can not be used when making a shared object; recompile with -fPIC
| /usr/bin/ld: final link failed: Bad value

Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 0a19e72081771fca8ed94fb2a2a8996fd3dce00c)
Signed-off-by: Mirza Krak <mirza.krak@endian.se>
---

I hit the same compiler error as in above commit message when running on morty branch.

I simply cherry-picked that fix in to morty branch. I looked in the git log of oe-core and it seems to me that it shall be ok to do that?

This is a re-send since I messed up Subject the first time around [1]

[1]. http://lists.openembedded.org/pipermail/openembedded-core/2017-May/136489.html

 meta/recipes-connectivity/openssl/openssl_1.0.2j.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-connectivity/openssl/openssl_1.0.2j.bb b/meta/recipes-connectivity/openssl/openssl_1.0.2j.bb
index 9a7cdedd05..b6fb126349 100644
--- a/meta/recipes-connectivity/openssl/openssl_1.0.2j.bb
+++ b/meta/recipes-connectivity/openssl/openssl_1.0.2j.bb
@@ -5,6 +5,7 @@ require openssl.inc
 DEPENDS += "cryptodev-linux"

 CFLAG += "-DHAVE_CRYPTODEV -DUSE_CRYPTODEV_DIGESTS"
+CFLAG_append_class-native = " -fPIC"

 LIC_FILES_CHKSUM = "file://LICENSE;md5=27ffa5d74bb5a337056c14b2ef93fbf6"

--
2.13.0



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

* Re: [morty][PATCH 1/1] openssl-native: Compile with -fPIC
  2017-05-26  7:03 [morty][PATCH 1/1] openssl-native: Compile with -fPIC Mirza Krak
@ 2017-05-26 18:47 ` Andre McCurdy
  2017-06-28 18:06 ` Martin Kelly
  1 sibling, 0 replies; 7+ messages in thread
From: Andre McCurdy @ 2017-05-26 18:47 UTC (permalink / raw)
  To: Mirza Krak; +Cc: OE Core mailing list

On Fri, May 26, 2017 at 12:03 AM, Mirza Krak <mirza.krak@endian.se> wrote:
> From: Khem Raj <raj.khem@gmail.com>
>
> Fixes
> | /usr/bin/ld: libcrypto.a(sha1-x86_64.o): relocation R_X86_64_PC32 against undefined symbol `OPENSSL_ia32cap_P' can not be used when making a shared object; recompile with -fPIC
> | /usr/bin/ld: final link failed: Bad value

Although this is an old thread, it appears to suggest that adding
-Wl,-Bsymbolic may be the more "correct" solution:

  https://rt.openssl.org/Ticket/Display.html?user=guest&pass=guest&id=1521

Interestingly, that's actually the default in upstream openssl, but
removed by an OE patch inherited from Debian:

  http://git.openembedded.org/openembedded-core/tree/meta/recipes-connectivity/openssl/openssl/debian/no-symbolic.patch


> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> (cherry picked from commit 0a19e72081771fca8ed94fb2a2a8996fd3dce00c)
> Signed-off-by: Mirza Krak <mirza.krak@endian.se>
> ---
>
> I hit the same compiler error as in above commit message when running on morty branch.
>
> I simply cherry-picked that fix in to morty branch. I looked in the git log of oe-core and it seems to me that it shall be ok to do that?
>
> This is a re-send since I messed up Subject the first time around [1]
>
> [1]. http://lists.openembedded.org/pipermail/openembedded-core/2017-May/136489.html
>
>  meta/recipes-connectivity/openssl/openssl_1.0.2j.bb | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/meta/recipes-connectivity/openssl/openssl_1.0.2j.bb b/meta/recipes-connectivity/openssl/openssl_1.0.2j.bb
> index 9a7cdedd05..b6fb126349 100644
> --- a/meta/recipes-connectivity/openssl/openssl_1.0.2j.bb
> +++ b/meta/recipes-connectivity/openssl/openssl_1.0.2j.bb
> @@ -5,6 +5,7 @@ require openssl.inc
>  DEPENDS += "cryptodev-linux"
>
>  CFLAG += "-DHAVE_CRYPTODEV -DUSE_CRYPTODEV_DIGESTS"
> +CFLAG_append_class-native = " -fPIC"
>
>  LIC_FILES_CHKSUM = "file://LICENSE;md5=27ffa5d74bb5a337056c14b2ef93fbf6"
>
> --
> 2.13.0
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core


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

* Re: [morty][PATCH 1/1] openssl-native: Compile with -fPIC
  2017-05-26  7:03 [morty][PATCH 1/1] openssl-native: Compile with -fPIC Mirza Krak
  2017-05-26 18:47 ` Andre McCurdy
@ 2017-06-28 18:06 ` Martin Kelly
  2017-06-29  0:31   ` akuster808
  2017-07-11 19:07   ` Martin Kelly
  1 sibling, 2 replies; 7+ messages in thread
From: Martin Kelly @ 2017-06-28 18:06 UTC (permalink / raw)
  To: Mirza Krak, openembedded-core

On 05/26/2017 12:03 AM, Mirza Krak wrote:
> From: Khem Raj <raj.khem@gmail.com>
>
> Fixes
> | /usr/bin/ld: libcrypto.a(sha1-x86_64.o): relocation R_X86_64_PC32 against undefined symbol `OPENSSL_ia32cap_P' can not be used when making a shared object; recompile with -fPIC
> | /usr/bin/ld: final link failed: Bad value
>
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> (cherry picked from commit 0a19e72081771fca8ed94fb2a2a8996fd3dce00c)
> Signed-off-by: Mirza Krak <mirza.krak@endian.se>
> ---
>
> I hit the same compiler error as in above commit message when running on morty branch.
>
> I simply cherry-picked that fix in to morty branch. I looked in the git log of oe-core and it seems to me that it shall be ok to do that?
>
> This is a re-send since I messed up Subject the first time around [1]
>

I want to put in my $0.02 that I have hit the same issue and would also 
like the fix to be cherry-picked into morty. I tested and agree that it 
seems to work with no issue.

> [1]. http://lists.openembedded.org/pipermail/openembedded-core/2017-May/136489.html
>
>  meta/recipes-connectivity/openssl/openssl_1.0.2j.bb | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/meta/recipes-connectivity/openssl/openssl_1.0.2j.bb b/meta/recipes-connectivity/openssl/openssl_1.0.2j.bb
> index 9a7cdedd05..b6fb126349 100644
> --- a/meta/recipes-connectivity/openssl/openssl_1.0.2j.bb
> +++ b/meta/recipes-connectivity/openssl/openssl_1.0.2j.bb
> @@ -5,6 +5,7 @@ require openssl.inc
>  DEPENDS += "cryptodev-linux"
>
>  CFLAG += "-DHAVE_CRYPTODEV -DUSE_CRYPTODEV_DIGESTS"
> +CFLAG_append_class-native = " -fPIC"
>
>  LIC_FILES_CHKSUM = "file://LICENSE;md5=27ffa5d74bb5a337056c14b2ef93fbf6"
>
> --
> 2.13.0
>


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

* Re: [morty][PATCH 1/1] openssl-native: Compile with -fPIC
  2017-06-28 18:06 ` Martin Kelly
@ 2017-06-29  0:31   ` akuster808
  2017-07-11 19:07   ` Martin Kelly
  1 sibling, 0 replies; 7+ messages in thread
From: akuster808 @ 2017-06-29  0:31 UTC (permalink / raw)
  To: openembedded-core

its in http://git.yoctoproject.org/cgit/cgit.cgi/poky/log/?h=morty-next


On 06/28/2017 11:06 AM, Martin Kelly wrote:
> On 05/26/2017 12:03 AM, Mirza Krak wrote:
>> From: Khem Raj <raj.khem@gmail.com>
>>
>> Fixes
>> | /usr/bin/ld: libcrypto.a(sha1-x86_64.o): relocation R_X86_64_PC32 
>> against undefined symbol `OPENSSL_ia32cap_P' can not be used when 
>> making a shared object; recompile with -fPIC
>> | /usr/bin/ld: final link failed: Bad value
>>
>> Signed-off-by: Khem Raj <raj.khem@gmail.com>
>> (cherry picked from commit 0a19e72081771fca8ed94fb2a2a8996fd3dce00c)
>> Signed-off-by: Mirza Krak <mirza.krak@endian.se>
>> ---
>>
>> I hit the same compiler error as in above commit message when running 
>> on morty branch.
>>
>> I simply cherry-picked that fix in to morty branch. I looked in the 
>> git log of oe-core and it seems to me that it shall be ok to do that?
>>
>> This is a re-send since I messed up Subject the first time around [1]
>>
>
> I want to put in my $0.02 that I have hit the same issue and would 
> also like the fix to be cherry-picked into morty. I tested and agree 
> that it seems to work with no issue.
>
>> [1]. 
>> http://lists.openembedded.org/pipermail/openembedded-core/2017-May/136489.html
>>
>>  meta/recipes-connectivity/openssl/openssl_1.0.2j.bb | 1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/meta/recipes-connectivity/openssl/openssl_1.0.2j.bb 
>> b/meta/recipes-connectivity/openssl/openssl_1.0.2j.bb
>> index 9a7cdedd05..b6fb126349 100644
>> --- a/meta/recipes-connectivity/openssl/openssl_1.0.2j.bb
>> +++ b/meta/recipes-connectivity/openssl/openssl_1.0.2j.bb
>> @@ -5,6 +5,7 @@ require openssl.inc
>>  DEPENDS += "cryptodev-linux"
>>
>>  CFLAG += "-DHAVE_CRYPTODEV -DUSE_CRYPTODEV_DIGESTS"
>> +CFLAG_append_class-native = " -fPIC"
>>
>>  LIC_FILES_CHKSUM = 
>> "file://LICENSE;md5=27ffa5d74bb5a337056c14b2ef93fbf6"
>>
>> -- 
>> 2.13.0
>>



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

* Re: [morty][PATCH 1/1] openssl-native: Compile with -fPIC
  2017-06-28 18:06 ` Martin Kelly
  2017-06-29  0:31   ` akuster808
@ 2017-07-11 19:07   ` Martin Kelly
  2017-07-11 19:39     ` Khem Raj
  1 sibling, 1 reply; 7+ messages in thread
From: Martin Kelly @ 2017-07-11 19:07 UTC (permalink / raw)
  To: Mirza Krak, openembedded-core

Hi,

Is there any issue with backporting this to morty? It would help me fix 
a build crash I'm seeing on morty, and I'm currently using the backport 
in a separate repo with no issue.

On 06/28/2017 11:06 AM, Martin Kelly wrote:
> On 05/26/2017 12:03 AM, Mirza Krak wrote:
>> From: Khem Raj <raj.khem@gmail.com>
>>
>> Fixes
>> | /usr/bin/ld: libcrypto.a(sha1-x86_64.o): relocation R_X86_64_PC32
>> against undefined symbol `OPENSSL_ia32cap_P' can not be used when
>> making a shared object; recompile with -fPIC
>> | /usr/bin/ld: final link failed: Bad value
>>
>> Signed-off-by: Khem Raj <raj.khem@gmail.com>
>> (cherry picked from commit 0a19e72081771fca8ed94fb2a2a8996fd3dce00c)
>> Signed-off-by: Mirza Krak <mirza.krak@endian.se>
>> ---
>>
>> I hit the same compiler error as in above commit message when running
>> on morty branch.
>>
>> I simply cherry-picked that fix in to morty branch. I looked in the
>> git log of oe-core and it seems to me that it shall be ok to do that?
>>
>> This is a re-send since I messed up Subject the first time around [1]
>>
>
> I want to put in my $0.02 that I have hit the same issue and would also
> like the fix to be cherry-picked into morty. I tested and agree that it
> seems to work with no issue.
>
>> [1].
>> http://lists.openembedded.org/pipermail/openembedded-core/2017-May/136489.html
>>
>>
>>  meta/recipes-connectivity/openssl/openssl_1.0.2j.bb | 1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/meta/recipes-connectivity/openssl/openssl_1.0.2j.bb
>> b/meta/recipes-connectivity/openssl/openssl_1.0.2j.bb
>> index 9a7cdedd05..b6fb126349 100644
>> --- a/meta/recipes-connectivity/openssl/openssl_1.0.2j.bb
>> +++ b/meta/recipes-connectivity/openssl/openssl_1.0.2j.bb
>> @@ -5,6 +5,7 @@ require openssl.inc
>>  DEPENDS += "cryptodev-linux"
>>
>>  CFLAG += "-DHAVE_CRYPTODEV -DUSE_CRYPTODEV_DIGESTS"
>> +CFLAG_append_class-native = " -fPIC"
>>
>>  LIC_FILES_CHKSUM = "file://LICENSE;md5=27ffa5d74bb5a337056c14b2ef93fbf6"
>>
>> --
>> 2.13.0
>>


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

* Re: [morty][PATCH 1/1] openssl-native: Compile with -fPIC
  2017-07-11 19:07   ` Martin Kelly
@ 2017-07-11 19:39     ` Khem Raj
  2017-07-11 20:54       ` Martin Kelly
  0 siblings, 1 reply; 7+ messages in thread
From: Khem Raj @ 2017-07-11 19:39 UTC (permalink / raw)
  To: Martin Kelly; +Cc: Mirza Krak, Patches and discussions about the oe-core layer

On Tue, Jul 11, 2017 at 12:07 PM, Martin Kelly <mkelly@xevo.com> wrote:
> Hi,
>
> Is there any issue with backporting this to morty? It would help me fix a
> build crash I'm seeing on morty, and I'm currently using the backport in a
> separate repo with no issue.
>

there should be no issues. Let Armin know of your request.


> On 06/28/2017 11:06 AM, Martin Kelly wrote:
>>
>> On 05/26/2017 12:03 AM, Mirza Krak wrote:
>>>
>>> From: Khem Raj <raj.khem@gmail.com>
>>>
>>> Fixes
>>> | /usr/bin/ld: libcrypto.a(sha1-x86_64.o): relocation R_X86_64_PC32
>>> against undefined symbol `OPENSSL_ia32cap_P' can not be used when
>>> making a shared object; recompile with -fPIC
>>> | /usr/bin/ld: final link failed: Bad value
>>>
>>> Signed-off-by: Khem Raj <raj.khem@gmail.com>
>>> (cherry picked from commit 0a19e72081771fca8ed94fb2a2a8996fd3dce00c)
>>> Signed-off-by: Mirza Krak <mirza.krak@endian.se>
>>> ---
>>>
>>> I hit the same compiler error as in above commit message when running
>>> on morty branch.
>>>
>>> I simply cherry-picked that fix in to morty branch. I looked in the
>>> git log of oe-core and it seems to me that it shall be ok to do that?
>>>
>>> This is a re-send since I messed up Subject the first time around [1]
>>>
>>
>> I want to put in my $0.02 that I have hit the same issue and would also
>> like the fix to be cherry-picked into morty. I tested and agree that it
>> seems to work with no issue.
>>
>>> [1].
>>>
>>> http://lists.openembedded.org/pipermail/openembedded-core/2017-May/136489.html
>>>
>>>
>>>  meta/recipes-connectivity/openssl/openssl_1.0.2j.bb | 1 +
>>>  1 file changed, 1 insertion(+)
>>>
>>> diff --git a/meta/recipes-connectivity/openssl/openssl_1.0.2j.bb
>>> b/meta/recipes-connectivity/openssl/openssl_1.0.2j.bb
>>> index 9a7cdedd05..b6fb126349 100644
>>> --- a/meta/recipes-connectivity/openssl/openssl_1.0.2j.bb
>>> +++ b/meta/recipes-connectivity/openssl/openssl_1.0.2j.bb
>>> @@ -5,6 +5,7 @@ require openssl.inc
>>>  DEPENDS += "cryptodev-linux"
>>>
>>>  CFLAG += "-DHAVE_CRYPTODEV -DUSE_CRYPTODEV_DIGESTS"
>>> +CFLAG_append_class-native = " -fPIC"
>>>
>>>  LIC_FILES_CHKSUM = "file://LICENSE;md5=27ffa5d74bb5a337056c14b2ef93fbf6"
>>>
>>> --
>>> 2.13.0
>>>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core


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

* Re: [morty][PATCH 1/1] openssl-native: Compile with -fPIC
  2017-07-11 19:39     ` Khem Raj
@ 2017-07-11 20:54       ` Martin Kelly
  0 siblings, 0 replies; 7+ messages in thread
From: Martin Kelly @ 2017-07-11 20:54 UTC (permalink / raw)
  To: Khem Raj
  Cc: Mirza Krak, Armin Kuster,
	Patches and discussions about the oe-core layer

Hi Armin,

Could we backport this patch to morty?

On 07/11/2017 12:39 PM, Khem Raj wrote:
> On Tue, Jul 11, 2017 at 12:07 PM, Martin Kelly <mkelly@xevo.com> wrote:
>> Hi,
>>
>> Is there any issue with backporting this to morty? It would help me fix a
>> build crash I'm seeing on morty, and I'm currently using the backport in a
>> separate repo with no issue.
>>
>
> there should be no issues. Let Armin know of your request.
>
>
>> On 06/28/2017 11:06 AM, Martin Kelly wrote:
>>>
>>> On 05/26/2017 12:03 AM, Mirza Krak wrote:
>>>>
>>>> From: Khem Raj <raj.khem@gmail.com>
>>>>
>>>> Fixes
>>>> | /usr/bin/ld: libcrypto.a(sha1-x86_64.o): relocation R_X86_64_PC32
>>>> against undefined symbol `OPENSSL_ia32cap_P' can not be used when
>>>> making a shared object; recompile with -fPIC
>>>> | /usr/bin/ld: final link failed: Bad value
>>>>
>>>> Signed-off-by: Khem Raj <raj.khem@gmail.com>
>>>> (cherry picked from commit 0a19e72081771fca8ed94fb2a2a8996fd3dce00c)
>>>> Signed-off-by: Mirza Krak <mirza.krak@endian.se>
>>>> ---
>>>>
>>>> I hit the same compiler error as in above commit message when running
>>>> on morty branch.
>>>>
>>>> I simply cherry-picked that fix in to morty branch. I looked in the
>>>> git log of oe-core and it seems to me that it shall be ok to do that?
>>>>
>>>> This is a re-send since I messed up Subject the first time around [1]
>>>>
>>>
>>> I want to put in my $0.02 that I have hit the same issue and would also
>>> like the fix to be cherry-picked into morty. I tested and agree that it
>>> seems to work with no issue.
>>>
>>>> [1].
>>>>
>>>> http://lists.openembedded.org/pipermail/openembedded-core/2017-May/136489.html
>>>>
>>>>
>>>>  meta/recipes-connectivity/openssl/openssl_1.0.2j.bb | 1 +
>>>>  1 file changed, 1 insertion(+)
>>>>
>>>> diff --git a/meta/recipes-connectivity/openssl/openssl_1.0.2j.bb
>>>> b/meta/recipes-connectivity/openssl/openssl_1.0.2j.bb
>>>> index 9a7cdedd05..b6fb126349 100644
>>>> --- a/meta/recipes-connectivity/openssl/openssl_1.0.2j.bb
>>>> +++ b/meta/recipes-connectivity/openssl/openssl_1.0.2j.bb
>>>> @@ -5,6 +5,7 @@ require openssl.inc
>>>>  DEPENDS += "cryptodev-linux"
>>>>
>>>>  CFLAG += "-DHAVE_CRYPTODEV -DUSE_CRYPTODEV_DIGESTS"
>>>> +CFLAG_append_class-native = " -fPIC"
>>>>
>>>>  LIC_FILES_CHKSUM = "file://LICENSE;md5=27ffa5d74bb5a337056c14b2ef93fbf6"
>>>>
>>>> --
>>>> 2.13.0
>>>>
>> --
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-core


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

end of thread, other threads:[~2017-07-11 20:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-26  7:03 [morty][PATCH 1/1] openssl-native: Compile with -fPIC Mirza Krak
2017-05-26 18:47 ` Andre McCurdy
2017-06-28 18:06 ` Martin Kelly
2017-06-29  0:31   ` akuster808
2017-07-11 19:07   ` Martin Kelly
2017-07-11 19:39     ` Khem Raj
2017-07-11 20:54       ` Martin Kelly

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.