Re: Update of freeradius-2.2.3_1 to freeradius-2.2.4 fails

2014-03-31 Thread Dr. Peter Voigt
Am Mon, 31 Mar 2014 12:19:48 +1100
schrieb Dewayne Geraghty dewayne.gerag...@heuristicsystems.com.au:

 
 On 31/03/2014 5:38 AM, Dimitry Andric wrote:
  On 30 Mar 2014, at 16:43, Dr. Peter Voigt pvo...@uos.de wrote:
  I am running 10.0-RELEASE and when trying to upgrade
  freeradius-2.2.3_1 to freeradius-2.2.4 after the latest update of
  the ports tree I obtain the following build error:
 
  ...
  libtool: link: cc -pthread
  -o .libs/rlm_dbm_parser .libs/rlm_dbm_parser.o
  -L/usr/local/lib 
  /usr/ports/net/freeradius2/work/freeradius-server-2.2.4/src/lib/.libs/libfreeradius-radius.so
  -lssl -lcrypto -lpthread -pthread  -Wl,-rpath
  -Wl,/usr/local/lib/freeradius-2.2.4 
  /usr/ports/net/freeradius2/work/freeradius-server-2.2.4/src/lib/.libs/libfreeradius-radius.so:
  undefined reference to
  `backtrace_symbols' 
  /usr/ports/net/freeradius2/work/freeradius-server-2.2.4/src/lib/.libs/libfreeradius-radius.so:
  undefined reference to `backtrace' cc: error: linker command failed
  with exit code 1 (use -v to see invocation) gmake[7]: ***
  This probably needs -lexecinfo somewhere in its LDFLAGS.
 
  -Dimitry
 
 
 Good suggestion Dimitry.  For freeradius2, this PR may assist:
 http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/188089
 

Thank you, Dimitry, for pointing us to your above patch. I have just
patched /usr/ports/net/freeradius2/Makefile accordingly and could build
and install net/freeradius2 in version 2.2.4 without errors.

I  have used the following configuration:

# make showconfig
=== The following configuration options are available for
freeradius-2.2.4:
 DEVELOPER=off: Enable developer options
 DHCP=off: With DHCP support (EXPERIMENTAL)
 EDIR=off: Enable eDirectory support (implies LDAP)
 EXPERIMENTAL=off: Build experimental modules
 FIREBIRD=off: With Firebird database support (EXPERIMENTAL)
 HEIMDAL=off: With Heimdal Kerberos support
 HEIMDAL_PORT=off: With Heimdal Kerberos from ports
 KERBEROS=off: Kerberos support
 LDAP=off: LDAP support
 MYSQL=off: MySQL database support
 OCI8=off: With Oracle support (currently experimental)
 PERL=on: Perl scripting language support
 PGSQL=off: PostgreSQL database support
 PYTHON=on: Python bindings or support
 RUBY=off: Ruby bindings or support
 SSL_PORT=off: Use OpenSSL from the ports collection
 UDPFROMTO=off: Compile in UDPFROMTO support
 UNIXODBC=off: With unixODBC database support
 USER=on: Run as user freeradius, group freeradius
=== Use 'make config' to modify these settings

Regards,
Peter
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: Update of freeradius-2.2.3_1 to freeradius-2.2.4 fails

2014-03-30 Thread Dimitry Andric
On 30 Mar 2014, at 16:43, Dr. Peter Voigt pvo...@uos.de wrote:
 I am running 10.0-RELEASE and when trying to upgrade
 freeradius-2.2.3_1 to freeradius-2.2.4 after the latest update of the
 ports tree I obtain the following build error:
 
 ...
 libtool: link: cc -pthread
 -o .libs/rlm_dbm_parser .libs/rlm_dbm_parser.o
 -L/usr/local/lib 
 /usr/ports/net/freeradius2/work/freeradius-server-2.2.4/src/lib/.libs/libfreeradius-radius.so
 -lssl -lcrypto -lpthread -pthread  -Wl,-rpath
 -Wl,/usr/local/lib/freeradius-2.2.4 
 /usr/ports/net/freeradius2/work/freeradius-server-2.2.4/src/lib/.libs/libfreeradius-radius.so:
 undefined reference to
 `backtrace_symbols' 
 /usr/ports/net/freeradius2/work/freeradius-server-2.2.4/src/lib/.libs/libfreeradius-radius.so:
 undefined reference to `backtrace' cc: error: linker command failed
 with exit code 1 (use -v to see invocation) gmake[7]: ***

This probably needs -lexecinfo somewhere in its LDFLAGS.

-Dimitry



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: Update of freeradius-2.2.3_1 to freeradius-2.2.4 fails

2014-03-30 Thread John Marshall
On Sun, 30 Mar 2014, 16:43 +0200, Dr. Peter Voigt wrote:
 I am running 10.0-RELEASE and when trying to upgrade
 freeradius-2.2.3_1 to freeradius-2.2.4 after the latest update of the
 ports tree I obtain the following build error:
 
 ...
 libtool: link: cc -pthread
 -o .libs/rlm_dbm_parser .libs/rlm_dbm_parser.o
 -L/usr/local/lib 
 /usr/ports/net/freeradius2/work/freeradius-server-2.2.4/src/lib/.libs/libfreeradius-radius.so
 -lssl -lcrypto -lpthread -pthread  -Wl,-rpath
 -Wl,/usr/local/lib/freeradius-2.2.4 
 /usr/ports/net/freeradius2/work/freeradius-server-2.2.4/src/lib/.libs/libfreeradius-radius.so:
 undefined reference to
 `backtrace_symbols' 
 /usr/ports/net/freeradius2/work/freeradius-server-2.2.4/src/lib/.libs/libfreeradius-radius.so:
 undefined reference to `backtrace' cc: error: linker command failed
 with exit code 1 (use -v to see invocation) gmake[7]: ***
 [rlm_dbm_parser] Fehler 1 gmake[7]: Leaving directory
 `/usr/ports/net/freeradius2/work/freeradius-server-2.2.4/src/modules/rlm_dbm'

I'm seeing something almost identical on FreeBSD 9.2-RELEASE-p3 amd64.

  libtool: link: cc -pthread -o .libs/rlm_dbm_parser .libs/rlm_dbm_parser.o  
-L/usr/local/lib 
/build/ports/net/freeradius2/work/freeradius-server-2.2.4/src/lib/.libs/libfreeradius-radius.so
 -lssl -lcrypto -lpthread -pthread  -Wl,-rpath 
-Wl,/usr/local/lib/freeradius-2.2.4
  
/build/ports/net/freeradius2/work/freeradius-server-2.2.4/src/lib/.libs/libfreeradius-radius.so:
 undefined reference to `backtrace_symbols'
  
/build/ports/net/freeradius2/work/freeradius-server-2.2.4/src/lib/.libs/libfreeradius-radius.so:
 undefined reference to `backtrace'
  gmake[6]: *** [rlm_dbm_parser] Error 1
  gmake[6]: Leaving directory 
`/build/ports/net/freeradius2/work/freeradius-server-2.2.4/src/modules/rlm_dbm'
  gmake[5]: *** [rlm_dbm] Error 2
  gmake[5]: Leaving directory 
`/build/ports/net/freeradius2/work/freeradius-server-2.2.4/src/modules'
  gmake[4]: *** [all] Error 2
  gmake[4]: Leaving directory 
`/build/ports/net/freeradius2/work/freeradius-server-2.2.4/src/modules'
  gmake[3]: *** [modules] Error 2
  gmake[3]: Leaving directory 
`/build/ports/net/freeradius2/work/freeradius-server-2.2.4/src'
  gmake[2]: *** [all] Error 2
  gmake[2]: Leaving directory 
`/build/ports/net/freeradius2/work/freeradius-server-2.2.4/src'
  gmake[1]: *** [src] Error 2
  gmake[1]: Leaving directory 
`/build/ports/net/freeradius2/work/freeradius-server-2.2.4'
  gmake: *** [all] Error 2
  *** [do-build] Error code 1
  
  Stop in /build/ports/net/freeradius2.
  *** [build] Error code 1
  
  rwsrv08# cd /usr/ports/net/freeradius2
  rwsrv08# make showconfig
  === The following configuration options are available for freeradius-2.2.4:
   DEVELOPER=off: Enable developer options
   DHCP=off: With DHCP support (EXPERIMENTAL)
   EDIR=off: Enable eDirectory support (implies LDAP)
   EXPERIMENTAL=off: Build experimental modules
   FIREBIRD=off: With Firebird database support (EXPERIMENTAL)
   HEIMDAL=on: With Heimdal Kerberos support
   HEIMDAL_PORT=off: With Heimdal Kerberos from ports
   KERBEROS=on: Kerberos support
   LDAP=off: LDAP support
   MYSQL=off: MySQL database support
   OCI8=off: With Oracle support (currently experimental)
   PERL=on: Perl scripting language support
   PGSQL=off: PostgreSQL database support
   PYTHON=on: Python bindings or support
   RUBY=off: Ruby bindings or support
   SSL_PORT=off: Use OpenSSL from the ports collection
   UDPFROMTO=off: Compile in UDPFROMTO support
   UNIXODBC=off: With unixODBC database support
   USER=on: Run as user freeradius, group freeradius
  === Use 'make config' to modify these settings

-- 
John Marshall


pgpwy5tJiqRab.pgp
Description: PGP signature


Re: Update of freeradius-2.2.3_1 to freeradius-2.2.4 fails

2014-03-30 Thread Dewayne Geraghty

On 31/03/2014 5:38 AM, Dimitry Andric wrote:
 On 30 Mar 2014, at 16:43, Dr. Peter Voigt pvo...@uos.de wrote:
 I am running 10.0-RELEASE and when trying to upgrade
 freeradius-2.2.3_1 to freeradius-2.2.4 after the latest update of the
 ports tree I obtain the following build error:

 ...
 libtool: link: cc -pthread
 -o .libs/rlm_dbm_parser .libs/rlm_dbm_parser.o
 -L/usr/local/lib 
 /usr/ports/net/freeradius2/work/freeradius-server-2.2.4/src/lib/.libs/libfreeradius-radius.so
 -lssl -lcrypto -lpthread -pthread  -Wl,-rpath
 -Wl,/usr/local/lib/freeradius-2.2.4 
 /usr/ports/net/freeradius2/work/freeradius-server-2.2.4/src/lib/.libs/libfreeradius-radius.so:
 undefined reference to
 `backtrace_symbols' 
 /usr/ports/net/freeradius2/work/freeradius-server-2.2.4/src/lib/.libs/libfreeradius-radius.so:
 undefined reference to `backtrace' cc: error: linker command failed
 with exit code 1 (use -v to see invocation) gmake[7]: ***
 This probably needs -lexecinfo somewhere in its LDFLAGS.

 -Dimitry


Good suggestion Dimitry.  For freeradius2, this PR may assist:
http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/188089

I applied a similar patch below to freeradius3, but continued to receive
the error message, on 9.2 Stable (r263905).
...
CC src/modules/rlm_ippool/rlm_ippool_tool.c
build/lib/local/.libs/libfreeradius-radius.so: undefined reference to
`backtrace_symbols'
build/lib/local/.libs/libfreeradius-radius.so: undefined reference to
`backtrace'
gmake: *** [build/bin/local/rlm_ippool_tool] Error 1
*** [do-build] Error code 1


The inclusion of CPPFLAGS silences some preprocessor warnings.

--- Makefile.orig   2014-03-31 11:22:03.0 +1100
+++ Makefile2014-03-31 12:03:42.0 +1100
@@ -18,6 +18,7 @@
 LICENSE=   GPLv2

 LIB_DEPENDS=   libgdbm.so:${PORTSDIR}/databases/gdbm \
+   libexecinfo.so:${PORTSDIR}/devel/libexecinfo \
libtalloc.so:${PORTSDIR}/devel/talloc

 LOGDIR?=   /var/log
@@ -34,6 +35,8 @@
 USE_OPENSSL=   yes
 MAKE_ARGS+=LDFLAGS=-L${LOCALBASE}/lib ${PTHREAD_LIBS}
 CFLAGS+=   -I${LOCALBASE}/include -L${LOCALBASE}/lib
+CPPFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+=  -L${LOCALBASE}/lib -lexecinfo
 MAKE_JOBS_SAFE=yes

 PLIST_SUB= PORTVERSION=${DISTVERSION} LIBVER=0${PORTVERSION:C/\./0/g}

---
My on configuration options are:
 HEIMDAL=on: With Heimdal Kerberos support
 HEIMDAL_PORT=on: With Heimdal Kerberos from ports
 KERBEROS=on: Kerberos support
 LDAP=on: LDAP support
 PERL=on: Perl scripting language support
 SSL_PORT=on: Use OpenSSL from the ports collection
 USER=on: Run as user freeradius, group freeradius

I suspect more is required, and /usr/local/lib/libexecinfo.so.1 does exist.
Regards, Dewayne
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org