Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] divine: fix divine-config
@ 2013-01-03 22:09 Stefan Fröberg
  2013-01-03 22:09 ` [Buildroot] [PATCH] giblib: fix giblib-config Stefan Fröberg
                   ` (8 more replies)
  0 siblings, 9 replies; 32+ messages in thread
From: Stefan Fröberg @ 2013-01-03 22:09 UTC (permalink / raw)
  To: buildroot


Signed-off-by: Stefan Fr?berg <stefan.froberg@petroprogram.com>
---
 package/divine/divine.mk |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/package/divine/divine.mk b/package/divine/divine.mk
index 779322e..872d135 100644
--- a/package/divine/divine.mk
+++ b/package/divine/divine.mk
@@ -10,4 +10,11 @@ DIVINE_SOURCE = DiVine-$(DIVINE_VERSION).tar.gz
 DIVINE_INSTALL_STAGING = YES
 DIVINE_DEPENDENCIES = directfb
 
+define DIVINE_STAGING_DIVINE_CONFIG_FIXUP
+	$(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/divine-config
+	$(SED) "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/divine-config
+endef
+
+DIVINE_POST_INSTALL_STAGING_HOOKS += DIVINE_STAGING_DIVINE_CONFIG_FIXUP
+
 $(eval $(autotools-package))
-- 
1.7.7.6

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

* [Buildroot] [PATCH] giblib: fix giblib-config
  2013-01-03 22:09 [Buildroot] [PATCH] divine: fix divine-config Stefan Fröberg
@ 2013-01-03 22:09 ` Stefan Fröberg
  2013-01-03 22:09 ` [Buildroot] [PATCH] imlib2: fix imlib2-config Stefan Fröberg
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 32+ messages in thread
From: Stefan Fröberg @ 2013-01-03 22:09 UTC (permalink / raw)
  To: buildroot


Signed-off-by: Stefan Fr?berg <stefan.froberg@petroprogram.com>
---
 package/giblib/giblib.mk |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/package/giblib/giblib.mk b/package/giblib/giblib.mk
index 751534c..ed93b3d 100644
--- a/package/giblib/giblib.mk
+++ b/package/giblib/giblib.mk
@@ -13,4 +13,11 @@ GIBLIB_AUTORECONF_OPT = --install
 GIBLIB_CONF_OPT = --with-imlib2-prefix=$(STAGING_DIR)/usr \
 		  --with-imlib2-exec-prefix=$(STAGING_DIR)/usr
 
+define GIBLIB_STAGING_GIBLIB_CONFIG_FIXUP
+	$(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/giblib-config
+	$(SED) "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/giblib-config
+endef
+
+GIBLIB_POST_INSTALL_STAGING_HOOKS += GIBLIB_STAGING_GIBLIB_CONFIG_FIXUP
+
 $(eval $(autotools-package))
-- 
1.7.7.6

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

* [Buildroot] [PATCH] imlib2: fix imlib2-config
  2013-01-03 22:09 [Buildroot] [PATCH] divine: fix divine-config Stefan Fröberg
  2013-01-03 22:09 ` [Buildroot] [PATCH] giblib: fix giblib-config Stefan Fröberg
@ 2013-01-03 22:09 ` Stefan Fröberg
  2013-01-03 22:09 ` [Buildroot] [PATCH] libgcrypt: fix libgcrypt-config Stefan Fröberg
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 32+ messages in thread
From: Stefan Fröberg @ 2013-01-03 22:09 UTC (permalink / raw)
  To: buildroot


Signed-off-by: Stefan Fr?berg <stefan.froberg@petroprogram.com>
---
 package/imlib2/imlib2.mk |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/package/imlib2/imlib2.mk b/package/imlib2/imlib2.mk
index fa0f578..5fad070 100644
--- a/package/imlib2/imlib2.mk
+++ b/package/imlib2/imlib2.mk
@@ -57,6 +57,8 @@ endif
 
 # drop -L<dir> from linker flags
 define IMLIB2_FIXUP_IMLIB2_CONFIG
+	$(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/imlib2-config
+	$(SED) "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/imlib2-config
 	$(SED) 's/-L[^ ]*//g' \
 		$(STAGING_DIR)/usr/bin/imlib2-config
 endef
-- 
1.7.7.6

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

* [Buildroot] [PATCH] libgcrypt: fix libgcrypt-config
  2013-01-03 22:09 [Buildroot] [PATCH] divine: fix divine-config Stefan Fröberg
  2013-01-03 22:09 ` [Buildroot] [PATCH] giblib: fix giblib-config Stefan Fröberg
  2013-01-03 22:09 ` [Buildroot] [PATCH] imlib2: fix imlib2-config Stefan Fröberg
@ 2013-01-03 22:09 ` Stefan Fröberg
  2013-01-03 22:09 ` [Buildroot] [PATCH] imagemagick: fix Magick[++|Core|Wand]-config Stefan Fröberg
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 32+ messages in thread
From: Stefan Fröberg @ 2013-01-03 22:09 UTC (permalink / raw)
  To: buildroot


Signed-off-by: Stefan Fr?berg <stefan.froberg@petroprogram.com>
---
 package/libgcrypt/libgcrypt.mk |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/package/libgcrypt/libgcrypt.mk b/package/libgcrypt/libgcrypt.mk
index 3aa60c6..19b6ed3 100644
--- a/package/libgcrypt/libgcrypt.mk
+++ b/package/libgcrypt/libgcrypt.mk
@@ -25,5 +25,12 @@ endef
 
 LIBGCRYPT_POST_PATCH_HOOKS += LIBGCRYPT_DISABLE_TESTS
 
+define LIBGCRYPT_STAGING_LIBGCRYPT_CONFIG_FIXUP
+	$(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/libgcrypt-config
+	$(SED) "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/libgcrypt-config
+endef
+
+LIBGCRYPT_POST_INSTALL_STAGING_HOOKS += LIBGCRYPT_STAGING_LIBGCRYPT_CONFIG_FIXUP
+
 
 $(eval $(autotools-package))
-- 
1.7.7.6

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

* [Buildroot] [PATCH] imagemagick: fix Magick[++|Core|Wand]-config
  2013-01-03 22:09 [Buildroot] [PATCH] divine: fix divine-config Stefan Fröberg
                   ` (2 preceding siblings ...)
  2013-01-03 22:09 ` [Buildroot] [PATCH] libgcrypt: fix libgcrypt-config Stefan Fröberg
@ 2013-01-03 22:09 ` Stefan Fröberg
  2013-01-04 21:45   ` Peter Korsgaard
  2013-01-03 22:09 ` [Buildroot] [PATCH] neon: fix neon-config Stefan Fröberg
                   ` (4 subsequent siblings)
  8 siblings, 1 reply; 32+ messages in thread
From: Stefan Fröberg @ 2013-01-03 22:09 UTC (permalink / raw)
  To: buildroot


Signed-off-by: Stefan Fr?berg <stefan.froberg@petroprogram.com>
---
 package/imagemagick/imagemagick.mk |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/package/imagemagick/imagemagick.mk b/package/imagemagick/imagemagick.mk
index 0476ace..00aa81f 100644
--- a/package/imagemagick/imagemagick.mk
+++ b/package/imagemagick/imagemagick.mk
@@ -119,6 +119,25 @@ define IMAGEMAGICK_REMOVE_CONFIG_SCRIPTS
 		     Magick MagickCore MagickWand Wand Magick++))
 endef
 
+define IMAGEMAGICK_STAGING_IMAGEMAGICK_CONFIG_FIXUP
+	$(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/Magick-config
+	$(SED) "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/Magick-config
+
+	$(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/Magick++-config
+	$(SED) "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/Magick++-config
+
+	$(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/MagickCore-config
+	$(SED) "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/MagickCore-config
+
+	$(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/MagickWand-config
+	$(SED) "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/MagickWand-config
+
+	$(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/Wand-config
+	$(SED) "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/Wand-config
+endef
+
+IMAGEMAGICK_POST_INSTALL_STAGING_HOOKS += IMAGEMAGICK_STAGING_IMAGEMAGICK_CONFIG_FIXUP
+
 ifneq ($(BR2_HAVE_DEVFILES),y)
 IMAGEMAGICK_POST_INSTALL_TARGET_HOOKS += IMAGEMAGICK_REMOVE_CONFIG_SCRIPTS
 endif
-- 
1.7.7.6

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

* [Buildroot] [PATCH] neon: fix neon-config
  2013-01-03 22:09 [Buildroot] [PATCH] divine: fix divine-config Stefan Fröberg
                   ` (3 preceding siblings ...)
  2013-01-03 22:09 ` [Buildroot] [PATCH] imagemagick: fix Magick[++|Core|Wand]-config Stefan Fröberg
@ 2013-01-03 22:09 ` Stefan Fröberg
  2013-01-03 22:09 ` [Buildroot] [PATCH] libnspr: fix nspr-config Stefan Fröberg
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 32+ messages in thread
From: Stefan Fröberg @ 2013-01-03 22:09 UTC (permalink / raw)
  To: buildroot


Signed-off-by: Stefan Fr?berg <stefan.froberg@petroprogram.com>
---
 package/neon/neon.mk |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/package/neon/neon.mk b/package/neon/neon.mk
index c2e4949..5e92853 100644
--- a/package/neon/neon.mk
+++ b/package/neon/neon.mk
@@ -52,4 +52,11 @@ ifneq ($(BR2_HAVE_DEVFILES),y)
 NEON_POST_INSTALL_TARGET_HOOKS += NEON_REMOVE_CONFIG_SCRIPTS
 endif
 
+define NEON_STAGING_NEON_CONFIG_FIXUP
+	$(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/neon-config
+	$(SED) "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/neon-config
+endef
+
+NEON_POST_INSTALL_STAGING_HOOKS += NEON_STAGING_NEON_CONFIG_FIXUP
+
 $(eval $(autotools-package))
-- 
1.7.7.6

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

* [Buildroot] [PATCH] libnspr: fix nspr-config
  2013-01-03 22:09 [Buildroot] [PATCH] divine: fix divine-config Stefan Fröberg
                   ` (4 preceding siblings ...)
  2013-01-03 22:09 ` [Buildroot] [PATCH] neon: fix neon-config Stefan Fröberg
@ 2013-01-03 22:09 ` Stefan Fröberg
  2013-01-03 22:09 ` [Buildroot] [PATCH] xlib_libXft: fix xft-config Stefan Fröberg
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 32+ messages in thread
From: Stefan Fröberg @ 2013-01-03 22:09 UTC (permalink / raw)
  To: buildroot


Signed-off-by: Stefan Fr?berg <stefan.froberg@petroprogram.com>
---
 package/libnspr/libnspr.mk |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/package/libnspr/libnspr.mk b/package/libnspr/libnspr.mk
index a9d5812..ab199a9 100644
--- a/package/libnspr/libnspr.mk
+++ b/package/libnspr/libnspr.mk
@@ -38,4 +38,11 @@ define LIBNSPR_INSTALL_TARGET_PC
 endef
 LIBNSPR_POST_INSTALL_TARGET_HOOKS += LIBNSPR_INSTALL_TARGET_PC
 
+define LIBNSPR_STAGING_LIBNSPR_CONFIG_FIXUP
+	$(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/nspr-config
+	$(SED) "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/nspr-config
+endef
+
+LIBNSPR_POST_INSTALL_STAGING_HOOKS += LIBNSPR_STAGING_LIBNSPR_CONFIG_FIXUP
+
 $(eval $(autotools-package))
-- 
1.7.7.6

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

* [Buildroot] [PATCH] xlib_libXft: fix xft-config
  2013-01-03 22:09 [Buildroot] [PATCH] divine: fix divine-config Stefan Fröberg
                   ` (5 preceding siblings ...)
  2013-01-03 22:09 ` [Buildroot] [PATCH] libnspr: fix nspr-config Stefan Fröberg
@ 2013-01-03 22:09 ` Stefan Fröberg
  2013-01-04 23:30   ` Peter Korsgaard
  2013-01-04 11:41 ` [Buildroot] [PATCH] divine: fix divine-config Gustavo Zacarias
  2013-01-04 21:49 ` Peter Korsgaard
  8 siblings, 1 reply; 32+ messages in thread
From: Stefan Fröberg @ 2013-01-03 22:09 UTC (permalink / raw)
  To: buildroot


Signed-off-by: Stefan Fr?berg <stefan.froberg@petroprogram.com>
---
 package/x11r7/xlib_libXft/xlib_libXft.mk |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/package/x11r7/xlib_libXft/xlib_libXft.mk b/package/x11r7/xlib_libXft/xlib_libXft.mk
index eab75ef..70c64bc 100644
--- a/package/x11r7/xlib_libXft/xlib_libXft.mk
+++ b/package/x11r7/xlib_libXft/xlib_libXft.mk
@@ -11,4 +11,11 @@ XLIB_LIBXFT_AUTORECONF = YES
 XLIB_LIBXFT_INSTALL_STAGING = YES
 XLIB_LIBXFT_DEPENDENCIES = fontconfig freetype xlib_libX11 xlib_libXext xlib_libXrender xproto_xproto
 
+define XLIB_LIBXFT_STAGING_XLIB_LIBXFT_CONFIG_FIXUP
+	$(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/xft-config
+	$(SED) "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/xft-config
+endef
+
+XLIB_LIBXFT_POST_INSTALL_STAGING_HOOKS += XLIB_LIBXFT_STAGING_XLIB_LIBXFT_CONFIG_FIXUP
+
 $(eval $(autotools-package))
-- 
1.7.7.6

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

* [Buildroot] [PATCH] divine: fix divine-config
  2013-01-03 22:09 [Buildroot] [PATCH] divine: fix divine-config Stefan Fröberg
                   ` (6 preceding siblings ...)
  2013-01-03 22:09 ` [Buildroot] [PATCH] xlib_libXft: fix xft-config Stefan Fröberg
@ 2013-01-04 11:41 ` Gustavo Zacarias
  2013-01-04 14:17   ` Samuel Martin
  2013-01-04 16:31   ` Thomas Petazzoni
  2013-01-04 21:49 ` Peter Korsgaard
  8 siblings, 2 replies; 32+ messages in thread
From: Gustavo Zacarias @ 2013-01-04 11:41 UTC (permalink / raw)
  To: buildroot

On 01/03/2013 07:09 PM, Stefan Fr?berg wrote:

> +define DIVINE_STAGING_DIVINE_CONFIG_FIXUP
> +	$(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/divine-config
> +	$(SED) "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/divine-config
> +endef
> +
> +DIVINE_POST_INSTALL_STAGING_HOOKS += DIVINE_STAGING_DIVINE_CONFIG_FIXUP
> +

This could be handled in a generic way for all the packages that ship a
*-config file.
Something like:

DIVINE_CONFIG_FIXUP = divine-config

And then do the generic sed magic in package/pkg-generic.mk
How about that?
Regards.

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

* [Buildroot] [PATCH] divine: fix divine-config
  2013-01-04 11:41 ` [Buildroot] [PATCH] divine: fix divine-config Gustavo Zacarias
@ 2013-01-04 14:17   ` Samuel Martin
  2013-01-04 14:29     ` Gustavo Zacarias
  2013-01-04 16:29     ` Thomas Petazzoni
  2013-01-04 16:31   ` Thomas Petazzoni
  1 sibling, 2 replies; 32+ messages in thread
From: Samuel Martin @ 2013-01-04 14:17 UTC (permalink / raw)
  To: buildroot

Hi Stefan, Gustavo, all,

2013/1/4 Gustavo Zacarias <gustavo@zacarias.com.ar>:
> On 01/03/2013 07:09 PM, Stefan Fr?berg wrote:
>
>> +define DIVINE_STAGING_DIVINE_CONFIG_FIXUP
>> +     $(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/divine-config
>> +     $(SED) "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/divine-config
>> +endef
>> +
>> +DIVINE_POST_INSTALL_STAGING_HOOKS += DIVINE_STAGING_DIVINE_CONFIG_FIXUP
>> +
>
> This could be handled in a generic way for all the packages that ship a
> *-config file.
> Something like:
>
> DIVINE_CONFIG_FIXUP = divine-config
>
> And then do the generic sed magic in package/pkg-generic.mk
> How about that?

We quickly talked about this during the last Buildroot Dev. Days.

IIRC, Thomas and Peter were not very fond of this kind of solution.
(guys, feel free to correct me if I speak with my ass ;)).

btw, afaics:
- *-config provided by the imagemagick package wrap some calls to pkg-config;
- many packages in BR install handwritten scripts like this, as well
as some *.pc files.
So what about just use pkgconf since it's properly handled in BR?
(I agree it may mean patching many packages that only search for
*-config scripts)
- in this patch serie, only libgcrypt does not provide a *.pc file :-(

Regards,

-- 
Samuel

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

* [Buildroot] [PATCH] divine: fix divine-config
  2013-01-04 14:17   ` Samuel Martin
@ 2013-01-04 14:29     ` Gustavo Zacarias
  2013-01-04 14:56       ` Stefan Fröberg
  2013-01-04 16:29     ` Thomas Petazzoni
  1 sibling, 1 reply; 32+ messages in thread
From: Gustavo Zacarias @ 2013-01-04 14:29 UTC (permalink / raw)
  To: buildroot

On 01/04/2013 11:17 AM, Samuel Martin wrote:

> We quickly talked about this during the last Buildroot Dev. Days.
> 
> IIRC, Thomas and Peter were not very fond of this kind of solution.
> (guys, feel free to correct me if I speak with my ass ;)).
> 
> btw, afaics:
> - *-config provided by the imagemagick package wrap some calls to pkg-config;
> - many packages in BR install handwritten scripts like this, as well
> as some *.pc files.
> So what about just use pkgconf since it's properly handled in BR?
> (I agree it may mean patching many packages that only search for
> *-config scripts)
> - in this patch serie, only libgcrypt does not provide a *.pc file :-(
> 
> Regards,

I agree *-config files aren't nice, but they are still here and quite used.
When the scenario is a "not very standard" *-config file that can't be
easily fixed, one could just avoid the autopatcher and do it the old
fashion way.
It's a good goal to get rid of them, but realistically it won't happen
anytime soon - you'll need to get *.pc files for *-config packages that
don't provide them, and you'll also need to patch a lot to get them to
use said pc files (with the added dep to host-pkgconf which is now small
given my migration away from pkg-config hehe).
Long story short, they're still here, so why not do it nicely until we
get rid of them all?
Just for fun, try to autoreconfigure PHP and see what happens. It's a
heavy user of *-config scripts :)
Regards.

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

* [Buildroot] [PATCH] divine: fix divine-config
  2013-01-04 14:29     ` Gustavo Zacarias
@ 2013-01-04 14:56       ` Stefan Fröberg
  2013-01-04 15:00         ` Gustavo Zacarias
  2013-01-06  5:41         ` Baruch Siach
  0 siblings, 2 replies; 32+ messages in thread
From: Stefan Fröberg @ 2013-01-04 14:56 UTC (permalink / raw)
  To: buildroot

Hello Gustavo, all

4.1.2013 16:29, Gustavo Zacarias kirjoitti:
> On 01/04/2013 11:17 AM, Samuel Martin wrote:
>
>> We quickly talked about this during the last Buildroot Dev. Days.
>>
>> IIRC, Thomas and Peter were not very fond of this kind of solution.
>> (guys, feel free to correct me if I speak with my ass ;)).
>>
>> btw, afaics:
>> - *-config provided by the imagemagick package wrap some calls to pkg-config;
>> - many packages in BR install handwritten scripts like this, as well
>> as some *.pc files.
>> So what about just use pkgconf since it's properly handled in BR?
>> (I agree it may mean patching many packages that only search for
>> *-config scripts)
>> - in this patch serie, only libgcrypt does not provide a *.pc file :-(
>>
>> Regards,
> I agree *-config files aren't nice, but they are still here and quite used.
> When the scenario is a "not very standard" *-config file that can't be
> easily fixed, one could just avoid the autopatcher and do it the old
> fashion way.
> It's a good goal to get rid of them, but realistically it won't happen
> anytime soon - you'll need to get *.pc files for *-config packages that
> don't provide them, and you'll also need to patch a lot to get them to
> use said pc files (with the added dep to host-pkgconf which is now small
> given my migration away from pkg-config hehe).
> Long story short, they're still here, so why not do it nicely until we
> get rid of them all?
> Just for fun, try to autoreconfigure PHP and see what happens. It's a
> heavy user of *-config scripts :)
> Regards.
>

So should I continue patching correct buildroot prefixes to all those
*-config files that
are in $(STAGING_DIR)/usr/bin or not ?

From my $(STAGING_DIR)/usr/bin/*-config files only libpng and libxml2
and few others
do the right thing and give the buildroot prefix and not the host system
prefix.
(It took a long time for me to figure why wireshark that im trying to
compile here did not
work out with libpcap, untill I found out that the
$(STAGING_DIR)/usr/bin/pcap-config spit a
wrong prefix all the time...)

Regards
Stefan

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

* [Buildroot] [PATCH] divine: fix divine-config
  2013-01-04 14:56       ` Stefan Fröberg
@ 2013-01-04 15:00         ` Gustavo Zacarias
  2013-01-06  5:41         ` Baruch Siach
  1 sibling, 0 replies; 32+ messages in thread
From: Gustavo Zacarias @ 2013-01-04 15:00 UTC (permalink / raw)
  To: buildroot

On 01/04/2013 11:56 AM, Stefan Fr?berg wrote:

> So should I continue patching correct buildroot prefixes to all those
> *-config files that
> are in $(STAGING_DIR)/usr/bin or not ?
> 
> From my $(STAGING_DIR)/usr/bin/*-config files only libpng and libxml2
> and few others
> do the right thing and give the buildroot prefix and not the host system
> prefix.
> (It took a long time for me to figure why wireshark that im trying to
> compile here did not
> work out with libpcap, untill I found out that the
> $(STAGING_DIR)/usr/bin/pcap-config spit a
> wrong prefix all the time...)

That's because libpng & libxml2 are doing what your patches do, fixing
up the *-config files.
What Samuel said (correct me if i'm wrong) is the developers meeting
kind of agreed on just dropping the *-config files in favour of
pkgconfig-based (*.pc) solutions, and patch wherever necessary.
What i say is let's fix the dreaded *-config files but in a generic way,
just declaring the relevant files to be fixed as the original mail i
replied to you said until we can properly move to a pkgconfig-only
solution, which i think won't be fast or easy.
Regards.

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

* [Buildroot] [PATCH] divine: fix divine-config
  2013-01-04 14:17   ` Samuel Martin
  2013-01-04 14:29     ` Gustavo Zacarias
@ 2013-01-04 16:29     ` Thomas Petazzoni
  1 sibling, 0 replies; 32+ messages in thread
From: Thomas Petazzoni @ 2013-01-04 16:29 UTC (permalink / raw)
  To: buildroot

Dear Samuel Martin,

On Fri, 4 Jan 2013 15:17:42 +0100, Samuel Martin wrote:

> We quickly talked about this during the last Buildroot Dev. Days.
> 
> IIRC, Thomas and Peter were not very fond of this kind of solution.
> (guys, feel free to correct me if I speak with my ass ;)).

I might remember wrong, but I think the solution I did not like was
blindly patching *ALL* the files matching *-config.

The solution proposed by Gustavo, where the foo-config files to be
patched are explicitly listed in a package variable sounds fine to me,
as long as the common thing is only to patch prefix and exec_prefix,
the other more specialized fixes (if any) have to be left to the
package specific .mk file.

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

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

* [Buildroot] [PATCH] divine: fix divine-config
  2013-01-04 11:41 ` [Buildroot] [PATCH] divine: fix divine-config Gustavo Zacarias
  2013-01-04 14:17   ` Samuel Martin
@ 2013-01-04 16:31   ` Thomas Petazzoni
  2013-01-04 17:10     ` Gustavo Zacarias
  1 sibling, 1 reply; 32+ messages in thread
From: Thomas Petazzoni @ 2013-01-04 16:31 UTC (permalink / raw)
  To: buildroot

Dear Gustavo Zacarias,

On Fri, 04 Jan 2013 08:41:22 -0300, Gustavo Zacarias wrote:
> On 01/03/2013 07:09 PM, Stefan Fr?berg wrote:
> 
> > +define DIVINE_STAGING_DIVINE_CONFIG_FIXUP
> > +	$(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/divine-config
> > +	$(SED) "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/divine-config
> > +endef
> > +
> > +DIVINE_POST_INSTALL_STAGING_HOOKS += DIVINE_STAGING_DIVINE_CONFIG_FIXUP
> > +
> 
> This could be handled in a generic way for all the packages that ship a
> *-config file.
> Something like:
> 
> DIVINE_CONFIG_FIXUP = divine-config
> 
> And then do the generic sed magic in package/pkg-generic.mk
> How about that?

Sounds ok, but instead:

DIVINE_CONFIG_FIXUP = $(STAGING_DIR)/usr/bin/divine-config

And also need to support multiple files being passed.

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

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

* [Buildroot] [PATCH] divine: fix divine-config
  2013-01-04 16:31   ` Thomas Petazzoni
@ 2013-01-04 17:10     ` Gustavo Zacarias
  2013-01-04 17:13       ` Stefan Fröberg
  0 siblings, 1 reply; 32+ messages in thread
From: Gustavo Zacarias @ 2013-01-04 17:10 UTC (permalink / raw)
  To: buildroot

On 01/04/2013 01:31 PM, Thomas Petazzoni wrote:

> Sounds ok, but instead:
> 
> DIVINE_CONFIG_FIXUP = $(STAGING_DIR)/usr/bin/divine-config
> 
> And also need to support multiple files being passed.

Yes, it was a sample rather than a finished idea.
Multiple files is mandatory, one package could install more than one
*-config file.
Full path, i'm not completely sold on that, at least not with
$(STAGING_DIR).
It's a given, there's no other place where we want to fix it, so i'd say
just "/usr/bin/divine-config" without the prefix in the package files.
So, Stefan, do you want to do this? ;)
Regards.

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

* [Buildroot] [PATCH] divine: fix divine-config
  2013-01-04 17:10     ` Gustavo Zacarias
@ 2013-01-04 17:13       ` Stefan Fröberg
  0 siblings, 0 replies; 32+ messages in thread
From: Stefan Fröberg @ 2013-01-04 17:13 UTC (permalink / raw)
  To: buildroot

4.1.2013 19:10, Gustavo Zacarias kirjoitti:
> On 01/04/2013 01:31 PM, Thomas Petazzoni wrote:
>
>> Sounds ok, but instead:
>>
>> DIVINE_CONFIG_FIXUP = $(STAGING_DIR)/usr/bin/divine-config
>>
>> And also need to support multiple files being passed.
> Yes, it was a sample rather than a finished idea.
> Multiple files is mandatory, one package could install more than one
> *-config file.
> Full path, i'm not completely sold on that, at least not with
> $(STAGING_DIR).
> It's a given, there's no other place where we want to fix it, so i'd say
> just "/usr/bin/divine-config" without the prefix in the package files.
> So, Stefan, do you want to do this? ;)
> Regards.
>

Sure, but only after weekend. ;)
Time to zero brain now and give buildroot a little rest.

Happy weekend everyone

Regards
Stefan

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

* [Buildroot] [PATCH] imagemagick: fix Magick[++|Core|Wand]-config
  2013-01-03 22:09 ` [Buildroot] [PATCH] imagemagick: fix Magick[++|Core|Wand]-config Stefan Fröberg
@ 2013-01-04 21:45   ` Peter Korsgaard
  0 siblings, 0 replies; 32+ messages in thread
From: Peter Korsgaard @ 2013-01-04 21:45 UTC (permalink / raw)
  To: buildroot

>>>>> "Stefan" == Stefan Fr?berg <stefan.froberg@petroprogram.com> writes:

 Stefan> Signed-off-by: Stefan Fr?berg <stefan.froberg@petroprogram.com>
 Stefan> ---
 Stefan>  package/imagemagick/imagemagick.mk |   19 +++++++++++++++++++
 Stefan>  1 files changed, 19 insertions(+), 0 deletions(-)

 Stefan> diff --git a/package/imagemagick/imagemagick.mk b/package/imagemagick/imagemagick.mk
 Stefan> index 0476ace..00aa81f 100644
 Stefan> --- a/package/imagemagick/imagemagick.mk
 Stefan> +++ b/package/imagemagick/imagemagick.mk
 Stefan> @@ -119,6 +119,25 @@ define IMAGEMAGICK_REMOVE_CONFIG_SCRIPTS
 Stefan>  		     Magick MagickCore MagickWand Wand Magick++))
 Stefan>  endef
 
 Stefan> +define IMAGEMAGICK_STAGING_IMAGEMAGICK_CONFIG_FIXUP
 Stefan> +	$(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/Magick-config
 Stefan> +	$(SED) "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/Magick-config


It's nicer to change the file with a single sed (-e) invocation, instead
of two.

 Stefan> +
 Stefan> +	$(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/Magick++-config

Some of these files only gets installed if certainly packages /
toolchain configurations are enabled, so the build fails with errors
like:

/bin/sed: can't read /home/peko/source/buildroot/test/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/bin/Magick++-config: No such file or directory

So you need to check if the files exist first.

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH] divine: fix divine-config
  2013-01-03 22:09 [Buildroot] [PATCH] divine: fix divine-config Stefan Fröberg
                   ` (7 preceding siblings ...)
  2013-01-04 11:41 ` [Buildroot] [PATCH] divine: fix divine-config Gustavo Zacarias
@ 2013-01-04 21:49 ` Peter Korsgaard
  8 siblings, 0 replies; 32+ messages in thread
From: Peter Korsgaard @ 2013-01-04 21:49 UTC (permalink / raw)
  To: buildroot

>>>>> "Stefan" == Stefan Fr?berg <stefan.froberg@petroprogram.com> writes:

 Stefan> Signed-off-by: Stefan Fr?berg <stefan.froberg@petroprogram.com>

Committed series except for the imagemagick one which needs more work,
after fixing up the fixup to use a single sed invocation per file -
Thanks.

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH] xlib_libXft: fix xft-config
  2013-01-03 22:09 ` [Buildroot] [PATCH] xlib_libXft: fix xft-config Stefan Fröberg
@ 2013-01-04 23:30   ` Peter Korsgaard
  2013-01-05 13:33     ` Stefan Fröberg
  0 siblings, 1 reply; 32+ messages in thread
From: Peter Korsgaard @ 2013-01-04 23:30 UTC (permalink / raw)
  To: buildroot

>>>>> "Stefan" == Stefan Fr?berg <stefan.froberg@petroprogram.com> writes:

 Stefan> Signed-off-by: Stefan Fr?berg <stefan.froberg@petroprogram.com>
 Stefan> ---
 Stefan>  package/x11r7/xlib_libXft/xlib_libXft.mk |    7 +++++++
 Stefan>  1 files changed, 7 insertions(+), 0 deletions(-)

 Stefan> diff --git a/package/x11r7/xlib_libXft/xlib_libXft.mk b/package/x11r7/xlib_libXft/xlib_libXft.mk
 Stefan> index eab75ef..70c64bc 100644
 Stefan> --- a/package/x11r7/xlib_libXft/xlib_libXft.mk
 Stefan> +++ b/package/x11r7/xlib_libXft/xlib_libXft.mk
 Stefan> @@ -11,4 +11,11 @@ XLIB_LIBXFT_AUTORECONF = YES
 Stefan>  XLIB_LIBXFT_INSTALL_STAGING = YES
 Stefan>  XLIB_LIBXFT_DEPENDENCIES = fontconfig freetype xlib_libX11 xlib_libXext xlib_libXrender xproto_xproto
 
 Stefan> +define XLIB_LIBXFT_STAGING_XLIB_LIBXFT_CONFIG_FIXUP
 Stefan> +	$(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/xft-config
 Stefan> +	$(SED) "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/xft-config
 Stefan> +endef
 Stefan> +
 Stefan> +XLIB_LIBXFT_POST_INSTALL_STAGING_HOOKS += XLIB_LIBXFT_STAGING_XLIB_LIBXFT_CONFIG_FIXUP

Ehh, are you using an old tree? There is no xft-config:

http://autobuild.buildroot.net/results/e8c00cf5ec1e3829cd9013710bb1961d9c226c34/build-end.log

Looking at it's changelog it seems to have been removed in 2010:
commit f2bd643475a555949558ff6f889c575da33c28a4
Author: Gaetan Nadon <memsize@videotron.ca>
Date:   Tue Mar 30 14:01:31 2010 -0400

    config: remove deprecated xft-config script and man page
    
    This was put in place early 2000 when pkg-config was not used.
    
    Reviewed-by: R?mi Cardona <remi@gentoo.org>
    Signed-off-by: Gaetan Nadon <memsize@videotron.ca>

We haven't updated the libXft package since April 2011, so it's been a
while.

I've reverted the commit for now.

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH] xlib_libXft: fix xft-config
  2013-01-04 23:30   ` Peter Korsgaard
@ 2013-01-05 13:33     ` Stefan Fröberg
  0 siblings, 0 replies; 32+ messages in thread
From: Stefan Fröberg @ 2013-01-05 13:33 UTC (permalink / raw)
  To: buildroot

Hi Peter

5.1.2013 1:30, Peter Korsgaard kirjoitti:
>>>>>> "Stefan" == Stefan Fr?berg <stefan.froberg@petroprogram.com> writes:
>  Stefan> Signed-off-by: Stefan Fr?berg <stefan.froberg@petroprogram.com>
>  Stefan> ---
>  Stefan>  package/x11r7/xlib_libXft/xlib_libXft.mk |    7 +++++++
>  Stefan>  1 files changed, 7 insertions(+), 0 deletions(-)
>
>  Stefan> diff --git a/package/x11r7/xlib_libXft/xlib_libXft.mk b/package/x11r7/xlib_libXft/xlib_libXft.mk
>  Stefan> index eab75ef..70c64bc 100644
>  Stefan> --- a/package/x11r7/xlib_libXft/xlib_libXft.mk
>  Stefan> +++ b/package/x11r7/xlib_libXft/xlib_libXft.mk
>  Stefan> @@ -11,4 +11,11 @@ XLIB_LIBXFT_AUTORECONF = YES
>  Stefan>  XLIB_LIBXFT_INSTALL_STAGING = YES
>  Stefan>  XLIB_LIBXFT_DEPENDENCIES = fontconfig freetype xlib_libX11 xlib_libXext xlib_libXrender xproto_xproto
>  
>  Stefan> +define XLIB_LIBXFT_STAGING_XLIB_LIBXFT_CONFIG_FIXUP
>  Stefan> +	$(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/xft-config
>  Stefan> +	$(SED) "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/xft-config
>  Stefan> +endef
>  Stefan> +
>  Stefan> +XLIB_LIBXFT_POST_INSTALL_STAGING_HOOKS += XLIB_LIBXFT_STAGING_XLIB_LIBXFT_CONFIG_FIXUP
>
> Ehh, are you using an old tree? There is no xft-config:
No, Im using 2012.08 now and just switched from 2012.05.

> http://autobuild.buildroot.net/results/e8c00cf5ec1e3829cd9013710bb1961d9c226c34/build-end.log
>
> Looking at it's changelog it seems to have been removed in 2010:
> commit f2bd643475a555949558ff6f889c575da33c28a4
> Author: Gaetan Nadon <memsize@videotron.ca>
> Date:   Tue Mar 30 14:01:31 2010 -0400
>
>     config: remove deprecated xft-config script and man page
>     
>     This was put in place early 2000 when pkg-config was not used.
>     
>     Reviewed-by: R?mi Cardona <remi@gentoo.org>
>     Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
>
> We haven't updated the libXft package since April 2011, so it's been a
> while.
>
> I've reverted the commit for now.
>
Strange...
Ill do make clean && make and see if I still end up with having xft-config

Regards
Stefan

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

* [Buildroot] [PATCH] divine: fix divine-config
  2013-01-04 14:56       ` Stefan Fröberg
  2013-01-04 15:00         ` Gustavo Zacarias
@ 2013-01-06  5:41         ` Baruch Siach
  2013-01-06  8:27           ` Samuel Martin
                             ` (2 more replies)
  1 sibling, 3 replies; 32+ messages in thread
From: Baruch Siach @ 2013-01-06  5:41 UTC (permalink / raw)
  To: buildroot

Hi Stefan,

On Fri, Jan 04, 2013 at 04:56:53PM +0200, Stefan Fr?berg wrote:
> Hello Gustavo, all

[...]

> (It took a long time for me to figure why wireshark that im trying to
> compile here did not
> work out with libpcap, untill I found out that the
> $(STAGING_DIR)/usr/bin/pcap-config spit a
> wrong prefix all the time...)

Good to see work on wireshark. Did you fix the RPATH problem I encountered 
while trying to build tshark 
(http://article.gmane.org/gmane.comp.lib.uclibc.buildroot/48053) ?

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

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

* [Buildroot] [PATCH] divine: fix divine-config
  2013-01-06  5:41         ` Baruch Siach
@ 2013-01-06  8:27           ` Samuel Martin
  2013-01-06  8:34             ` Baruch Siach
  2013-01-06 14:15           ` Stefan Fröberg
  2013-01-06 18:12           ` Stefan Fröberg
  2 siblings, 1 reply; 32+ messages in thread
From: Samuel Martin @ 2013-01-06  8:27 UTC (permalink / raw)
  To: buildroot

Hi Baruch,

2013/1/6 Baruch Siach <baruch@tkos.co.il>:
[...]
>
> Good to see work on wireshark. Did you fix the RPATH problem I encountered
> while trying to build tshark
> (http://article.gmane.org/gmane.comp.lib.uclibc.buildroot/48053) ?
What do you mean by local build path? Paths to some build directories?

I've already done some work on this, but I lack some time to rebase,
cleanup and submit :-/ (hope, I can switch back on it soon...)

If you'd like to have a look at it:
https://github.com/tSed/buildroot/commits/sma/rpath-cleanup

especially these commits:
7e74622b02177063c4326aed6345e7920772b44b
dbfec772a6b95e51427ebd58f301f2f4ad30296e


Regards,

-- 
Samuel

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

* [Buildroot] [PATCH] divine: fix divine-config
  2013-01-06  8:27           ` Samuel Martin
@ 2013-01-06  8:34             ` Baruch Siach
  2013-01-06 12:39               ` Thomas Petazzoni
  0 siblings, 1 reply; 32+ messages in thread
From: Baruch Siach @ 2013-01-06  8:34 UTC (permalink / raw)
  To: buildroot

Hi Samuel,

On Sun, Jan 06, 2013 at 09:27:19AM +0100, Samuel Martin wrote:
> 2013/1/6 Baruch Siach <baruch@tkos.co.il>:
> [...]
> >
> > Good to see work on wireshark. Did you fix the RPATH problem I encountered
> > while trying to build tshark
> > (http://article.gmane.org/gmane.comp.lib.uclibc.buildroot/48053) ?
> What do you mean by local build path? Paths to some build directories?

Yes.

> I've already done some work on this, but I lack some time to rebase,
> cleanup and submit :-/ (hope, I can switch back on it soon...)
> 
> If you'd like to have a look at it:
> https://github.com/tSed/buildroot/commits/sma/rpath-cleanup
> 
> especially these commits:
> 7e74622b02177063c4326aed6345e7920772b44b
> dbfec772a6b95e51427ebd58f301f2f4ad30296e

So is local build directories in RPATH currently a fact of life? If so can my 
wireshark package (linked above) be merged as is? Peter?

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

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

* [Buildroot] [PATCH] divine: fix divine-config
  2013-01-06  8:34             ` Baruch Siach
@ 2013-01-06 12:39               ` Thomas Petazzoni
  0 siblings, 0 replies; 32+ messages in thread
From: Thomas Petazzoni @ 2013-01-06 12:39 UTC (permalink / raw)
  To: buildroot

Dear Baruch Siach,

On Sun, 6 Jan 2013 10:34:35 +0200, Baruch Siach wrote:

> So is local build directories in RPATH currently a fact of life? If so can my 
> wireshark package (linked above) be merged as is? Peter?

We currently have packages that carry on the target a RPATH to the
build directory. It is not nice, but harmless since it is highly
unlikely that this path is going to exist on the target.

Therefore, I wouldn't say that having the build directory as a RPATH in
the final binary is a show-stopper to get the package included.

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

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

* [Buildroot] [PATCH] divine: fix divine-config
  2013-01-06  5:41         ` Baruch Siach
  2013-01-06  8:27           ` Samuel Martin
@ 2013-01-06 14:15           ` Stefan Fröberg
  2013-01-06 18:12           ` Stefan Fröberg
  2 siblings, 0 replies; 32+ messages in thread
From: Stefan Fröberg @ 2013-01-06 14:15 UTC (permalink / raw)
  To: buildroot

Hi Baruch

6.1.2013 7:41, Baruch Siach kirjoitti:
> Hi Stefan,
>
> On Fri, Jan 04, 2013 at 04:56:53PM +0200, Stefan Fr?berg wrote:
>> Hello Gustavo, all
> [...]
>
>> (It took a long time for me to figure why wireshark that im trying to
>> compile here did not
>> work out with libpcap, untill I found out that the
>> $(STAGING_DIR)/usr/bin/pcap-config spit a
>> wrong prefix all the time...)
> Good to see work on wireshark. Did you fix the RPATH problem I encountered 
> while trying to build tshark 
> (http://article.gmane.org/gmane.comp.lib.uclibc.buildroot/48053) ?
>
> baruch
>

Well, I have managed to compile almost out of the box of wireshark
version 1.8.4.
The only patch
I borrowed was from gentoo linux witch is suppose to fix those damn
-L/usr/lib being
included. Also needed to fix buildroots libpcap config file,
$(STAGING_DIR)/usr/bin/pcap-config.

I did the full gui-wireshark build with almost all the stuff inluded
(left out kerberos and geoip) and
then it stopped at the final linking phase where it was suppose to
create wireshark binary.
Really frustrating.

My buildroot full system is soon rebuild and then I will try to build
wireshark again and post
the error message here.

Regards
Stefan

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

* [Buildroot] [PATCH] divine: fix divine-config
  2013-01-06  5:41         ` Baruch Siach
  2013-01-06  8:27           ` Samuel Martin
  2013-01-06 14:15           ` Stefan Fröberg
@ 2013-01-06 18:12           ` Stefan Fröberg
  2013-01-07 22:17             ` Arnout Vandecappelle
  2 siblings, 1 reply; 32+ messages in thread
From: Stefan Fröberg @ 2013-01-06 18:12 UTC (permalink / raw)
  To: buildroot

Hi Baruch

6.1.2013 7:41, Baruch Siach kirjoitti:
> Hi Stefan,
>
> On Fri, Jan 04, 2013 at 04:56:53PM +0200, Stefan Fr?berg wrote:
>> Hello Gustavo, all
> [...]
>
>> (It took a long time for me to figure why wireshark that im trying to
>> compile here did not
>> work out with libpcap, untill I found out that the
>> $(STAGING_DIR)/usr/bin/pcap-config spit a
>> wrong prefix all the time...)
> Good to see work on wireshark. Did you fix the RPATH problem I encountered 
> while trying to build tshark 
> (http://article.gmane.org/gmane.comp.lib.uclibc.buildroot/48053) ?
>
> baruch
>
This is the problem Im having right now:

make[2]: Siirryt??n hakemistoon
"/mnt/hee/new/buildroot-2012.08/output/build/wireshark-1.8.4"
/usr/bin/perl ./make-version.pl .
Version configuration file version.conf not found.  Using defaults.
svnversion.h unchanged.
/bin/sh ./libtool  --tag=CC   --mode=link
/mnt/hee/new/buildroot-2012.08/output/host/usr/bin/i586-unknown-linux-uclibc-gcc 
-DPYTHON_DIR= -pipe -funit-at-a-time -Wno-error -Os -Os 
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wall
-W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wpointer-arith
-Wno-pointer-sign -Warray-bounds -Wcast-align -Wformat-security
-Wold-style-definition -Wno-error=unused-but-set-variable
-fexcess-precision=fast -pthread -D_REENTRANT
-I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/gtk-2.0
-I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/gtk-2.0/include
-I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/atk-1.0
-I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/cairo
-I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/gdk-pixbuf-2.0
-I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/pango-1.0
-I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/glib-2.0
-I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/glib-2.0/include
-I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/pixman-1
-I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/freetype2
-I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/directfb
-I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/libpng14  
-Wl,-static -all-static -Wl,-S -Wl,-O1 -Wl,--as-needed -Wl,-z
-Wl,combreloc -Wl,--enable-new-dtags -Wl,--hash-style=gnu
-Wl,--as-needed -o wireshark wireshark-capture-pcap-util-unix.o
wireshark-capture-pcap-util.o wireshark-cfile.o
wireshark-clopts_common.o wireshark-disabled_protos.o
wireshark-frame_data_sequence.o wireshark-packet-range.o
wireshark-print.o wireshark-ps.o wireshark-sync_pipe_write.o
wireshark-timestats.o wireshark-tap-megaco-common.o
wireshark-tap-rtp-common.o wireshark-version_info.o
wireshark-capture_ifinfo.o wireshark-capture_sync.o
wireshark-capture_ui_utils.o wireshark-airpcap_loader.o
wireshark-capture.o wireshark-capture_info.o wireshark-capture_opts.o
wireshark-color_filters.o wireshark-file.o wireshark-fileset.o
wireshark-filters.o wireshark-g711.o wireshark-merge.o
wireshark-proto_hier_stats.o wireshark-recent.o wireshark-summary.o
wireshark-tempfile.o wireshark-u3.o ui/gtk/libgtkui.a
ui/gtk/libgtkui_dirty.a ui/libui.a codecs/libcodec.a
wiretap/libwiretap.la epan/libwireshark.la wsutil/libwsutil.la -lcrypto 
-dlopen plugins/asn1/asn1.la -dlopen plugins/docsis/docsis.la -dlopen
plugins/ethercat/ethercat.la -dlopen plugins/gryphon/gryphon.la -dlopen
plugins/irda/irda.la -dlopen plugins/m2m/m2m.la -dlopen
plugins/mate/mate.la -dlopen plugins/opcua/opcua.la -dlopen
plugins/profinet/profinet.la -dlopen plugins/stats_tree/stats_tree.la
-dlopen plugins/unistim/unistim.la -dlopen plugins/wimax/wimax.la
-L/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib
-lpcap -lusb-1.0 -lpthread -ladns -lgcrypt -lgpg-error -lgnutls -pthread
-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0
-lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype
-lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lintl
-pthread -Wl,--export-dynamic -lgthread-2.0 -lgmodule-2.0 -lglib-2.0
-lintl -lm -lz
libtool: link: rm -f .libs/wireshark.nm .libs/wireshark.nmS
.libs/wireshark.nmT
libtool: link: (cd .libs &&
/mnt/hee/new/buildroot-2012.08/output/host/usr/bin/i586-unknown-linux-uclibc-gcc
-pipe -funit-at-a-time -Wno-error -Os -Os -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -W -Wextra
-Wdeclaration-after-statement -Wendif-labels -Wpointer-arith
-Wno-pointer-sign -Warray-bounds -Wcast-align -Wformat-security
-Wold-style-definition -Wno-error=unused-but-set-variable
-fexcess-precision=fast -pthread -D_REENTRANT
-I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/gtk-2.0
-I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/gtk-2.0/include
-I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/atk-1.0
-I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/cairo
-I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/gdk-pixbuf-2.0
-I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/pango-1.0
-I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/glib-2.0
-I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/glib-2.0/include
-I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/pixman-1
-I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/freetype2
-I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/directfb
-I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/libpng14
-c -fno-builtin "wiresharkS.c")
libtool: link: rm -f ".libs/wiresharkS.c" ".libs/wireshark.nm"
".libs/wireshark.nmS" ".libs/wireshark.nmT"
libtool: link:
/mnt/hee/new/buildroot-2012.08/output/host/usr/bin/i586-unknown-linux-uclibc-gcc
-DPYTHON_DIR= -pipe -funit-at-a-time -Wno-error -Os -Os
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wall
-W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wpointer-arith
-Wno-pointer-sign -Warray-bounds -Wcast-align -Wformat-security
-Wold-style-definition -Wno-error=unused-but-set-variable
-fexcess-precision=fast -pthread -D_REENTRANT
-I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/gtk-2.0
-I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/gtk-2.0/include
-I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/atk-1.0
-I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/cairo
-I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/gdk-pixbuf-2.0
-I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/pango-1.0
-I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/glib-2.0
-I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/glib-2.0/include
-I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/pixman-1
-I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/freetype2
-I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/directfb
-I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/libpng14
-Wl,-static -static -Wl,-S -Wl,-O1 -Wl,--as-needed -Wl,-z -Wl,combreloc
-Wl,--enable-new-dtags -Wl,--hash-style=gnu -Wl,--as-needed -o wireshark
wireshark-capture-pcap-util-unix.o wireshark-capture-pcap-util.o
wireshark-cfile.o wireshark-clopts_common.o wireshark-disabled_protos.o
wireshark-frame_data_sequence.o wireshark-packet-range.o
wireshark-print.o wireshark-ps.o wireshark-sync_pipe_write.o
wireshark-timestats.o wireshark-tap-megaco-common.o
wireshark-tap-rtp-common.o wireshark-version_info.o
wireshark-capture_ifinfo.o wireshark-capture_sync.o
wireshark-capture_ui_utils.o wireshark-airpcap_loader.o
wireshark-capture.o wireshark-capture_info.o wireshark-capture_opts.o
wireshark-color_filters.o wireshark-file.o wireshark-fileset.o
wireshark-filters.o wireshark-g711.o wireshark-merge.o
wireshark-proto_hier_stats.o wireshark-recent.o wireshark-summary.o
wireshark-tempfile.o wireshark-u3.o .libs/wiresharkS.o -pthread -pthread
-Wl,--export-dynamic  plugins/asn1/.libs/asn1.a
plugins/docsis/.libs/docsis.a plugins/ethercat/.libs/ethercat.a
plugins/gryphon/.libs/gryphon.a plugins/irda/.libs/irda.a
plugins/m2m/.libs/m2m.a plugins/mate/.libs/mate.a
plugins/opcua/.libs/opcua.a plugins/profinet/.libs/profinet.a
plugins/stats_tree/.libs/stats_tree.a plugins/unistim/.libs/unistim.a
plugins/wimax/.libs/wimax.a ui/gtk/libgtkui.a ui/gtk/libgtkui_dirty.a
ui/libui.a codecs/libcodec.a wiretap/.libs/libwiretap.a
epan/.libs/libwireshark.a -lgnutls -L/usr/lib
/mnt/hee/new/buildroot-2012.08/output/build/wireshark-1.8.4/wiretap/.libs/libwiretap.a
/mnt/hee/new/buildroot-2012.08/output/build/wireshark-1.8.4/wsutil/.libs/libwsutil.a
wsutil/.libs/libwsutil.a -lcrypto
-L/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib
-lpcap
/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libusb-1.0.a
-ladns
/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.a
-lgcrypt
/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgcrypt.a
-lgpg-error
/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgpg-error.a
/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgtk-x11-2.0.a
/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgdk-x11-2.0.a
/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libatk-1.0.a
/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libpangoft2-1.0.a
/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libpangocairo-1.0.a
-lcairo
/mnt/hee/new/buildroot-2012.08/output/build/pango-1.28.4/pango/.libs/libpangoft2-1.0.a
/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/lib/libstdc++.a
/mnt/hee/new/buildroot-2012.08/output/build/pango-1.28.4/pango/.libs/libpango-1.0.a
/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgdk_pixbuf-2.0.a
-lgio-2.0
/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgio-2.0.a
/mnt/hee/new/buildroot-2012.08/output/build/libglib2-2.30.2/gobject/.libs/libgobject-2.0.a
/mnt/hee/new/buildroot-2012.08/output/build/libglib2-2.30.2/gmodule/.libs/libgmodule-2.0.a
/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libcairo.a
-lpixman-1 -lfontconfig -lfreetype -lxcb-shm -lxcb-render -lXrender
-lXext
/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libpixman-1.a
/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libdirectfb.a
/mnt/hee/new/buildroot-2012.08/output/build/directfb-1.4.16/lib/fusion/.libs/libfusion.a
/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libfusion.a
/mnt/hee/new/buildroot-2012.08/output/build/directfb-1.4.16/lib/direct/.libs/libdirect.a
/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libdirect.a
/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libpng14.a
/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libxcb-shm.a
/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libxcb-render.a
/mnt/hee/new/buildroot-2012.08/output/build/libxcb-1.8.1/src/.libs/libxcb.a
/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libxcb.a
-lXau -lXdmcp
/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libXrender.a
/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libX11.a
-lxcb
/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libXext.a
-lX11 -lrt
/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libpango-1.0.a
-lgobject-2.0 -lgthread-2.0 -lgmodule-2.0 -lglib-2.0
/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libfontconfig.a
/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libfreetype.a
-lbz2
/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libexpat.a
/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgobject-2.0.a
-lffi
/mnt/hee/new/buildroot-2012.08/output/build/libglib2-2.30.2/gthread/.libs/libgthread-2.0.a
/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libffi.a
/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgthread-2.0.a
-lpthread
/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgmodule-2.0.a
-ldl
/mnt/hee/new/buildroot-2012.08/output/build/libglib2-2.30.2/glib/.libs/libglib-2.0.a
/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libglib-2.0.a
/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libintl.a
-lc -lm -lz -pthread
/mnt/hee/new/buildroot-2012.08/output/build/libglib2-2.30.2/gmodule/.libs/libgmodule-2.0.a(gmodule.o):
In function `g_module_open':
gmodule.c:(.text+0x35c): warning: Using 'dlopen' in statically linked
applications requires at runtime the shared libraries from the glibc
version used for linking
/usr/lib/libc.a(dcigettext.o): In function `_nl_find_msg':
(.text+0x250): multiple definition of `_nl_find_msg'
/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libintl.a(dcigettext.o):dcigettext.c:(.text+0x1f7):
first defined here
/usr/lib/libc.a(dcigettext.o):(.bss+0x0): multiple definition of
`_nl_state_lock'
/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libintl.a(dcigettext.o):(.bss+0x0):
first defined here
/usr/lib/libc.a(finddomain.o): In function `_nl_find_domain':
(.text+0x0): multiple definition of `_nl_find_domain'
/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libintl.a(finddomain.o):finddomain.c:(.text+0x0):
first defined here
/usr/lib/libc.a(loadmsgcat.o): In function `_nl_load_domain':
(.text+0x0): multiple definition of `_nl_load_domain'
/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libintl.a(loadmsgcat.o):loadmsgcat.c:(.text+0x7):
first defined here
/mnt/hee/new/buildroot-2012.08/output/build/wireshark-1.8.4/wsutil/.libs/libwsutil.a(privileges.o):
In function `get_cur_groupname':
privileges.c:(.text+0x179): warning: Using 'getgrgid' in statically
linked applications requires at runtime the shared libraries from the
glibc version used for linking
privileges.c:(.text+0x19f): warning: Using 'endgrent' in statically
linked applications requires at runtime the shared libraries from the
glibc version used for linking
/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgio-2.0.a(libgio_2_0_la-glocalvfs.o):
In function `g_local_vfs_parse_name':
glocalvfs.c:(.text+0x10a): warning: Using 'getpwnam' in statically
linked applications requires at runtime the shared libraries from the
glibc version used for linking
epan/.libs/libwireshark.a(libwireshark_la-filesystem.o): In function
`get_persconffile_dir_no_profile.part.0':
filesystem.c:(.text+0x23): warning: Using 'getpwuid' in statically
linked applications requires at runtime the shared libraries from the
glibc version used for linking
/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libglib-2.0.a(gutils.o):
In function `g_get_any_init':
gutils.c:(.text+0x970): warning: Using 'setpwent' in statically linked
applications requires at runtime the shared libraries from the glibc
version used for linking
/mnt/hee/new/buildroot-2012.08/output/build/wireshark-1.8.4/wsutil/.libs/libwsutil.a(privileges.o):
In function `get_cur_username':
privileges.c:(.text+0x160): warning: Using 'endpwent' in statically
linked applications requires at runtime the shared libraries from the
glibc version used for linking
/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libX11.a(GetDflt.o):
In function `GetHomeDir.part.0':
GetDflt.c:(.text+0x3d): warning: Using 'getpwnam_r' in statically linked
applications requires at runtime the shared libraries from the glibc
version used for linking
/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgio-2.0.a(libgio_2_0_la-glocalfileinfo.o):
In function `lookup_uid_data.part.7':
glocalfileinfo.c:(.text+0x1145): warning: Using 'getpwuid_r' in
statically linked applications requires at runtime the shared libraries
from the glibc version used for linking
/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libpcap.a(nametoaddr.o):
In function `pcap_nametoaddrinfo':
nametoaddr.c:(.text+0xb4): warning: Using 'getaddrinfo' in statically
linked applications requires at runtime the shared libraries from the
glibc version used for linking
/usr/lib/libpthread.a(libpthread.o): In function `sem_open':
(.text+0x6917): warning: the use of `mktemp' is dangerous, better use
`mkstemp'
epan/.libs/libwireshark.a(libwireshark_la-addr_resolv.o): In function
`host_lookup':
addr_resolv.c:(.text+0x51e): warning: Using 'gethostbyaddr' in
statically linked applications requires at runtime the shared libraries
from the glibc version used for linking
epan/.libs/libwireshark.a(libwireshark_la-addr_resolv.o): In function
`get_host_ipaddr':
addr_resolv.c:(.text+0x2a7e): warning: Using 'gethostbyname' in
statically linked applications requires at runtime the shared libraries
from the glibc version used for linking
epan/.libs/libwireshark.a(libwireshark_la-addr_resolv.o): In function
`get_host_ipaddr6':
addr_resolv.c:(.text+0x2b11): warning: Using 'gethostbyname2' in
statically linked applications requires at runtime the shared libraries
from the glibc version used for linking
/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libpcap.a(nametoaddr.o):
In function `pcap_nametonetaddr':
nametoaddr.c:(.text+0xe4): warning: Using 'getnetbyname' in statically
linked applications requires at runtime the shared libraries from the
glibc version used for linking
epan/.libs/libwireshark.a(libwireshark_la-ipproto.o): In function
`ipprotostr':
ipproto.c:(.text+0x31): warning: Using 'getprotobynumber' in statically
linked applications requires at runtime the shared libraries from the
glibc version used for linking
/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libpcap.a(nametoaddr.o):
In function `pcap_nametoproto':
nametoaddr.c:(.text+0x2a7): warning: Using 'getprotobyname' in
statically linked applications requires at runtime the shared libraries
from the glibc version used for linking
/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libpcap.a(nametoaddr.o):
In function `pcap_nametoport':
nametoaddr.c:(.text+0x122): warning: Using 'getservbyname' in statically
linked applications requires at runtime the shared libraries from the
glibc version used for linking
epan/.libs/libwireshark.a(libwireshark_la-addr_resolv.o): In function
`serv_name_lookup':
addr_resolv.c:(.text+0x85a): warning: Using 'getservbyport' in
statically linked applications requires at runtime the shared libraries
from the glibc version used for linking
/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgio-2.0.a(libgio_2_0_la-gnetworkaddress.o):
In function `g_network_address_parse':
gnetworkaddress.c:(.text+0x833): warning: Using 'endservent' in
statically linked applications requires at runtime the shared libraries
from the glibc version used for linking
/mnt/hee/new/buildroot-2012.08/output/host/usr/lib/gcc/i586-unknown-linux-uclibc/4.6.3/../../../../i586-unknown-linux-uclibc/bin/ld:
dynamic STT_GNU_IFUNC symbol `strcmp' with pointer equality in
`/usr/lib/libc.a(strcmp.o)' can not be used when making an executable;
recompile with -fPIE and relink with -pie
collect2: ld returned 1 exit status
libtool: link: rm -f ".libs/wiresharkS.o"
make[2]: *** [wireshark] Virhe 1
make[2]: Poistutaan hakemistosta
"/mnt/hee/new/buildroot-2012.08/output/build/wireshark-1.8.4"
make[1]: *** [all-recursive] Virhe 1
make[1]: Poistutaan hakemistosta
"/mnt/hee/new/buildroot-2012.08/output/build/wireshark-1.8.4"
make: *** [all] Virhe 2

I tried your package/wireshark/wireshark-dont-include-prefix.patch from
http://article.gmane.org/gmane.comp.lib.uclibc.buildroot/48053
to see if it would stop using /usr/lib stuff but no joy. :-(

Here's also my wireshark.mk

#############################################################
#
# wireshark
#
#############################################################
WIRESHARK_VERSION = 1.8.4
WIRESHARK_SOURCE = wireshark-$(WIRESHARK_VERSION).tar.bz2
WIRESHARK_SITE = http://www.wireshark.org/download/src/all-versions/
WIRESHARK_AUTORECONF = YES
WIRESHARK_DEPENDENCIES += adns atk cairo gnutls libgcrypt libglib2
libgtk2 libcap libpcap pango  zlib
WIRESHARK_CONF_OPT += --sysconfdir=/etc/wireshark --disable-usr-local
--disable-extra-gcc-checks \
             --with-ssl --with-adns --without-c-ares
--with-libgcrypt-prefix=$(STAGING_DIR)/usr

WIRESHARK_CONF_ENV += ac_cv_func_connect=yes \
              ac_cv_path_PCAP_CONFIG=$(STAGING_DIR)/usr/bin/pcap-config \
              ac_cv_lib_crypto_EVP_md5=yes

$(eval $(autotools-package))

Regards
Stefan

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

* [Buildroot] [PATCH] divine: fix divine-config
  2013-01-06 18:12           ` Stefan Fröberg
@ 2013-01-07 22:17             ` Arnout Vandecappelle
  2013-01-07 22:35               ` Stefan Fröberg
  0 siblings, 1 reply; 32+ messages in thread
From: Arnout Vandecappelle @ 2013-01-07 22:17 UTC (permalink / raw)
  To: buildroot

On 06/01/13 19:12, Stefan Fr?berg wrote:
> Hi Baruch
>
> 6.1.2013 7:41, Baruch Siach kirjoitti:
>> Hi Stefan,
>>
>> On Fri, Jan 04, 2013 at 04:56:53PM +0200, Stefan Fr?berg wrote:
>>> Hello Gustavo, all
>> [...]
>>
>>> (It took a long time for me to figure why wireshark that im trying to
>>> compile here did not
>>> work out with libpcap, untill I found out that the
>>> $(STAGING_DIR)/usr/bin/pcap-config spit a
>>> wrong prefix all the time...)
>> Good to see work on wireshark. Did you fix the RPATH problem I encountered
>> while trying to build tshark
>> (http://article.gmane.org/gmane.comp.lib.uclibc.buildroot/48053) ?
>>
>> baruch
>>
> This is the problem Im having right now:
>
> make[2]: Siirryt??n hakemistoon
> "/mnt/hee/new/buildroot-2012.08/output/build/wireshark-1.8.4"
> /usr/bin/perl ./make-version.pl .
> Version configuration file version.conf not found.  Using defaults.
> svnversion.h unchanged.
> /bin/sh ./libtool  --tag=CC   --mode=link
> /mnt/hee/new/buildroot-2012.08/output/host/usr/bin/i586-unknown-linux-uclibc-gcc
> -DPYTHON_DIR= -pipe -funit-at-a-time -Wno-error -Os -Os
> -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wall
> -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wpointer-arith
> -Wno-pointer-sign -Warray-bounds -Wcast-align -Wformat-security
> -Wold-style-definition -Wno-error=unused-but-set-variable
> -fexcess-precision=fast -pthread -D_REENTRANT
> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/gtk-2.0
> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/gtk-2.0/include
> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/atk-1.0
> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/cairo
> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/gdk-pixbuf-2.0
> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/pango-1.0
> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/glib-2.0
> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/glib-2.0/include
> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/pixman-1
> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/freetype2
> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/directfb
> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/libpng14
> -Wl,-static -all-static -Wl,-S -Wl,-O1 -Wl,--as-needed -Wl,-z
> -Wl,combreloc -Wl,--enable-new-dtags -Wl,--hash-style=gnu
> -Wl,--as-needed -o wireshark wireshark-capture-pcap-util-unix.o
> wireshark-capture-pcap-util.o wireshark-cfile.o
> wireshark-clopts_common.o wireshark-disabled_protos.o
> wireshark-frame_data_sequence.o wireshark-packet-range.o
> wireshark-print.o wireshark-ps.o wireshark-sync_pipe_write.o
> wireshark-timestats.o wireshark-tap-megaco-common.o
> wireshark-tap-rtp-common.o wireshark-version_info.o
> wireshark-capture_ifinfo.o wireshark-capture_sync.o
> wireshark-capture_ui_utils.o wireshark-airpcap_loader.o
> wireshark-capture.o wireshark-capture_info.o wireshark-capture_opts.o
> wireshark-color_filters.o wireshark-file.o wireshark-fileset.o
> wireshark-filters.o wireshark-g711.o wireshark-merge.o
> wireshark-proto_hier_stats.o wireshark-recent.o wireshark-summary.o
> wireshark-tempfile.o wireshark-u3.o ui/gtk/libgtkui.a
> ui/gtk/libgtkui_dirty.a ui/libui.a codecs/libcodec.a
> wiretap/libwiretap.la epan/libwireshark.la wsutil/libwsutil.la -lcrypto
> -dlopen plugins/asn1/asn1.la -dlopen plugins/docsis/docsis.la -dlopen
> plugins/ethercat/ethercat.la -dlopen plugins/gryphon/gryphon.la -dlopen
> plugins/irda/irda.la -dlopen plugins/m2m/m2m.la -dlopen
> plugins/mate/mate.la -dlopen plugins/opcua/opcua.la -dlopen
> plugins/profinet/profinet.la -dlopen plugins/stats_tree/stats_tree.la
> -dlopen plugins/unistim/unistim.la -dlopen plugins/wimax/wimax.la
> -L/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib
> -lpcap -lusb-1.0 -lpthread -ladns -lgcrypt -lgpg-error -lgnutls -pthread
> -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0
> -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype
> -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lintl
> -pthread -Wl,--export-dynamic -lgthread-2.0 -lgmodule-2.0 -lglib-2.0
> -lintl -lm -lz
> libtool: link: rm -f .libs/wireshark.nm .libs/wireshark.nmS
> .libs/wireshark.nmT
> libtool: link: (cd .libs&&
> /mnt/hee/new/buildroot-2012.08/output/host/usr/bin/i586-unknown-linux-uclibc-gcc
> -pipe -funit-at-a-time -Wno-error -Os -Os -D_LARGEFILE_SOURCE
> -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -W -Wextra
> -Wdeclaration-after-statement -Wendif-labels -Wpointer-arith
> -Wno-pointer-sign -Warray-bounds -Wcast-align -Wformat-security
> -Wold-style-definition -Wno-error=unused-but-set-variable
> -fexcess-precision=fast -pthread -D_REENTRANT
> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/gtk-2.0
> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/gtk-2.0/include
> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/atk-1.0
> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/cairo
> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/gdk-pixbuf-2.0
> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/pango-1.0
> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/glib-2.0
> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/glib-2.0/include
> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/pixman-1
> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/freetype2
> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/directfb
> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/libpng14
> -c -fno-builtin "wiresharkS.c")
> libtool: link: rm -f ".libs/wiresharkS.c" ".libs/wireshark.nm"
> ".libs/wireshark.nmS" ".libs/wireshark.nmT"
> libtool: link:
> /mnt/hee/new/buildroot-2012.08/output/host/usr/bin/i586-unknown-linux-uclibc-gcc
> -DPYTHON_DIR= -pipe -funit-at-a-time -Wno-error -Os -Os
> -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wall
> -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wpointer-arith
> -Wno-pointer-sign -Warray-bounds -Wcast-align -Wformat-security
> -Wold-style-definition -Wno-error=unused-but-set-variable
> -fexcess-precision=fast -pthread -D_REENTRANT
> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/gtk-2.0
> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/gtk-2.0/include
> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/atk-1.0
> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/cairo
> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/gdk-pixbuf-2.0
> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/pango-1.0
> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/glib-2.0
> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/glib-2.0/include
> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/pixman-1
> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/freetype2
> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/directfb
> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/libpng14
> -Wl,-static -static -Wl,-S -Wl,-O1 -Wl,--as-needed -Wl,-z -Wl,combreloc
> -Wl,--enable-new-dtags -Wl,--hash-style=gnu -Wl,--as-needed -o wireshark
> wireshark-capture-pcap-util-unix.o wireshark-capture-pcap-util.o
> wireshark-cfile.o wireshark-clopts_common.o wireshark-disabled_protos.o
> wireshark-frame_data_sequence.o wireshark-packet-range.o
> wireshark-print.o wireshark-ps.o wireshark-sync_pipe_write.o
> wireshark-timestats.o wireshark-tap-megaco-common.o
> wireshark-tap-rtp-common.o wireshark-version_info.o
> wireshark-capture_ifinfo.o wireshark-capture_sync.o
> wireshark-capture_ui_utils.o wireshark-airpcap_loader.o
> wireshark-capture.o wireshark-capture_info.o wireshark-capture_opts.o
> wireshark-color_filters.o wireshark-file.o wireshark-fileset.o
> wireshark-filters.o wireshark-g711.o wireshark-merge.o
> wireshark-proto_hier_stats.o wireshark-recent.o wireshark-summary.o
> wireshark-tempfile.o wireshark-u3.o .libs/wiresharkS.o -pthread -pthread
> -Wl,--export-dynamic  plugins/asn1/.libs/asn1.a
> plugins/docsis/.libs/docsis.a plugins/ethercat/.libs/ethercat.a
> plugins/gryphon/.libs/gryphon.a plugins/irda/.libs/irda.a
> plugins/m2m/.libs/m2m.a plugins/mate/.libs/mate.a
> plugins/opcua/.libs/opcua.a plugins/profinet/.libs/profinet.a
> plugins/stats_tree/.libs/stats_tree.a plugins/unistim/.libs/unistim.a
> plugins/wimax/.libs/wimax.a ui/gtk/libgtkui.a ui/gtk/libgtkui_dirty.a
> ui/libui.a codecs/libcodec.a wiretap/.libs/libwiretap.a
> epan/.libs/libwireshark.a -lgnutls -L/usr/lib
                                      ^^^^^^^^^^
  Here's your culprit.

  Probably one of the .la files incorrectly adds /usr/lib.

  Question is why libtool adds it, of course...

  Regards,
  Arnout

[snip]

-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

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

* [Buildroot] [PATCH] divine: fix divine-config
  2013-01-07 22:17             ` Arnout Vandecappelle
@ 2013-01-07 22:35               ` Stefan Fröberg
  2013-01-08  7:48                 ` Arnout Vandecappelle
  0 siblings, 1 reply; 32+ messages in thread
From: Stefan Fröberg @ 2013-01-07 22:35 UTC (permalink / raw)
  To: buildroot

Hi Arnout

8.1.2013 0:17, Arnout Vandecappelle kirjoitti:
> On 06/01/13 19:12, Stefan Fr?berg wrote:
>> Hi Baruch
>>
>> 6.1.2013 7:41, Baruch Siach kirjoitti:
>>> Hi Stefan,
>>>
>>> On Fri, Jan 04, 2013 at 04:56:53PM +0200, Stefan Fr?berg wrote:
>>>> Hello Gustavo, all
>>> [...]
>>>
>>>> (It took a long time for me to figure why wireshark that im trying to
>>>> compile here did not
>>>> work out with libpcap, untill I found out that the
>>>> $(STAGING_DIR)/usr/bin/pcap-config spit a
>>>> wrong prefix all the time...)
>>> Good to see work on wireshark. Did you fix the RPATH problem I
>>> encountered
>>> while trying to build tshark
>>> (http://article.gmane.org/gmane.comp.lib.uclibc.buildroot/48053) ?
>>>
>>> baruch
>>>
>> This is the problem Im having right now:
>>
>> make[2]: Siirryt??n hakemistoon
>> "/mnt/hee/new/buildroot-2012.08/output/build/wireshark-1.8.4"
>> /usr/bin/perl ./make-version.pl .
>> Version configuration file version.conf not found.  Using defaults.
>> svnversion.h unchanged.
>> /bin/sh ./libtool  --tag=CC   --mode=link
>> /mnt/hee/new/buildroot-2012.08/output/host/usr/bin/i586-unknown-linux-uclibc-gcc
>>
>> -DPYTHON_DIR= -pipe -funit-at-a-time -Wno-error -Os -Os
>> -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wall
>> -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wpointer-arith
>> -Wno-pointer-sign -Warray-bounds -Wcast-align -Wformat-security
>> -Wold-style-definition -Wno-error=unused-but-set-variable
>> -fexcess-precision=fast -pthread -D_REENTRANT
>> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/gtk-2.0
>>
>> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/gtk-2.0/include
>>
>> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/atk-1.0
>>
>> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/cairo
>>
>> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/gdk-pixbuf-2.0
>>
>> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/pango-1.0
>>
>> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/glib-2.0
>>
>> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/glib-2.0/include
>>
>> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/pixman-1
>>
>> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/freetype2
>>
>> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/directfb
>>
>> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/libpng14
>>
>> -Wl,-static -all-static -Wl,-S -Wl,-O1 -Wl,--as-needed -Wl,-z
>> -Wl,combreloc -Wl,--enable-new-dtags -Wl,--hash-style=gnu
>> -Wl,--as-needed -o wireshark wireshark-capture-pcap-util-unix.o
>> wireshark-capture-pcap-util.o wireshark-cfile.o
>> wireshark-clopts_common.o wireshark-disabled_protos.o
>> wireshark-frame_data_sequence.o wireshark-packet-range.o
>> wireshark-print.o wireshark-ps.o wireshark-sync_pipe_write.o
>> wireshark-timestats.o wireshark-tap-megaco-common.o
>> wireshark-tap-rtp-common.o wireshark-version_info.o
>> wireshark-capture_ifinfo.o wireshark-capture_sync.o
>> wireshark-capture_ui_utils.o wireshark-airpcap_loader.o
>> wireshark-capture.o wireshark-capture_info.o wireshark-capture_opts.o
>> wireshark-color_filters.o wireshark-file.o wireshark-fileset.o
>> wireshark-filters.o wireshark-g711.o wireshark-merge.o
>> wireshark-proto_hier_stats.o wireshark-recent.o wireshark-summary.o
>> wireshark-tempfile.o wireshark-u3.o ui/gtk/libgtkui.a
>> ui/gtk/libgtkui_dirty.a ui/libui.a codecs/libcodec.a
>> wiretap/libwiretap.la epan/libwireshark.la wsutil/libwsutil.la -lcrypto
>> -dlopen plugins/asn1/asn1.la -dlopen plugins/docsis/docsis.la -dlopen
>> plugins/ethercat/ethercat.la -dlopen plugins/gryphon/gryphon.la -dlopen
>> plugins/irda/irda.la -dlopen plugins/m2m/m2m.la -dlopen
>> plugins/mate/mate.la -dlopen plugins/opcua/opcua.la -dlopen
>> plugins/profinet/profinet.la -dlopen plugins/stats_tree/stats_tree.la
>> -dlopen plugins/unistim/unistim.la -dlopen plugins/wimax/wimax.la
>> -L/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib
>>
>> -lpcap -lusb-1.0 -lpthread -ladns -lgcrypt -lgpg-error -lgnutls -pthread
>> -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0
>> -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype
>> -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lintl
>> -pthread -Wl,--export-dynamic -lgthread-2.0 -lgmodule-2.0 -lglib-2.0
>> -lintl -lm -lz
>> libtool: link: rm -f .libs/wireshark.nm .libs/wireshark.nmS
>> .libs/wireshark.nmT
>> libtool: link: (cd .libs&&
>> /mnt/hee/new/buildroot-2012.08/output/host/usr/bin/i586-unknown-linux-uclibc-gcc
>>
>> -pipe -funit-at-a-time -Wno-error -Os -Os -D_LARGEFILE_SOURCE
>> -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -W -Wextra
>> -Wdeclaration-after-statement -Wendif-labels -Wpointer-arith
>> -Wno-pointer-sign -Warray-bounds -Wcast-align -Wformat-security
>> -Wold-style-definition -Wno-error=unused-but-set-variable
>> -fexcess-precision=fast -pthread -D_REENTRANT
>> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/gtk-2.0
>>
>> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/gtk-2.0/include
>>
>> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/atk-1.0
>>
>> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/cairo
>>
>> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/gdk-pixbuf-2.0
>>
>> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/pango-1.0
>>
>> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/glib-2.0
>>
>> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/glib-2.0/include
>>
>> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/pixman-1
>>
>> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/freetype2
>>
>> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/directfb
>>
>> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/libpng14
>>
>> -c -fno-builtin "wiresharkS.c")
>> libtool: link: rm -f ".libs/wiresharkS.c" ".libs/wireshark.nm"
>> ".libs/wireshark.nmS" ".libs/wireshark.nmT"
>> libtool: link:
>> /mnt/hee/new/buildroot-2012.08/output/host/usr/bin/i586-unknown-linux-uclibc-gcc
>>
>> -DPYTHON_DIR= -pipe -funit-at-a-time -Wno-error -Os -Os
>> -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wall
>> -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wpointer-arith
>> -Wno-pointer-sign -Warray-bounds -Wcast-align -Wformat-security
>> -Wold-style-definition -Wno-error=unused-but-set-variable
>> -fexcess-precision=fast -pthread -D_REENTRANT
>> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/gtk-2.0
>>
>> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/gtk-2.0/include
>>
>> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/atk-1.0
>>
>> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/cairo
>>
>> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/gdk-pixbuf-2.0
>>
>> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/pango-1.0
>>
>> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/glib-2.0
>>
>> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/glib-2.0/include
>>
>> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/pixman-1
>>
>> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/freetype2
>>
>> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/directfb
>>
>> -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/libpng14
>>
>> -Wl,-static -static -Wl,-S -Wl,-O1 -Wl,--as-needed -Wl,-z -Wl,combreloc
>> -Wl,--enable-new-dtags -Wl,--hash-style=gnu -Wl,--as-needed -o wireshark
>> wireshark-capture-pcap-util-unix.o wireshark-capture-pcap-util.o
>> wireshark-cfile.o wireshark-clopts_common.o wireshark-disabled_protos.o
>> wireshark-frame_data_sequence.o wireshark-packet-range.o
>> wireshark-print.o wireshark-ps.o wireshark-sync_pipe_write.o
>> wireshark-timestats.o wireshark-tap-megaco-common.o
>> wireshark-tap-rtp-common.o wireshark-version_info.o
>> wireshark-capture_ifinfo.o wireshark-capture_sync.o
>> wireshark-capture_ui_utils.o wireshark-airpcap_loader.o
>> wireshark-capture.o wireshark-capture_info.o wireshark-capture_opts.o
>> wireshark-color_filters.o wireshark-file.o wireshark-fileset.o
>> wireshark-filters.o wireshark-g711.o wireshark-merge.o
>> wireshark-proto_hier_stats.o wireshark-recent.o wireshark-summary.o
>> wireshark-tempfile.o wireshark-u3.o .libs/wiresharkS.o -pthread -pthread
>> -Wl,--export-dynamic  plugins/asn1/.libs/asn1.a
>> plugins/docsis/.libs/docsis.a plugins/ethercat/.libs/ethercat.a
>> plugins/gryphon/.libs/gryphon.a plugins/irda/.libs/irda.a
>> plugins/m2m/.libs/m2m.a plugins/mate/.libs/mate.a
>> plugins/opcua/.libs/opcua.a plugins/profinet/.libs/profinet.a
>> plugins/stats_tree/.libs/stats_tree.a plugins/unistim/.libs/unistim.a
>> plugins/wimax/.libs/wimax.a ui/gtk/libgtkui.a ui/gtk/libgtkui_dirty.a
>> ui/libui.a codecs/libcodec.a wiretap/.libs/libwiretap.a
>> epan/.libs/libwireshark.a -lgnutls -L/usr/lib
>                                      ^^^^^^^^^^
>  Here's your culprit.
>
>  Probably one of the .la files incorrectly adds /usr/lib.
>
>  Question is why libtool adds it, of course...
>

Bug in libtool ?
I tried checking all my $(STAGING_DIR)/usr/lib/*.la files but so far
everything seems fine...
But Im going to doublecheck....

Stefan

>  Regards,
>  Arnout
>
> [snip]
>

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

* [Buildroot] [PATCH] divine: fix divine-config
  2013-01-07 22:35               ` Stefan Fröberg
@ 2013-01-08  7:48                 ` Arnout Vandecappelle
  2013-01-08  8:10                   ` Thomas Petazzoni
  0 siblings, 1 reply; 32+ messages in thread
From: Arnout Vandecappelle @ 2013-01-08  7:48 UTC (permalink / raw)
  To: buildroot

On 07/01/13 23:35, Stefan Fr?berg wrote:
> Hi Arnout
>
> 8.1.2013 0:17, Arnout Vandecappelle kirjoitti:
>> On 06/01/13 19:12, Stefan Fr?berg wrote:
[snip]
>>> ui/libui.a codecs/libcodec.a wiretap/.libs/libwiretap.a
>>> epan/.libs/libwireshark.a -lgnutls -L/usr/lib
>>                                       ^^^^^^^^^^
>>   Here's your culprit.
>>
>>   Probably one of the .la files incorrectly adds /usr/lib.
>>
>>   Question is why libtool adds it, of course...
>>
>
> Bug in libtool ?
> I tried checking all my $(STAGING_DIR)/usr/lib/*.la files but so far
> everything seems fine...

  I expect it will be one of the *.la files in wireshark itself. Or it 
could be one of the -lfoo link arguments - IIRC, libtool hard-codes 
searching in /usr/lib for libraries.

  Looking a bit more in detail, I see that autoconf's AC_PROG_LIBTOOL 
expands into a hard-coded
sys_lib_dlsearch_path_spec="/lib /usr/lib \$lt_ld_extra"

(sys_lib_search_path_spec is computed based on the compiler's search 
path.) So we actually risk running into this problem for any 
libtool-based package... Maybe we should globally patch the configure 
scripts to make sys_lib_dlsearch_path_spec empty.

  But anyway, Stefan, for wireshark you should try to find out which host 
library is found by configure. Because making sys_lib_dlsearch_path_spec 
empty would just change the error into a slightly better 'cannot find -lfoo'.

  Regards,
  Arnout

-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

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

* [Buildroot] [PATCH] divine: fix divine-config
  2013-01-08  7:48                 ` Arnout Vandecappelle
@ 2013-01-08  8:10                   ` Thomas Petazzoni
  2013-01-08  8:24                     ` Arnout Vandecappelle
  0 siblings, 1 reply; 32+ messages in thread
From: Thomas Petazzoni @ 2013-01-08  8:10 UTC (permalink / raw)
  To: buildroot

Dear Arnout Vandecappelle,

On Tue, 08 Jan 2013 08:48:18 +0100, Arnout Vandecappelle wrote:

> (sys_lib_search_path_spec is computed based on the compiler's search 
> path.) So we actually risk running into this problem for any 
> libtool-based package... Maybe we should globally patch the configure 
> scripts to make sys_lib_dlsearch_path_spec empty.

I thought the libtool issues were long sorted out thanks to the patches
from support/libtool/. Are we talking about new issues here?

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

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

* [Buildroot] [PATCH] divine: fix divine-config
  2013-01-08  8:10                   ` Thomas Petazzoni
@ 2013-01-08  8:24                     ` Arnout Vandecappelle
  0 siblings, 0 replies; 32+ messages in thread
From: Arnout Vandecappelle @ 2013-01-08  8:24 UTC (permalink / raw)
  To: buildroot

On 08/01/13 09:10, Thomas Petazzoni wrote:
> Dear Arnout Vandecappelle,
>
> On Tue, 08 Jan 2013 08:48:18 +0100, Arnout Vandecappelle wrote:
>
>> (sys_lib_search_path_spec is computed based on the compiler's search
>> path.) So we actually risk running into this problem for any
>> libtool-based package... Maybe we should globally patch the configure
>> scripts to make sys_lib_dlsearch_path_spec empty.
>
> I thought the libtool issues were long sorted out thanks to the patches
> from support/libtool/. Are we talking about new issues here?

  Sorry, I didn't look carefully enough. The sys_lib_dlsearch_path_spec 
is only used to decide if an rpath should be added. It's still incorrect 
because it uses /etc/ld.so.conf to find the runtime search paths, but 
it's mostly harmless.

  Regards,
  Arnout

-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

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

end of thread, other threads:[~2013-01-08  8:24 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-03 22:09 [Buildroot] [PATCH] divine: fix divine-config Stefan Fröberg
2013-01-03 22:09 ` [Buildroot] [PATCH] giblib: fix giblib-config Stefan Fröberg
2013-01-03 22:09 ` [Buildroot] [PATCH] imlib2: fix imlib2-config Stefan Fröberg
2013-01-03 22:09 ` [Buildroot] [PATCH] libgcrypt: fix libgcrypt-config Stefan Fröberg
2013-01-03 22:09 ` [Buildroot] [PATCH] imagemagick: fix Magick[++|Core|Wand]-config Stefan Fröberg
2013-01-04 21:45   ` Peter Korsgaard
2013-01-03 22:09 ` [Buildroot] [PATCH] neon: fix neon-config Stefan Fröberg
2013-01-03 22:09 ` [Buildroot] [PATCH] libnspr: fix nspr-config Stefan Fröberg
2013-01-03 22:09 ` [Buildroot] [PATCH] xlib_libXft: fix xft-config Stefan Fröberg
2013-01-04 23:30   ` Peter Korsgaard
2013-01-05 13:33     ` Stefan Fröberg
2013-01-04 11:41 ` [Buildroot] [PATCH] divine: fix divine-config Gustavo Zacarias
2013-01-04 14:17   ` Samuel Martin
2013-01-04 14:29     ` Gustavo Zacarias
2013-01-04 14:56       ` Stefan Fröberg
2013-01-04 15:00         ` Gustavo Zacarias
2013-01-06  5:41         ` Baruch Siach
2013-01-06  8:27           ` Samuel Martin
2013-01-06  8:34             ` Baruch Siach
2013-01-06 12:39               ` Thomas Petazzoni
2013-01-06 14:15           ` Stefan Fröberg
2013-01-06 18:12           ` Stefan Fröberg
2013-01-07 22:17             ` Arnout Vandecappelle
2013-01-07 22:35               ` Stefan Fröberg
2013-01-08  7:48                 ` Arnout Vandecappelle
2013-01-08  8:10                   ` Thomas Petazzoni
2013-01-08  8:24                     ` Arnout Vandecappelle
2013-01-04 16:29     ` Thomas Petazzoni
2013-01-04 16:31   ` Thomas Petazzoni
2013-01-04 17:10     ` Gustavo Zacarias
2013-01-04 17:13       ` Stefan Fröberg
2013-01-04 21:49 ` Peter Korsgaard

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