wget http://www6.atomicorp.com/channels/atomic/centos/6/x86_64/RPMS/atomic-release-1.0-19.el6.art.noarch.rpm rpm -Uvh atomic-release-1.0-19.el6.art.noarch.rpm yum install nettle-devel atomic-gnutls3-gnutls atomic-gnutls3-gnutls-devel search atomic-gnutls3-gnutls atomic-gnutls3-gnutls-utils cd /usr/local/src/ wget -t 0 -T 60 "ftp://ftp.infradead.org/pub/ocserv/ocserv-0.9.0.1.tar.xz" tar Jxf ocserv-0.9.0.1.tar.xz cd ocserv-0.9.0 LIBGNUTLS_CFLAGS="-I/atomic/atomic-gnutls3/root/usr/include/gnutls/" LIBGNUTLS_LIBS="-L/atomic/atomic-gnutls3/root/usr/lib64/ -lgnutls" ./configure --enable-linux-namespaces --with-libseccomp-prefix make [root at z86l217 ocserv-0.9.0]# make 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' GEN c++defs.h GEN arg-nonnull.h GEN warn-on-use.h GEN fcntl.h GEN stdio.h GEN stdlib.h GEN string.h GEN strings.h GEN sys/stat.h GEN sys/time.h GEN sys/types.h GEN time.h GEN unistd.h 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' CC base64.o CC c-ctype.o CC c-strcasecmp.o CC c-strncasecmp.o CC cloexec.o CC fd-hook.o CC unistd.o CC fcntl.o CC strcasestr.o AR libgnu.a 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' GEN stdnoreturn.h make all-am make[3]: Entering directory `/usr/local/src/ocserv-0.9.0/libopts' CC libopts_a-libopts.o In file included from libopts.c:24: enum.c: In function ?enum_err?: enum.c:112: warning: embedded ?\0? in format enum.c:135: warning: embedded ?\0? in format enum.c:148: warning: embedded ?\0? in format enum.c:155: warning: embedded ?\0? in format enum.c: In function ?optionEnumerationVal?: enum.c:307: warning: embedded ?\0? in format In file included from libopts.c:27: find.c: In function ?opt_ambiguities?: find.c:114: warning: embedded ?\0? in format find.c:119: warning: embedded ?\0? in format find.c: In function ?opt_set?: find.c:219: warning: embedded ?\0? in format find.c: In function ?opt_find_short?: find.c:432: warning: embedded ?\0? in format In file included from libopts.c:30: makeshell.c: In function ?optionParseShell?: makeshell.c:147: warning: embedded ?\0? in format makeshell.c:157: warning: embedded ?\0? in format makeshell.c:166: warning: embedded ?\0? in format makeshell.c:178: warning: embedded ?\0? in format makeshell.c:184: warning: embedded ?\0? in format makeshell.c:195: warning: embedded ?\0? in format makeshell.c: In function ?emit_var_text?: makeshell.c:230: warning: embedded ?\0? in format makeshell.c: In function ?emit_usage?: makeshell.c:373: warning: embedded ?\0? in format makeshell.c:381: warning: embedded ?\0? in format makeshell.c:383: warning: embedded ?\0? in format makeshell.c:386: warning: embedded ?\0? in format makeshell.c: In function ?emit_wrapup?: makeshell.c:436: warning: embedded ?\0? in format makeshell.c: In function ?emit_action?: makeshell.c:532: warning: embedded ?\0? in format makeshell.c:535: warning: embedded ?\0? in format makeshell.c:538: warning: embedded ?\0? in format makeshell.c:539: warning: embedded ?\0? in format makeshell.c:544: warning: embedded ?\0? in format makeshell.c:545: warning: embedded ?\0? in format makeshell.c:547: warning: embedded ?\0? in format makeshell.c:551: warning: embedded ?\0? in format makeshell.c:555: warning: embedded ?\0? in format makeshell.c:557: warning: embedded ?\0? in format makeshell.c:564: warning: embedded ?\0? in format makeshell.c:565: warning: embedded ?\0? in format makeshell.c:568: warning: embedded ?\0? in format makeshell.c:569: warning: embedded ?\0? in format makeshell.c:572: warning: embedded ?\0? in format makeshell.c: In function ?emit_inaction?: makeshell.c:582: warning: embedded ?\0? in format makeshell.c:586: warning: embedded ?\0? in format makeshell.c:589: warning: embedded ?\0? in format makeshell.c:591: warning: embedded ?\0? in format makeshell.c: In function ?emit_flag?: makeshell.c:614: warning: embedded ?\0? in format makeshell.c: In function ?emit_match_expr?: makeshell.c:689: warning: embedded ?\0? in format makeshell.c:699: warning: embedded ?\0? in format In file included from libopts.c:31: nested.c: In function ?emit_special_char?: nested.c:926: warning: embedded ?\0? in format In file included from libopts.c:33: pgusage.c: In function ?open_tmp_usage?: pgusage.c:49: warning: embedded ?\0? in format pgusage.c:49: warning: embedded ?\0? in format pgusage.c: In function ?mk_pager_cmd?: pgusage.c:90: warning: embedded ?\0? in format pgusage.c:90: warning: embedded ?\0? in format In file included from libopts.c:34: putshell.c: In function ?optionQuoteString?: putshell.c:190: warning: embedded ?\0? in format putshell.c: In function ?print_enumeration?: putshell.c:277: warning: embedded ?\0? in format putshell.c:283: warning: embedded ?\0? in format putshell.c:288: warning: embedded ?\0? in format putshell.c: In function ?print_membership?: putshell.c:298: warning: embedded ?\0? in format putshell.c:315: warning: embedded ?\0? in format putshell.c: In function ?print_stacked_arg?: putshell.c:330: warning: embedded ?\0? in format putshell.c:334: warning: embedded ?\0? in format putshell.c:337: warning: embedded ?\0? in format putshell.c: In function ?optionPutShell?: putshell.c:375: warning: embedded ?\0? in format putshell.c:403: warning: embedded ?\0? in format putshell.c:442: warning: embedded ?\0? in format putshell.c:452: warning: embedded ?\0? in format putshell.c:472: warning: embedded ?\0? in format putshell.c:484: warning: embedded ?\0? in format putshell.c:491: warning: embedded ?\0? in format putshell.c:493: warning: embedded ?\0? in format In file included from libopts.c:37: save.c: In function ?prt_value?: save.c:351: warning: embedded ?\0? in format save.c:366: warning: embedded ?\0? in format save.c:386: warning: embedded ?\0? in format save.c:392: warning: embedded ?\0? in format save.c:397: warning: embedded ?\0? in format save.c: In function ?prt_string?: save.c:411: warning: embedded ?\0? in format save.c:439: warning: embedded ?\0? in format save.c: In function ?prt_val_list?: save.c:459: warning: embedded ?\0? in format save.c:463: warning: embedded ?\0? in format save.c: In function ?prt_nested?: save.c:503: warning: embedded ?\0? in format save.c: In function ?open_sv_file?: save.c:556: warning: embedded ?\0? in format In file included from libopts.c:44: usage.c: In function ?print_usage_details?: usage.c:352: warning: embedded ?\0? in format usage.c:357: warning: embedded ?\0? in format usage.c: In function ?print_one_paragraph?: usage.c:437: warning: embedded ?\0? in format AR libopts.a 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' CC pcl.o pcl.c: In function ?co_create?: pcl.c:383: warning: unused variable ?r? pcl.c: At top level: pcl.c:60: warning: ?co_ctx_stackdir? defined but not used CC pcl_version.o CC pcl_private.o AR libpcl.a 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 CC ocserv-args.o ocserv-args.c:473: warning: suggest parentheses around arithmetic in operand of ?|? AR libcmd-ocserv.a /bin/true ocpasswd-args.def CC ocpasswd-args.o 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' collect2: ld returned 1 exit status make[4]: *** [ocpasswd] 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 [root at z86l217 ocserv-0.9.0]# using centos 6.6 64bit, I try to compiled gnutls library, get the same error