It seems, that the function EC_curve_nist2nid() was introduced in OpenSSL 1.0.2, and you have probably on that machine a version of OpenSSL between 1.0 and that version. I have just now committed a change to bitbucket [1] that should address this compilation issue.

Applying the change to NaviServer sources will help, but also upgrading debian will work, and should be performed regardless of this issue: Debian 7 (wheezy) has ended its LTS life in May 2018 [2], going to Debian 8 or 9 is therefore the way to go.

all the best
-gn
[1] https://bitbucket.org/naviserver/naviserver/commits/49c314f2b1e9410de0f61935c0bb07457846bd66
[2] https://wiki.debian.org/LTS/


On 20.11.18 04:16, Iuri Sampaio wrote:
Hi there,

Has anyone got a similar error related to tclcrypto library?

Right now, I’m search for the package, which could contain the source for the reference EC_curve_nist2nid, but Debian 7 is an old distro…
I’m already using openssl latest version for Debian 7
Next attempt will be upgrading to Debian 9. Shall I?


gcc -O2 -fomit-frame-pointer -DNDEBUG -Wall -fPIC  -pipe -I../include -I"/usr/local/ns/include"  -DHAVE_CONFIG_H -c -o tclcrypto.o tclcrypto.c
tclcrypto.c: In function 'GetCurve':
tclcrypto.c:463:9: warning: implicit declaration of function 'EC_curve_nist2nid' [-Wimplicit-function-declaration]
/bin/rm -Rf libnsd.so
gcc -shared -O2 -fomit-frame-pointer -DNDEBUG -Wall -fPIC -pipe  -I../include -I"/usr/local/ns/include" -DHAVE_CONFIG_H    -L../nsthread -L../nsd -L../nsdb -o libnsd.so adpcmds.o adpeval.o adpparse.o adprequest.o auth.o binder.o cache.o callbacks.o cls.o compress.o config.o conn.o connio.o cookies.o connchan.o crypt.o dns.o driver.o dstring.o encoding.o event.o exec.o fastpath.o fd.o filter.o form.o httptime.o index.o info.o init.o limits.o lisp.o listen.o log.o mimetypes.o modload.o nsconf.o nsmain.o nsthread.o op.o pathname.o pidfile.o proc.o progress.o queue.o quotehtml.o random.o range.o request.o return.o returnresp.o rollfile.o sched.o server.o set.o sls.o sock.o sockcallback.o sockfile.o str.o task.o tclcache.o tclcallbacks.o tclcmds.o tclconf.o tclenv.o tclfile.o tclhttp.o tclimg.o tclinit.o tcljob.o tclmisc.o tclobj.o tclobjv.o tclrequest.o tclresp.o tclsched.o tclset.o tclsock.o sockaddr.o tclthread.o tcltime.o tclvar.o tclxkeylist.o tls.o stamp.o url.o url2file.o urlencode.o urlopen.o urlspace.o uuencode.o unix.o watchdog.o nswin32.o tclcrypto.o   -lz -lcrypt -lnsthread -L/usr/local/ns/lib -ltcl8.6  -lgcc_s  -lieee -lm  -Wl,--export-dynamic -L/usr/local/ns/lib -lssl -lcrypto -Wl,-rpath,:/usr/local/ns/lib gcc -O2 -fomit-frame-pointer -DNDEBUG -Wall -fPIC  -pipe -I../include -I"/usr/local/ns/include"  -DHAVE_CONFIG_H -c -o main.o main.c
/bin/rm -Rf nsd
gcc -L../nsthread -L../nsd -L../nsdb -o nsd main.o libnsd.so -lz -lcrypt -lnsthread -L/usr/local/ns/lib -ltcl8.6  -lgcc_s -lieee -lm  -Wl,--export-dynamic  -L/usr/local/ns/lib -lssl -lcrypto   -Wl,-rpath,:/usr/local/ns/lib
libnsd.so: undefined reference to `EC_curve_nist2nid'
collect2: error: ld returned 1 exit status
make[1]: *** [nsd] Error 1
make[1]: Leaving directory `/usr/local/src/naviserver-4.99.17/nsd'
make: *** [all] Error 1
root@iurix:/usr/local/src/install-ns#

_______________________________________________
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel

Reply via email to