Bug 187792

Summary: net/dante's broken under FreeBSD10
Product: Ports & Packages Reporter: Pavel Timofeev <timp87>
Component: Individual Port(s)Assignee: Anders Nordby <anders>
Status: Closed Overcome By Events    
Severity: Affects Only Me CC: cjpm, marino
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Pavel Timofeev 2014-03-20 13:50:03 UTC
net/dante can be installed but can't start under FreeBSD 10.0-RELEASE amd64.
At the same time it works well on FreeBSD 9.2-RELEASE amd64

under FreeBSD 10 it says:
Mar 20 17:39:53 (1395322793.996829) sockd[1752]: error: symbolfunction(): compile time configuration error?  Failed to find "_gethostbyname" using RTLD_NEXT: Undefined symbol "_gethostbyname"
Mar 20 17:39:53 (1395322793.997227) sockd[1752]: alert: sockdexit(): terminating
Mar 20 17:39:53 (1395322793.997426) sockd[1752]: warning: sockdexit(): truncate(/var/run/sockd.pid): No such file or directory (errno = 2)

Fix: 

Don't know
How-To-Repeat: try to run net/dante under FreeBSD10
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2014-03-20 13:50:07 UTC
Responsible Changed
From-To: freebsd-ports-bugs->anders

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Pavel Timofeev 2014-03-24 06:39:20 UTC
Or should I report it to dante bug maillist?
Comment 3 corsmith 2014-04-02 06:53:02 UTC
This patch will allow sockd to start successfully on FreeBSD10:

diff --git a/dante/Makefile b/dante/Makefile
index 9d40732..b4c2559 100644
--- a/dante/Makefile
+++ b/dante/Makefile
@@ -16,7 +16,8 @@ CONFLICTS=    socks5-[0-9]*

 GNU_CONFIGURE= yes
 CONFIGURE_ARGS=        --with-socks-conf=${PREFIX}/etc/socks.conf \
-               --with-sockd-conf=${PREFIX}/etc/sockd.conf
+               --with-sockd-conf=${PREFIX}/etc/sockd.conf \
+               --disable-serverdl
 CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
 CPPFLAGS+=     -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
Comment 4 Pavel Timofeev 2014-04-02 07:14:45 UTC
Thank you! I confirm, it works.

2014-04-02 9:53 GMT+04:00 Corey Smith <corsmith@gmail.com>:
> This patch will allow sockd to start successfully on FreeBSD10:
>
> diff --git a/dante/Makefile b/dante/Makefile
> index 9d40732..b4c2559 100644
> --- a/dante/Makefile
> +++ b/dante/Makefile
> @@ -16,7 +16,8 @@ CONFLICTS=    socks5-[0-9]*
>
>  GNU_CONFIGURE= yes
>  CONFIGURE_ARGS=        --with-socks-conf=${PREFIX}/etc/socks.conf \
> -               --with-sockd-conf=${PREFIX}/etc/sockd.conf
> +               --with-sockd-conf=${PREFIX}/etc/sockd.conf \
> +               --disable-serverdl
>  CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
>  CPPFLAGS+=     -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
>
Comment 5 Pavel Timofeev 2014-04-21 12:53:56 UTC
Hello! Could someone commit it?
Comment 6 John Marino freebsd_committer freebsd_triage 2014-07-31 21:06:25 UTC
Sorry guys, 
I don't know why anders@ didn't commit this.
It looks obsolete now that dante has moved to 1.4.0 (on 31 July)
However, it seems busted out of the box: bug 192295
Comment 7 Carlos J Puga Medina 2014-08-02 09:01:58 UTC
net/dante was updated to 1.4.0. This PR can be closed.
Comment 8 John Marino freebsd_committer freebsd_triage 2014-08-02 09:32:36 UTC
it was, 3 days ago.