ocserv 0.9.0.1 make error, undefined reference to `gnutls_rnd'
Jack Lee
jack at evlit.com
Thu Jan 22 05:29:33 PST 2015
LIBGNUTLS_CFLAGS="-I/opt/atomic/atomic-gnutls3/root/usr/include/gnutls" LIBGNUTLS_LIBS="-L/opt/atomic/atomic-gnutls3/root/usr/lib64 -lgnutls" LIBNL3_CFLAGS="-I/opt/atomic/atomic-gnutls3/root/usr/include/gnutls" LIBNL3_LIBS="-L/opt/atomic/atomic-gnutls3/root/usr/lib64 -lnl-3 -lnl-route-3" ./configure --enable-linux-namespaces --with-libseccomp-prefix
[root at z86l217 ocserv-0.9.0]# make V=1
make all-recursive
make[1]: Entering directory `/usr/local/src/ocserv-0.9.0'
Making all in gl
make[2]: Entering directory `/usr/local/src/ocserv-0.9.0/gl'
make all-recursive
make[3]: Entering directory `/usr/local/src/ocserv-0.9.0/gl'
make[4]: Entering directory `/usr/local/src/ocserv-0.9.0/gl'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/usr/local/src/ocserv-0.9.0/gl'
make[3]: Leaving directory `/usr/local/src/ocserv-0.9.0/gl'
make[2]: Leaving directory `/usr/local/src/ocserv-0.9.0/gl'
Making all in libopts
make[2]: Entering directory `/usr/local/src/ocserv-0.9.0/libopts'
make all-am
make[3]: Entering directory `/usr/local/src/ocserv-0.9.0/libopts'
make[3]: Leaving directory `/usr/local/src/ocserv-0.9.0/libopts'
make[2]: Leaving directory `/usr/local/src/ocserv-0.9.0/libopts'
Making all in src
make[2]: Entering directory `/usr/local/src/ocserv-0.9.0/src'
/bin/true ocpasswd-args.def
/bin/true ocserv-args.def
make all-recursive
make[3]: Entering directory `/usr/local/src/ocserv-0.9.0/src'
Making all in pcl
make[4]: Entering directory `/usr/local/src/ocserv-0.9.0/src/pcl'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/usr/local/src/ocserv-0.9.0/src/pcl'
make[4]: Entering directory `/usr/local/src/ocserv-0.9.0/src'
/bin/true ocserv-args.def
/bin/true ocpasswd-args.def
depbase=`echo main.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. -I./../gl/ -I./../gl/ -I./ -I./../ -I../libopts -I/opt/atomic/atomic-gnutls3/root/usr/include/gnutls -Iprotobuf -I/opt/atomic/atomic-gnutls3/root/usr/include/gnutls -I./pcl/ -g -O2 -Wall -MT main.o -MD -MP -MF $depbase.Tpo -c -o main.o main.c &&\
mv -f $depbase.Tpo $depbase.Po
In file included from ./main.h:28,
from ./script-list.h:24,
from main.c:40:
./vpn.h:322:1: warning: "TLS_MASTER_SIZE" redefined
In file included from /usr/include/gnutls/gnutls.h:48,
from ./vpn.h:25,
from ./main.h:28,
from ./script-list.h:24,
from main.c:40:
/usr/include/gnutls/compat.h:90:1: warning: this is the location of the previous definition
In file included from ./main.h:29,
from ./script-list.h:24,
from main.c:40:
./tlslib.h:25:27: error: gnutls/pkcs11.h: No such file or directory
main.c: In function ‘listen_ports’:
main.c:276: warning: unused variable ‘fds’
main.c: In function ‘main’:
main.c:959: warning: implicit declaration of function ‘gnutls_rnd’
make[4]: *** [main.o] Error 1
make[4]: Leaving directory `/usr/local/src/ocserv-0.9.0/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/local/src/ocserv-0.9.0/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/local/src/ocserv-0.9.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/ocserv-0.9.0'
make: *** [all] Error 2
> On Thu, Jan 22, 2015 at 21:14, Nikos Mavrogiannopoulos <n.mavrogiannopoulos at gmail.com> wrote:
>
> On Thu, Jan 22, 2015 at 2:06 PM, Jack Lee <jack at evlit.com> wrote:
>> wget http://www6.atomicorp.com/channels/atomic/centos/6/x86_64/RPMS/atomic-release-1.0-19.el6.art.noarch.rpm
> [...]
>> ocpasswd-args.c:438: warning: suggest parentheses around arithmetic in operand of '|'
>> AR libcmd-ocpasswd.a
>> CC ocpasswd.o
>> ocpasswd.c: In function 'crypt_int':
>> ocpasswd.c:65: warning: implicit declaration of function 'gnutls_rnd'
>> CCLD ocpasswd
>> ocpasswd.o: In function `crypt_int':
>> /usr/local/src/ocserv-0.9.0/src/ocpasswd.c:65: undefined reference to `gnutls_rnd'
>
> It seems that ocpasswd is being built using an older gnutls which
> doesn't have gnutls_rnd(). Try compiling with V=1 to see which flags
> are being passed to compiler and linker.
>
> regards,
> Nikos
More information about the openconnect-devel
mailing list