Skip to contentSkip to conversation

pckages/sconeserver: fix build with gcc-6

PATCH Superseded Yann E. MORIN 3 participants 6 messages Aug 25, 2016 – Aug 28, 2016

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 pckages/sconeserver: fix build with gcc-6

We simply bump the version rather than backport the patch, as there has been only very few, minor commits in-between.

Fixes:

    http://autobuild.buildroot.org/results/fa7/fa7881c6ffb821a2aff139f95ba53c96d6e2b942/
    http://autobuild.buildroot.org/results/749/749fbd6cc505f6f3c0cccfeb63be6deddab8fba5/

---
Changes v1 -> v2;
- update hash file (Thomas)

---
 package/sconeserver/sconeserver.hash | 2 +-
 package/sconeserver/sconeserver.mk   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
package/sconeserver/sconeserver.hash +1 -1
index 4503b9f..978b442 100644
@@ -1,2 +1,2 @@
 # Locally computed
-sha256 6bd76843df8e48519c67c72505412896b227d7b40ec0dee831c79ed414c85ff3 sconeserver-bbb384404575f8a3ef31c1ec41218b621b66ab27.tar.gz
+sha256 38e72b962eb42bea8f0deb6f101833f8f2f2fa8c53f0dc03f3eb5d56873517c8 sconeserver-d659468cd164e6a6cc12932cc6780566b04f8328.tar.gz
package/sconeserver/sconeserver.mk +1 -1
index 0b0ed1a..e02c1a6 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-SCONESERVER_VERSION = bbb384404575f8a3ef31c1ec41218b621b66ab27
+SCONESERVER_VERSION = d659468cd164e6a6cc12932cc6780566b04f8328
 SCONESERVER_SITE = $(call github,sconemad,sconeserver,$(SCONESERVER_VERSION))
 SCONESERVER_LICENSE = GPLv2+
 SCONESERVER_LICENSE_FILES = COPYING
Signature · 1 line
2.7.4
#1 lore raw

PATCH v2 1/1 pckages/sconeserver: fix build with gcc-6

Hello,

Quoted 9 lines · Yann E. MORIN

We simply bump the version rather than backport the patch, as there has been only very few, minor commits in-between.

Fixes:

    http://autobuild.buildroot.org/results/fa7/fa7881c6ffb821a2aff139f95ba53c96d6e2b942/
    http://autobuild.buildroot.org/results/749/749fbd6cc505f6f3c0cccfeb63be6deddab8fba5/
Quoted 7 lines

---
Changes v1 -> v2;
- update hash file (Thomas)

---
 package/sconeserver/sconeserver.hash | 2 +-
 package/sconeserver/sconeserver.mk   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Applied after fixing the typo in the commit title. Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#2 lore raw

PATCH v2 1/1 pckages/sconeserver: fix build with gcc-6

Yann,

Quoted 12 lines · Thomas Petazzoni

Hello,

Quoted 9 lines · Yann E. MORIN

We simply bump the version rather than backport the patch, as there has been only very few, minor commits in-between.

Fixes:

    http://autobuild.buildroot.org/results/fa7/fa7881c6ffb821a2aff139f95ba53c96d6e2b942/
    http://autobuild.buildroot.org/results/749/749fbd6cc505f6f3c0cccfeb63be6deddab8fba5/

<snip>

Looks like the new revision has a failed build.
http://autobuild.buildroot.org/results/e92/e929799366e6f574c7b08d8635b18623afd3e3e1//

ModuleLoader.cpp:29:19: fatal error: dlfcn.h: No such file or directory

 #include <dlfcn.h>
                   ^

I didn't have a chance to check if the conf opts for disable-load works on this package yet but that might fix it (assuming it can be statically built).

When I first rebuilt, I tried just doing a "make clean sconeserver" and got this error.

configure.in:118: error: possibly undefined macro: AC_MSG_FAILURE
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.in:120: error: possibly undefined macro: AC_MSG_WARN
autoreconf: /home/mlweber/buildroot/output/host/usr/bin/autoconf
failed with exit status: 1
package/pkg-generic.mk:191: recipe for target '/home/mlweber/buildroot/output/build/sconeserver-d659468cd164e6a6cc12932cc6780566b04f8328/.stamp_configured' failed

I haven't had a chance to look into why but thought I'd get it out there.

Signature · 2 lines
Thanks,
Matt
#3 lore raw

PATCH v2 1/1 pckages/sconeserver: fix build with gcc-6

Matthew, All,

On 2016-08-27 07:38 -0500, Matthew Weber spake thusly:

Quoted 20 lines
Quoted 12 lines · Thomas Petazzoni

Hello,

Quoted 9 lines · Yann E. MORIN

We simply bump the version rather than backport the patch, as there has been only very few, minor commits in-between.

Fixes:

    http://autobuild.buildroot.org/results/fa7/fa7881c6ffb821a2aff139f95ba53c96d6e2b942/
    http://autobuild.buildroot.org/results/749/749fbd6cc505f6f3c0cccfeb63be6deddab8fba5/

<snip>

Looks like the new revision has a failed build.
http://autobuild.buildroot.org/results/e92/e929799366e6f574c7b08d8635b18623afd3e3e1//

Quoted 6 lines

ModuleLoader.cpp:29:19: fatal error: dlfcn.h: No such file or directory

 #include <dlfcn.h>
                   ^

I didn't have a chance to check if the conf opts for disable-load works on this package yet but that might fix it (assuming it can be statically built).

This code hasn't changed in sconeserver since 2013, so we would have seen similar failures previously...

Quoted 12 lines

When I first rebuilt, I tried just doing a "make clean sconeserver" and got this error.

configure.in:118: error: possibly undefined macro: AC_MSG_FAILURE
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.in:120: error: possibly undefined macro: AC_MSG_WARN
autoreconf: /home/mlweber/buildroot/output/host/usr/bin/autoconf
failed with exit status: 1
package/pkg-generic.mk:191: recipe for target '/home/mlweber/buildroot/output/build/sconeserver-d659468cd164e6a6cc12932cc6780566b04f8328/.stamp_configured' failed

This autoreconf issue also occurs when reverting the bump...

I'll be investigating, but sconeserver is not something I'm really interested in (was just trying to fix autobuild failures...)

Adding Simon in the loop, since he added that package. ;-)

Regards,
Yann E. MORIN.

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#4 lore raw

PATCH v2 1/1 pckages/sconeserver: fix build with gcc-6

In reply to Matthew Weber

Matt, All,

On 2016-08-27 07:38 -0500, Matthew Weber spake thusly:

Quoted 39 lines
Quoted 12 lines · Thomas Petazzoni

Hello,

Quoted 9 lines · Yann E. MORIN

We simply bump the version rather than backport the patch, as there has been only very few, minor commits in-between.

Fixes:

    http://autobuild.buildroot.org/results/fa7/fa7881c6ffb821a2aff139f95ba53c96d6e2b942/
    http://autobuild.buildroot.org/results/749/749fbd6cc505f6f3c0cccfeb63be6deddab8fba5/

<snip>

Looks like the new revision has a failed build.
http://autobuild.buildroot.org/results/e92/e929799366e6f574c7b08d8635b18623afd3e3e1//

ModuleLoader.cpp:29:19: fatal error: dlfcn.h: No such file or directory

 #include <dlfcn.h>
                   ^

I didn't have a chance to check if the conf opts for disable-load works on this package yet but that might fix it (assuming it can be statically built).

When I first rebuilt, I tried just doing a "make clean sconeserver" and got this error.

configure.in:118: error: possibly undefined macro: AC_MSG_FAILURE
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.in:120: error: possibly undefined macro: AC_MSG_WARN
autoreconf: /home/mlweber/buildroot/output/host/usr/bin/autoconf
failed with exit status: 1
package/pkg-generic.mk:191: recipe for target '/home/mlweber/buildroot/output/build/sconeserver-d659468cd164e6a6cc12932cc6780566b04f8328/.stamp_configured' failed

Quoted 1 line

I haven't had a chance to look into why but thought I'd get it out there.

OK, so I finally had the time to give it a shot:

- the autoreconf issue is because it uses pkg-config macros, and it was missing a dependency on host-pkgconf,

- the build issue is because a pure static uClibc build does not install dlfcn.h and can't do dynamic loading with dlopen().

Both issues already existed with the previous version, we just did not notice them...

So: thanks for noticing this time! ;-)

I'll send the patches in a moment.

Regards,
Yann E. MORIN.

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#5 lore raw

PATCH v2 1/1 pckages/sconeserver: fix build with gcc-6

Yann,

Quoted 49 lines · Yann E. MORIN

Matt, All,

On 2016-08-27 07:38 -0500, Matthew Weber spake thusly:

Quoted 39 lines
Quoted 12 lines · Thomas Petazzoni

Hello,

Quoted 9 lines · Yann E. MORIN

We simply bump the version rather than backport the patch, as there has been only very few, minor commits in-between.

Fixes:

    http://autobuild.buildroot.org/results/fa7/fa7881c6ffb821a2aff139f95ba53c96d6e2b942/
    http://autobuild.buildroot.org/results/749/749fbd6cc505f6f3c0cccfeb63be6deddab8fba5/

<snip>

Looks like the new revision has a failed build.
http://autobuild.buildroot.org/results/e92/e929799366e6f574c7b08d8635b18623afd3e3e1//

ModuleLoader.cpp:29:19: fatal error: dlfcn.h: No such file or directory

 #include <dlfcn.h>
                   ^

I didn't have a chance to check if the conf opts for disable-load works on this package yet but that might fix it (assuming it can be statically built).

When I first rebuilt, I tried just doing a "make clean sconeserver" and got this error.

configure.in:118: error: possibly undefined macro: AC_MSG_FAILURE
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.in:120: error: possibly undefined macro: AC_MSG_WARN
autoreconf: /home/mlweber/buildroot/output/host/usr/bin/autoconf
failed with exit status: 1
package/pkg-generic.mk:191: recipe for target '/home/mlweber/buildroot/output/build/sconeserver-d659468cd164e6a6cc12932cc6780566b04f8328/.stamp_configured' failed

Quoted 1 line

I haven't had a chance to look into why but thought I'd get it out there.

OK, so I finally had the time to give it a shot:

- the autoreconf issue is because it uses pkg-config macros, and it was missing a dependency on host-pkgconf,

Quoted 7 lines

- the build issue is because a pure static uClibc build does not install dlfcn.h and can't do dynamic loading with dlopen().

Both issues already existed with the previous version, we just did not notice them...

So: thanks for noticing this time! ;-)

I would have taken a look tonight, so I appreciate that you beat me to a patch set and I'll start a build to test :-).

- Matt