getaddrinfo failed: Servname not supported for ai_socktype

Matthew Kitchin (public/usenet) mkitchin.public at gmail.com
Mon Aug 9 15:43:48 EDT 2010


  On 8/9/2010 2:10 PM, David Woodhouse wrote:
> On Mon, 2010-08-09 at 13:42 -0500, Matthew Kitchin (public/usenet) wrote:
>> I have played with it enough to see that I would like to give it a try.
>> I have some *very* basic instructions on how to compile a package for
>> Backfire.
>> https://forum.openwrt.org/viewtopic.php?id=26014
>> Do you by any chance have the Makefile and any other Customizations you
>> made when you compiled openconnect for openwrt? I have tried following
>> guidelines for older version of openwrt and that didn't work. The
>> suggestion I got on the forum "Use the already existing Makefiles (from
>> other packages) for reference." hasn't really given me a lot to go on.
> All this for openconnect is already in OpenWRT git; you just need to
> update it to v2.25.
>
> Check out the packages repository (git clone git://nbd.name/packages.git),
> apply this patch to update openconnect (and stop it from linking OpenSSL
> statically), and build it however you'd normally build OpenWRT packages
> straight from their git tree... which ought to be documented somewhere.
>
Thank you. I should have 2 ways I could do it now. Poking around the 
source, I fond the Makefile as well.
https://dev.openwrt.org/browser/packages/net/openconnect/Makefile
> commit 11df879efe6dc5d4d7f3a4ff2c2888f01eab9b5c
> Author: David Woodhouse<David.Woodhouse at intel.com>
> Date:   Mon Aug 9 20:06:42 2010 +0100
>
>      Update openconnect to 2.25
>
> diff --git a/net/openconnect/Makefile b/net/openconnect/Makefile
> index 159f761..0a15b08 100644
> --- a/net/openconnect/Makefile
> +++ b/net/openconnect/Makefile
> @@ -8,12 +8,12 @@
>   include $(TOPDIR)/rules.mk
>
>   PKG_NAME:=openconnect
> -PKG_VERSION:=2.01
> +PKG_VERSION:=2.25
>   PKG_RELEASE:=1
>
>   PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
>   PKG_SOURCE_URL:=ftp://ftp.infradead.org/pub/openconnect/
> -PKG_MD5SUM:=8fa1f0883c136800dbb992e64a2d579e
> +PKG_MD5SUM:=796a32b611ee6210a5367eb9684d6778
>
>   include $(INCLUDE_DIR)/package.mk
>
> @@ -36,7 +36,6 @@ endef
>
>   define Build/Compile
>   	$(call Build/Compile/Default, \
> -                OPENSSL="$(STAGING_DIR)/usr" \
>   		OFLAGS="$(TARGET_CFLAGS)" \
>   		OS="Linux" \
>   		STAGING_DIR="$(STAGING_DIR)" \
> diff --git a/net/openconnect/patches/001-change-openssl-paths.patch b/net/openconnect/patches/001-change-openssl-paths.patch
> deleted file mode 100644
> index 9e0b5ce..0000000
> --- a/net/openconnect/patches/001-change-openssl-paths.patch
> +++ /dev/null
> @@ -1,11 +0,0 @@
> ---- openconnect-2.01/Makefile	2009-06-24 12:30:34.000000000 -0500
> -+++ openconnect-2.01.openwrt/Makefile	2009-09-20 18:06:39.000000000 -0500
> -@@ -15,7 +15,7 @@
> - # dir; there's no need to install it anywhere (we link it statically).
> - ifdef OPENSSL
> - SSL_CFLAGS += -I$(OPENSSL)/include
> --SSL_LDFLAGS += -lz $(OPENSSL)/libssl.a $(OPENSSL)/libcrypto.a -ldl
> -+SSL_LDFLAGS += -lz $(OPENSSL)/lib/libssl.a $(OPENSSL)/lib/libcrypto.a -ldl
> - else
> - ifeq ($(wildcard /usr/include/openssl),)
> - $(error "No OpenSSL in /usr/include/openssl. Cannot continue");
>
>




More information about the openconnect-devel mailing list