Subject: pkgsrc conflict: compiling mysql with bind8 libs
To: None <netbsd-help@netbsd.org>
From: Heron Gallegos <gallegos@csxxi.sepc.edu.mx>
List: netbsd-help
Date: 05/05/2001 14:55:13
Hello
I need to have bind8 (secure) and mysql-server in the same box
but I cant because I have errors when compiling mysql.
It seems like a conflict between bind-8.2.3 libs and
mysql-3.22.32
Does anybody can tell me how solve this problem?
Thanks in advance
Heron Gallegos
To reproduce this problem, "first" compile and install pkgsrc/net/bind8
and "second" compile pkgsrc/databases/mysql-server. Otherwise mysql
will be compiled cleanly without bind-8.2.3 libraries.
#
# my box:
#
NetBSD alpha 1.5 NetBSD 1.5 (ALPHA) #2: Tue Feb 27 11:46:20 CST 2001
gallegos@alpha:/usr/src/sys/arch/i386/compile/ALPHA i386
#
# my pkgsrc.tar.gz:
#
-rw-r--r-- 1 gallegos staff 9131942 Mar 27 05:43 pkgsrc.tar.gz
#
# my pkg_info after compile errors:
#
digest-20010312 message digest wrapper utility
m4-1.4 GNU version of Unix m4 macro-processor
bind-8.2.3 The Berkeley Internet Name Daemon, an implementation of DNS
perl-base-5.6.0 base installation of Perl
p5-Data-Dumper-2.101 perl5 module for stringified perl data structures
p5-Devel-DProf-19990108 perl5 module for profiling perl programs
p5-Devel-Peek-1.0001 perl5 module containing a data debugging tool for XS programmers
p5-CGI-2.75 perl5 module for writing forms-based CGI programs
perl-mk-1.0 Note installed perl version for bsd.pkg.mk speedup
perl-5.6.0nb4 Practical Extraction and Report Language
autoconf-2.13 Automatically configure source code on many Un*x platforms
libtool-base-1.4.20010219nb4 Generic shared library support script (the script itself)
libtool-info-1.4.20010219nb4 Generic shared library support script - info pages
libtool-1.4.20010219nb4 Generic shared library support script
mysql-client-3.22.32 MySQL, a free SQL database (client)
#
# the last lines of compilation messages (compiling mysql-server)
#
/bin/sh ../libtool --mode=link cc -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O6 -DDBUG_OFF -O2 -Dunix -Dunix -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -o perror perror.o ../mysys/libmysys.a ../dbug/libdbug.a ../strings/libmystrings.a ../mit-pthreads/obj/libpthread.a -lm -lz -lcrypt -lbind
cc -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O6 -DDBUG_OFF -O2 -Dunix -Dunix -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -o perror perror.o ../mysys/libmysys.a ../dbug/libdbug.a ../strings/libmystrings.a ../mit-pthreads/obj/libpthread.a -lm -lz -lcrypt -lbind
../mit-pthreads/obj/libpthread.a(strerror.o): In function `strerror':
strerror.o(.text+0x17): warning: reference to compatibility sys_errlist[]; include <errno.h> for correct reference
strerror.o(.text+0xe): warning: reference to compatibility sys_nerr; include <errno.h> for correct reference
cc -DHAVE_CONFIG_H -I. -I. -I.. -I../mit-pthreads/include -I./../include -I../include -I.. -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O6 -DDBUG_OFF -O2 -Dunix -Dunix -c resolveip.c
/bin/sh ../libtool --mode=link cc -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O6 -DDBUG_OFF -O2 -Dunix -Dunix -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -o resolveip resolveip.o ../mysys/libmysys.a ../dbug/libdbug.a ../strings/libmystrings.a ../mit-pthreads/obj/libpthread.a -lm -lz -lcrypt -lbind
cc -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O6 -DDBUG_OFF -O2 -Dunix -Dunix -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -o resolveip resolveip.o ../mysys/libmysys.a ../dbug/libdbug.a ../strings/libmystrings.a ../mit-pthreads/obj/libpthread.a -lm -lz -lcrypt -lbind
/usr/pkg/lib/libbind.a(res_comp.o): In function `__dn_skipname':
/usr/pkgsrc/net/bind8/work/src/lib/resolv/res_comp.c:124: multiple definition of `__dn_skipname'
../mit-pthreads/obj/libpthread.a(res_comp.o)(.text+0x254): first defined here
/usr/bin/ld: Warning: size of symbol `__dn_skipname' changed from 80 to 34 in res_comp.o
/usr/pkg/lib/libbind.a(res_comp.o): In function `_getlong':
/usr/pkgsrc/net/bind8/work/src/lib/resolv/res_comp.c:248: multiple definition of `_getlong'
../mit-pthreads/obj/libpthread.a(res_comp.o)(.text+0x37c): first defined here
/usr/bin/ld: Warning: size of symbol `_getlong' changed from 40 to 13 in res_comp.o
/usr/pkg/lib/libbind.a(res_comp.o): In function `__putlong':
/usr/pkgsrc/net/bind8/work/src/lib/resolv/res_comp.c:245: multiple definition of `__putlong'
../mit-pthreads/obj/libpthread.a(res_comp.o)(.text+0x3bc): first defined here
/usr/bin/ld: Warning: size of symbol `__putlong' changed from 37 to 16 in res_comp.o
/usr/pkg/lib/libbind.a(res_comp.o): In function `_getshort':
/usr/pkgsrc/net/bind8/work/src/lib/resolv/res_comp.c:249: multiple definition of `_getshort'
../mit-pthreads/obj/libpthread.a(res_comp.o)(.text+0x360): first defined here
/usr/bin/ld: Warning: size of symbol `_getshort' changed from 26 to 18 in res_comp.o
/usr/pkg/lib/libbind.a(res_comp.o): In function `__putshort':
/usr/pkgsrc/net/bind8/work/src/lib/resolv/res_comp.c:246: multiple definition of `__putshort'
../mit-pthreads/obj/libpthread.a(res_comp.o)(.text+0x3a4): first defined here
/usr/bin/ld: Warning: size of symbol `__putshort' changed from 22 to 18 in res_comp.o
/usr/pkg/lib/libbind.a(res_data.o): In function `__res_init':
/usr/pkgsrc/net/bind8/work/src/lib/resolv/res_data.c:118: multiple definition of `_res'
../mit-pthreads/obj/libpthread.a(res_internal.o)(.data+0x60): first defined here
/usr/bin/ld: Warning: size of symbol `_res' changed from 444 to 528 in res_data.o
collect2: ld returned 1 exit status
*** Error code 1
Stop.
*** Error code 1
Stop.
*** Error code 1
Stop.
*** Error code 1
Stop.
*** Error code 1
Stop.
*** Error code 1
Stop.
alpha#