All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v1] package/ser2net: fix gensio detection with openssl enabled
@ 2020-03-08 16:51 Peter Seiderer
  2020-03-08 20:38 ` Peter Korsgaard
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Seiderer @ 2020-03-08 16:51 UTC (permalink / raw)
  To: buildroot

Add openssl linker flags via LIBS to fix configure gensio
library detection.

Fixes:

  http://autobuild.buildroot.net/results/66e0d3e0a2a8dc5a62c267d16a53216f0f2ce8dd

  checking gensio/gensio.h usability... yes
  checking gensio/gensio.h presence... yes
  checking for gensio/gensio.h... yes
  checking for str_to_gensio in -lgensio... no
  configure: error: libgensio won't link, please install gensio dev package

The build/ser2net-4.1.1/config.log files states:

  .../arm-buildroot-linux-uclibcgnueabi/bin/ld: .../host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libgensio.a(gensio_filter_ssl.o): in function `gensio_do_ssl_init':
  gensio_filter_ssl.c:(.text+0x34): undefined reference to `OPENSSL_init_ssl'

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
---
 package/ser2net/ser2net.mk | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/package/ser2net/ser2net.mk b/package/ser2net/ser2net.mk
index 2ea68ccc43..94035b2184 100644
--- a/package/ser2net/ser2net.mk
+++ b/package/ser2net/ser2net.mk
@@ -16,6 +16,11 @@ else
 SER2NET_CONF_OPTS += --without-pthreads
 endif
 
+# fix gensio detection with openssl enabled
+ifeq ($(BR2_PACKAGE_OPENSSL),y)
+SER2NET_CONF_ENV += LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs openssl`"
+endif
+
 define SER2NET_INSTALL_INIT_SYSV
 	$(INSTALL) -D -m 755 package/ser2net/S50ser2net \
 		$(TARGET_DIR)/etc/init.d/S50ser2net
-- 
2.25.1

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

* [Buildroot] [PATCH v1] package/ser2net: fix gensio detection with openssl enabled
  2020-03-08 16:51 [Buildroot] [PATCH v1] package/ser2net: fix gensio detection with openssl enabled Peter Seiderer
@ 2020-03-08 20:38 ` Peter Korsgaard
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2020-03-08 20:38 UTC (permalink / raw)
  To: buildroot

>>>>> "Peter" == Peter Seiderer <ps.report@gmx.net> writes:

 > Add openssl linker flags via LIBS to fix configure gensio
 > library detection.

 > Fixes:

 >   http://autobuild.buildroot.net/results/66e0d3e0a2a8dc5a62c267d16a53216f0f2ce8dd

 >   checking gensio/gensio.h usability... yes
 >   checking gensio/gensio.h presence... yes
 >   checking for gensio/gensio.h... yes
 >   checking for str_to_gensio in -lgensio... no
 >   configure: error: libgensio won't link, please install gensio dev package

 > The build/ser2net-4.1.1/config.log files states:

 >   .../arm-buildroot-linux-uclibcgnueabi/bin/ld: .../host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libgensio.a(gensio_filter_ssl.o): in function `gensio_do_ssl_init':
 >   gensio_filter_ssl.c:(.text+0x34): undefined reference to `OPENSSL_init_ssl'

 > Signed-off-by: Peter Seiderer <ps.report@gmx.net>

The real solution would be for gensio to provide a .pc file / ser2net
use pkg-config, but OK - This is good enough for 2020.02.

-- 
Bye, Peter Korsgaard

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

end of thread, other threads:[~2020-03-08 20:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-08 16:51 [Buildroot] [PATCH v1] package/ser2net: fix gensio detection with openssl enabled Peter Seiderer
2020-03-08 20:38 ` Peter Korsgaard

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