Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failure on Solaris 10 #359

Closed
k0ekk0ek opened this issue Jul 25, 2024 · 0 comments
Closed

Build failure on Solaris 10 #359

k0ekk0ek opened this issue Jul 25, 2024 · 0 comments
Assignees
Labels

Comments

@k0ekk0ek
Copy link

A user reported build issues with NSD 4.10.1rc2 via email:

I think the issue is caused because libssl is missing ASN1_STRING_get0_data, which was introduced to options.c when #337 (Mutual TLS-AUTH) was merged.

Build log with Oracle Developer Studio 12.6.

/opt/developerstudio12.6/bin/cc -I/opt/csw/include -I/opt/csw/include -I. -I/opt/csw/include -I./simdzone/include -xO3 -m32 -xarch=sparc -c ./compat/b64_ntop.c
/opt/developerstudio12.6/bin/cc -I/opt/csw/include -I/opt/csw/include -I. -I/opt/csw/include -I./simdzone/include -xO3 -m32 -xarch=sparc -c ./compat/setproctitle.c
/opt/developerstudio12.6/bin/cc -I/opt/csw/include -I/opt/csw/include -I. -I/opt/csw/include -I./simdzone/include -xO3 -m32 -xarch=sparc -c ./compat/explicit_bzero.c
"./compat/explicit_bzero.c", line 14: warning:  attribute "unused" is unknown, ignored
"./compat/explicit_bzero.c", line 14: warning:  attribute "unused" is unknown, ignored
/opt/developerstudio12.6/bin/cc -I/opt/csw/include -I/opt/csw/include -I. -I/opt/csw/include -I./simdzone/include -xO3 -m32 -xarch=sparc -c ./compat/reallocarray.c
/opt/developerstudio12.6/bin/cc -xO3 -m32 -xarch=sparc -m32 -xarch=sparc -L/opt/csw/lib -L/opt/csw/lib -L/opt/csw/lib -o nsd answer.o axfr.o ixfr.o ixfrcreate.o buffer.o configlexer.o configparser.o dname.o dns.o edns.o iterated_hash.o lookup3.o namedb.o nsec3.o options.o packet.o query.o rbtree.o radtree.o rdata.o region-allocator.o rrl.o siphash.o tsig.o tsig-openssl.o udb.o util.o bitset.o popen3.o proxy_protocol.o xfrd-catalog-zones.o xfrd-disk.o xfrd-notify.o xfrd-tcp.o xfrd.o remote.o  difffile.o ipc.o mini_event.o netio.o nsd.o server.o dbaccess.o dbcreate.o zonec.o verify.o b64_pton.o b64_ntop.o setproctitle.o explicit_bzero.o reallocarray.o simdzone/libzone.a -lssl -lcrypto -lsocket -lnsl -levent -lrt
Undefined                       first referenced
 symbol                             in file
ASN1_STRING_get0_data               options.o
ld: fatal: symbol referencing errors. No output written to nsd
gmake: *** [Makefile:169: nsd] Error 2
gmake: Leaving directory '/home/ihsan/opencsw/nsd/trunk/work/solaris10-sparc/build-isa-sparcv8plus/nsd-4.10.1rc2'
gmake[1]: *** [/home/ihsan/opencsw/.buildsys/v2/gar//gar.lib.mk:908: build-work/solaris10-sparc/build-isa-sparcv8plus/nsd-4.10.1rc2/Makefile] Error 2

Build log with GCC 5.5:

/opt/csw/bin/gcc-5.5 -I/opt/csw/include -I/opt/csw/include -I. -I/opt/csw/include -I./simdzone/include -O2 -pipe -fno-omit-frame-pointer -mcpu=v9 -Wa,-xarch=v8plus -c ./compat/reallocarray.c
/opt/csw/bin/gcc-5.5 -O2 -pipe -fno-omit-frame-pointer -mcpu=v9 -Wa,-xarch=v8plus -mcpu=v9 -Wa,-xarch=v8plus -L/opt/csw/lib -L/opt/csw/lib -L/opt/csw/lib -o nsd answer.o axfr.o ixfr.o ixfrcreate.o buffer.o configlexer.o configparser.o dname.o dns.o edns.o iterated_hash.o lookup3.o namedb.o nsec3.o options.o packet.o query.o rbtree.o radtree.o rdata.o region-allocator.o rrl.o siphash.o tsig.o tsig-openssl.o udb.o util.o bitset.o popen3.o proxy_protocol.o xfrd-catalog-zones.o xfrd-disk.o xfrd-notify.o xfrd-tcp.o xfrd.o remote.o  difffile.o ipc.o mini_event.o netio.o nsd.o server.o dbaccess.o dbcreate.o zonec.o verify.o b64_pton.o b64_ntop.o setproctitle.o explicit_bzero.o reallocarray.o simdzone/libzone.a -lssl -lcrypto -lsocket -lnsl -levent -lrt
Undefined                       first referenced
 symbol                             in file
ASN1_STRING_get0_data               options.o
ld: fatal: symbol referencing errors. No output written to nsd
collect2: error: ld returned 1 exit status
gmake: *** [Makefile:169: nsd] Error 1
gmake: Leaving directory '/home/ihsan/opencsw/nsd/trunk/work/solaris10-sparc/build-isa-sparcv8plus/nsd-4.10.1rc2'
gmake[1]: *** [/home/ihsan/opencsw/.buildsys/v2/gar//gar.lib.mk:908: build-work/solaris10-sparc/build-isa-sparcv8plus/nsd-4.10.1rc2/Makefile] Error 2
gmake[1]: Leaving directory '/home/ihsan/opencsw/nsd/trunk‘
@k0ekk0ek k0ekk0ek added the bug label Jul 25, 2024
@k0ekk0ek k0ekk0ek self-assigned this Jul 25, 2024
k0ekk0ek pushed a commit to k0ekk0ek/nsd that referenced this issue Jul 29, 2024
k0ekk0ek pushed a commit to k0ekk0ek/nsd that referenced this issue Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant