pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/29983: net/nsd fails to build on NetBSD/i386 1.6



>Number:         29983
>Category:       pkg
>Synopsis:       net/nsd fails to build on NetBSD/i386 1.6
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Apr 15 22:27:00 +0000 2005
>Originator:     ISIHARA Takanori
>Release:        NetBSD/i386 1.6.2_STABLE
>Organization:
Nagoya *BSD Users' Group :-)
>Environment:
NetBSD leaf.sf21npo.gr.jp 1.6.2_STABLE NetBSD 1.6.2_STABLE (GENERIC) #0: Fri 
Mar 18 20:43:16 JST 2005     
root%ishitx40.work.localhost.@localhost:/mnt/NetBSD/NetBSD-release-1-6/mybuild/i386/obj/sys/arch/i386/compile/GENERIC
 i386

>Description:
* net/nsd fails to build on NetBSD/i386 1.6.
** OpenSSL 0.9.7 or higher is required for TSIG support. (README)
* --with-namedxfer configure option is obsolete option.

>How-To-Repeat:
% make
===> Checking for vulnerabilities in nsd-2.2.0
=> Checksum SHA1 OK for nsd-2.2.0.tar.gz.
=> Checksum RMD160 OK for nsd-2.2.0.tar.gz.
===> Extracting for nsd-2.2.0
==========================================================================
The following variables will affect the build process of this package,
nsd-2.2.0.  Their current value is shown below:

        * USE_INET6 = YES

You may want to abort the process now with CTRL-C and change their value
before continuing.  Be sure to run `/usr/bin/make clean' after
the changes.
==========================================================================
===> Patching for nsd-2.2.0
===> Applying pkgsrc patches for nsd-2.2.0
===> Overriding tools for nsd-2.2.0
===> Creating toolchain wrappers for nsd-2.2.0
===> Configuring for nsd-2.2.0
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking for gawk... /usr/pkg/bin/gawk
checking for i386--netbsdelf-gcc... cc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking whether ln -s works... yes
checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for bison... yacc
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking how to run the C preprocessor... cc -E
checking for egrep... grep -E
checking for uid_t in sys/types.h... yes
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for pid_t... yes
checking for size_t... yes
checking whether the C compiler (cc) accepts the "format" attribute... no
checking whether the C compiler (cc) accepts the "unused" attribute... yes
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking for strings.h... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking for stdint.h... (cached) yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking sys/bitypes.h usability... no
checking sys/bitypes.h presence... no
checking for sys/bitypes.h... no
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking tcpd.h usability... yes
checking tcpd.h presence... yes
checking for tcpd.h... yes
checking for library containing inet_pton... none required
checking for library containing socket... none required
checking for library containing dlopen... none required
checking for int8_t... yes
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for uint8_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for socklen_t... yes
checking for sig_atomic_t... yes
checking for in_addr_t... yes
checking for unistd.h... (cached) yes
checking for working chown... yes
checking for unistd.h... (cached) yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking return type of signal handlers... void
checking for alarm... yes
checking for chroot... yes
checking for dup2... yes
checking for endpwent... yes
checking for gethostname... yes
checking for memset... yes
checking for memcpy... yes
checking for mmap... yes
checking for socket... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strdup... yes
checking for strerror... yes
checking for strncasecmp... yes
checking for strtol... yes
checking for getaddrinfo... yes
checking for getnameinfo... yes
checking for freeaddrinfo... yes
checking for gai_strerror... yes
checking for sigaction... yes
checking for sigprocmask... yes
checking for dlopen... yes
checking for dlerror... yes
checking for dlsym... yes
checking for dlclose... yes
checking for basename... yes
checking for inet_pton... yes
checking for snprintf... yes
checking for b64_pton... no
checking for b64_ntop... no
checking for timegm... yes
checking for pselect... no
checking for library containing yp_get_default_domain... no
checking for SSL... found in /usr
checking for HMAC_CTX_init in -lcrypto... no
configure: error: OpenSSL found in /usr
exit: Illegal number: but
exit: Illegal number: but
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
===> Building for nsd-2.2.0
cc -I/usr/include -I/usr/include -DHAVE_CONFIG_H -I. 
-DDBFILE=\"/usr/pkg/etc/nsd/nsd.db\" -DPIDFILE=\"/var/run/nsd.pid\" 
-DUSER=\"named\" -O2 -I/usr/include -c answer.c
cc -I/usr/include -I/usr/include -DHAVE_CONFIG_H -I. 
-DDBFILE=\"/usr/pkg/etc/nsd/nsd.db\" -DPIDFILE=\"/var/run/nsd.pid\" 
-DUSER=\"named\" -O2 -I/usr/include -c axfr.c
cc -I/usr/include -I/usr/include -DHAVE_CONFIG_H -I. 
-DDBFILE=\"/usr/pkg/etc/nsd/nsd.db\" -DPIDFILE=\"/var/run/nsd.pid\" 
-DUSER=\"named\" -O2 -I/usr/include -c buffer.c
cc -I/usr/include -I/usr/include -DHAVE_CONFIG_H -I. 
-DDBFILE=\"/usr/pkg/etc/nsd/nsd.db\" -DPIDFILE=\"/var/run/nsd.pid\" 
-DUSER=\"named\" -O2 -I/usr/include -c dbaccess.c
cc -I/usr/include -I/usr/include -DHAVE_CONFIG_H -I. 
-DDBFILE=\"/usr/pkg/etc/nsd/nsd.db\" -DPIDFILE=\"/var/run/nsd.pid\" 
-DUSER=\"named\" -O2 -I/usr/include -c dname.c
cc -I/usr/include -I/usr/include -DHAVE_CONFIG_H -I. 
-DDBFILE=\"/usr/pkg/etc/nsd/nsd.db\" -DPIDFILE=\"/var/run/nsd.pid\" 
-DUSER=\"named\" -O2 -I/usr/include -c dns.c
cc -I/usr/include -I/usr/include -DHAVE_CONFIG_H -I. 
-DDBFILE=\"/usr/pkg/etc/nsd/nsd.db\" -DPIDFILE=\"/var/run/nsd.pid\" 
-DUSER=\"named\" -O2 -I/usr/include -c edns.c
cc -I/usr/include -I/usr/include -DHAVE_CONFIG_H -I. 
-DDBFILE=\"/usr/pkg/etc/nsd/nsd.db\" -DPIDFILE=\"/var/run/nsd.pid\" 
-DUSER=\"named\" -O2 -I/usr/include -c namedb.c
cc -I/usr/include -I/usr/include -DHAVE_CONFIG_H -I. 
-DDBFILE=\"/usr/pkg/etc/nsd/nsd.db\" -DPIDFILE=\"/var/run/nsd.pid\" 
-DUSER=\"named\" -O2 -I/usr/include -c netio.c
cc -I/usr/include -I/usr/include -DHAVE_CONFIG_H -I. 
-DDBFILE=\"/usr/pkg/etc/nsd/nsd.db\" -DPIDFILE=\"/var/run/nsd.pid\" 
-DUSER=\"named\" -O2 -I/usr/include -c nsd.c
cc -I/usr/include -I/usr/include -DHAVE_CONFIG_H -I. 
-DDBFILE=\"/usr/pkg/etc/nsd/nsd.db\" -DPIDFILE=\"/var/run/nsd.pid\" 
-DUSER=\"named\" -O2 -I/usr/include -c packet.c
cc -I/usr/include -I/usr/include -DHAVE_CONFIG_H -I. 
-DDBFILE=\"/usr/pkg/etc/nsd/nsd.db\" -DPIDFILE=\"/var/run/nsd.pid\" 
-DUSER=\"named\" -O2 -I/usr/include -c plugins.c
cc -I/usr/include -I/usr/include -DHAVE_CONFIG_H -I. 
-DDBFILE=\"/usr/pkg/etc/nsd/nsd.db\" -DPIDFILE=\"/var/run/nsd.pid\" 
-DUSER=\"named\" -O2 -I/usr/include -c query.c
cc -I/usr/include -I/usr/include -DHAVE_CONFIG_H -I. 
-DDBFILE=\"/usr/pkg/etc/nsd/nsd.db\" -DPIDFILE=\"/var/run/nsd.pid\" 
-DUSER=\"named\" -O2 -I/usr/include -c rbtree.c
cc -I/usr/include -I/usr/include -DHAVE_CONFIG_H -I. 
-DDBFILE=\"/usr/pkg/etc/nsd/nsd.db\" -DPIDFILE=\"/var/run/nsd.pid\" 
-DUSER=\"named\" -O2 -I/usr/include -c rdata.c
cc -I/usr/include -I/usr/include -DHAVE_CONFIG_H -I. 
-DDBFILE=\"/usr/pkg/etc/nsd/nsd.db\" -DPIDFILE=\"/var/run/nsd.pid\" 
-DUSER=\"named\" -O2 -I/usr/include -c region-allocator.c
cc -I/usr/include -I/usr/include -DHAVE_CONFIG_H -I. 
-DDBFILE=\"/usr/pkg/etc/nsd/nsd.db\" -DPIDFILE=\"/var/run/nsd.pid\" 
-DUSER=\"named\" -O2 -I/usr/include -c server.c
cc -I/usr/include -I/usr/include -DHAVE_CONFIG_H -I. 
-DDBFILE=\"/usr/pkg/etc/nsd/nsd.db\" -DPIDFILE=\"/var/run/nsd.pid\" 
-DUSER=\"named\" -O2 -I/usr/include -c tsig.c
cc -I/usr/include -I/usr/include -DHAVE_CONFIG_H -I. 
-DDBFILE=\"/usr/pkg/etc/nsd/nsd.db\" -DPIDFILE=\"/var/run/nsd.pid\" 
-DUSER=\"named\" -O2 -I/usr/include -c tsig-openssl.c
cc -I/usr/include -I/usr/include -DHAVE_CONFIG_H -I. 
-DDBFILE=\"/usr/pkg/etc/nsd/nsd.db\" -DPIDFILE=\"/var/run/nsd.pid\" 
-DUSER=\"named\" -O2 -I/usr/include -c util.c
cc -I/usr/include -I/usr/include -DHAVE_CONFIG_H -I. 
-DDBFILE=\"/usr/pkg/etc/nsd/nsd.db\" -DPIDFILE=\"/var/run/nsd.pid\" 
-DUSER=\"named\" -O2 -I/usr/include -c compat/b64_pton.c -o b64_pton.o
cc -I/usr/include -I/usr/include -DHAVE_CONFIG_H -I. 
-DDBFILE=\"/usr/pkg/etc/nsd/nsd.db\" -DPIDFILE=\"/var/run/nsd.pid\" 
-DUSER=\"named\" -O2 -I/usr/include -c compat/b64_ntop.c -o b64_ntop.o
cc -I/usr/include -I/usr/include -DHAVE_CONFIG_H -I. 
-DDBFILE=\"/usr/pkg/etc/nsd/nsd.db\" -DPIDFILE=\"/var/run/nsd.pid\" 
-DUSER=\"named\" -O2 -I/usr/include -c compat/pselect.c -o pselect.o
cc -O2 -I/usr/include -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib -L/usr/lib 
-o nsd answer.o                            axfr.o                               
   buffer.o                                dbaccess.o                           
   dname.o                                         dns.o                        
           edns.o                                  namedb.o                     
           netio.o                                         nsd.o                
                   packet.o                                plugins.o            
                   query.o                                         rbtree.o     
                           rdata.o                                         
region-allocator.o                      server.o                                
tsig.o                                  tsig-openssl.o                          
util.o b64_pton.o b64_ntop.o pselect.o -L/usr -lwrap
tsig-openssl.o: In function `tsig_openssl_init':
tsig-openssl.o(.text+0xd): undefined reference to `OpenSSL_add_all_digests'
tsig-openssl.o(.text+0x1a): undefined reference to `EVP_get_digestbyname'
tsig-openssl.o: In function `cleanup_context':
tsig-openssl.o(.text+0xc1): undefined reference to `HMAC_CTX_cleanup'
tsig-openssl.o: In function `create_context':
tsig-openssl.o(.text+0xfa): undefined reference to `HMAC_CTX_init'
tsig-openssl.o: In function `init_context':
tsig-openssl.o(.text+0x126): undefined reference to `HMAC_Init_ex'
tsig-openssl.o: In function `update':
tsig-openssl.o(.text+0x13f): undefined reference to `HMAC_Update'
tsig-openssl.o: In function `final':
tsig-openssl.o(.text+0x167): undefined reference to `HMAC_Final'
*** Error code 1

Stop.
make: stopped in /opt/pkgsrc/net/nsd/work.i386/nsd-2.2.0
*** Error code 1

Stop.
make: stopped in /opt/pkgsrc/net/nsd
===>
===> There was an error during the ``build'' phase.
===> Please investigate the following for more information:
===>      * log of the build
===>      * /opt/pkgsrc/net/nsd/work.i386/.work.log
===>
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/net/nsd

>Fix:
--- /usr/pkgsrc/net/nsd/Makefile        2005-04-13 01:35:41.000000000 +0900
+++ /usr/pkgsrc/net/nsd/Makefile.new    2005-04-16 07:20:55.000000000 +0900
@@ -9,6 +9,7 @@
 COMMENT=       Authoritative-only DNS server
 
 BUILD_DEFS+=   USE_INET6
+BUILDLINK_DEPENDS.openssl+=    openssl>=0.9.7
 
 .include "../../mk/bsd.prefs.mk"
 
@@ -17,13 +18,13 @@
 CONFIGURE_ARGS=        --sysconfdir=${PKG_SYSCONFDIR}
 CONFIGURE_ARGS+=--enable-bind8-stats
 CONFIGURE_ARGS+=--with-libwrap=${BUILDLINK_PREFIX.tcp_wrappers}
+CONFIGURE_ARGS+=--with-ssl=${SSLBASE}
 .if !defined(USE_INET6)
 CONFIGURE_ARGS+=--disable-ipv6
 .endif
 .if ${OPSYS} == "NetBSD"
 CONFIGURE_ARGS+=--with-pidfile=${VARBASE}/run/nsd.pid
 CONFIGURE_ARGS+=--with-user=named
-CONFIGURE_ARGS+=--with-namedxfer=/usr/libexec/named-xfer
 .endif
 
 post-install:
@@ -37,4 +38,5 @@
 .endfor
 
 .include "../../security/tcp_wrappers/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"




Home | Main Index | Thread Index | Old Index