Subject: can't compile mysql-client
To: None <netbsd-users@NetBSD.org>
From: Bryan Buecking <bryan.buecking@mediamines.com>
List: netbsd-users
Date: 12/30/2004 21:45:21
I am in the midst of updating mysql-server and the build is failing on 
mysql-client.  I hope someone out there can help me out with this.

---
emar# uname -sr
NetBSD 1.6.1
emar# make clean
===> Cleaning for mysql-client-4.0.22nb3
emar# cvs -q up -dP
emar# make install
===> Checking for vulnerabilities in mysql-client-4.0.22nb3
=> Checksum OK for mysql-4.0.22.tar.gz.
===> Extracting for mysql-client-4.0.22nb3
===> Required installed package perl>=5.0: perl-5.8.3 found
===> Required installed package pth>=2.0.0: pth-2.0.0 found
===> Required installed package openssl>=0.9.6m: openssl-0.9.6m found
===> Required installed package libtool-base>=1.5.2nb4: 
libtool-base-1.5.2nb5 found
===> Required installed package gmake>=3.78: gmake-3.80nb3 found
==========================================================================
The following variables will affect the build process of this package,
mysql-client-4.0.22nb3.  Their current value is shown below:

        * SSLBASE (defined)

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.
==========================================================================
=> Fixing Makefiles.
=> Fixing scripts.
===> Patching for mysql-client-4.0.22nb3
===> Applying pkgsrc patches for mysql-client-4.0.22nb3
===> Overriding tools for mysql-client-4.0.22nb3
===> Buildlinking for mysql-client-4.0.22nb3
===> Configuring for mysql-client-4.0.22nb3
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 build system type... i386-unknown-netbsdelf1.6.1
checking host system type... i386--netbsdelf
checking target system type... i386--netbsdelf
checking for a BSD-compatible install... /usr/bin/install -c -o root -g 
wheel
checking whether build environment is sane... yes
checking for gawk... /usr/bin/awk
checking whether gmake sets $(MAKE)... yes
checking for i386--netbsdelf-strip... no
checking for strip... strip
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether build environment is sane... yes
checking whether gmake sets $(MAKE)... (cached) yes
checking for gawk... (cached) /usr/bin/awk
checking for i386--netbsdelf-gcc... gcc
checking for C compiler default output... configure: error: C compiler 
cannot create executables
See `config.log' for more details.
*** Error code 77

Stop.
make: stopped in /usr/pkgsrc/databases/mysql-client
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/databases/mysql-client

emar# vi work/mysql-4.0.22/config.log

***
After reading config.log, I found that it failed on:
***
mysql -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib 
conftest.c  >&
5
gcc: /usr/pkg/lib/mysql: No such file or directory
configure:2628: $? = 1
configure: failed program was:
| #line 2602 "configure"
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "mysql"
| #define VERSION "4.0.22"
| #define PROTOCOL_VERSION 10
| #define DOT_FRM_VERSION 6
| #define SYSTEM_TYPE "-netbsdelf"
| #define MACHINE_TYPE "i386"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:2666: error: C compiler cannot create executables
See `config.log' for more details.

***
Below I have copied the entire contents of config.log
***
emar # cat work/mysql-4.0.22/config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.57.  Invocation command line was

  $ ./configure --localstatedir=/mysql --with-named-z-libs=z 
--without-libwrap --with-named-curses-libs=-lcurses -ltermcap 
--without-readline --without-docs --disable-dependency-tracking 
--without-debug --without-bench --with-low-memory --with-openssl 
--with-vio --with-charset=latin1 --with-extra-charsets=all 
--enable-assembler --without-extra-tools --without-server 
--enable-thread-safe-client --host=i386--netbsdelf --prefix=/usr/pkg

## --------- ##
## Platform. ##
## --------- ##

hostname = emar.mediamines.com
uname -m = i386
uname -r = 1.6.1
uname -s = NetBSD
uname -v = NetBSD 1.6.1 (GENERIC) #0: Tue Apr  8 12:05:52 UTC 2003     
autobuild@tgm.daemon.org:/autobuild/netbsd-1-6/i386/OBJ/autobuild/netbsd-1-6/src/sys/arch/i386/compile/GENERIC

/usr/bin/uname -p = i386
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
hostinfo               = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/pkgsrc/databases/mysql-client/work/.tools/bin
PATH: /usr/pkgsrc/databases/mysql-client/work/.buildlink/bin
PATH: /usr/pkgsrc/databases/mysql-client/work/.gcc/bin
PATH: /home/bryan/bin
PATH: /usr/pkg/bin
PATH: /usr/pkg/sbin
PATH: /usr/pkg/bin
PATH: /usr/pkg/sbin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /usr/sbin
PATH: /bin
PATH: /sbin
PATH: /usr/X11R6/bin
PATH: /usr/pkg/bin
PATH: /usr/X11R6/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1581: checking build system type
configure:1599: result: i386-unknown-netbsdelf1.6.1
configure:1607: checking host system type
configure:1621: result: i386--netbsdelf
configure:1629: checking target system type
configure:1643: result: i386--netbsdelf
configure:1671: checking for a BSD-compatible install
configure:1725: result: /usr/bin/install -c -o root -g wheel
configure:1736: checking whether build environment is sane
configure:1754: result: yes
configure:1787: checking for gawk
configure:1813: result: /usr/bin/awk
configure:1823: checking whether gmake sets $(MAKE)
configure:1843: result: yes
configure:1922: checking for i386--netbsdelf-strip
configure:1951: result: no
configure:1960: checking for strip
configure:1976: found /usr/bin/strip
configure:1987: result: strip
configure:2111: checking whether to enable maintainer-specific portions 
of Makefiles
configure:2120: result: no
configure:2136: checking whether build environment is sane
configure:2154: result: yes
configure:2157: checking whether gmake sets $(MAKE)
configure:2177: result: yes
configure:2230: checking for gawk
configure:2256: result: /usr/bin/awk
configure:2274: checking for i386--netbsdelf-gcc
configure:2300: result: gcc
configure:2582: checking for C compiler version
configure:2585: gcc --version </dev/null >&5
2.95.3
configure:2588: $? = 0
configure:2590: gcc -v </dev/null >&5
Using builtin specs.
gcc version 2.95.3 20010315 (release) (NetBSD nb3)
configure:2593: $? = 0
configure:2595: gcc -V </dev/null >&5
gcc: invalid version number format
configure:2598: $? = 1
configure:2622: checking for C compiler default output
configure:2625: gcc -O2 -DUSE_OLD_FUNCTIONS -DSIGNALS_DONT_BREAK_READ 
-I/usr/pkg/include -I/usr/include   -Dunix -I/usr/pkg/include 
-I/usr/include /usr/pkg/lib/mysql -L/usr/pkg/lib -Wl,-R/usr/pkg/lib 
-L/usr/lib -Wl,-R/usr/lib conftest.c  >&5
gcc: /usr/pkg/lib/mysql: No such file or directory
configure:2628: $? = 1
configure: failed program was:
| #line 2602 "configure"
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "mysql"
| #define VERSION "4.0.22"
| #define PROTOCOL_VERSION 10
| #define DOT_FRM_VERSION 6
| #define SYSTEM_TYPE "-netbsdelf"
| #define MACHINE_TYPE "i386"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:2666: error: C compiler cannot create executables
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_env_CXXFLAGS_value='-O2 -DUSE_OLD_FUNCTIONS 
-DSIGNALS_DONT_BREAK_READ -I/usr/pkg/include -I/usr/include 
-DSIGNALS_DONT_BREAK_READ'
ac_cv_env_F77_value='false'
ac_cv_env_CXXCPP_set=''
ac_cv_env_LDFLAGS_set='set'
ac_cv_env_CFLAGS_set='set'
ac_cv_prog_make_gmake_set='yes'
ac_cv_env_FFLAGS_set='set'
lt_cv_sys_max_cmd_len='262144'
ac_cv_env_CPP_value=''
ac_cv_env_CPPFLAGS_set='set'
ac_cv_env_CXX_set='set'
ac_cv_env_host_alias_set='set'
ac_cv_func_pthread_attr_setschedparam='no'
ac_cv_prog_CC='gcc'
ac_cv_env_build_alias_set=''
ac_cv_env_CXXCPP_value=''
ac_cv_env_LDFLAGS_value='/usr/pkg/lib/mysql -L/usr/pkg/lib 
-Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib'
ac_cv_env_target_alias_set=''
ac_cv_host_alias='i386--netbsdelf'
ac_cv_env_CFLAGS_value='-O2 -DUSE_OLD_FUNCTIONS 
-DSIGNALS_DONT_BREAK_READ -I/usr/pkg/include -I/usr/include'
ac_cv_env_CC_set='set'
ac_cv_func_pthread_setschedparam='no'
ac_cv_env_FFLAGS_value='-O'
ac_cv_build_alias='i386-unknown-netbsdelf1.6.1'
ac_cv_env_CPPFLAGS_value='-Dunix -I/usr/pkg/include -I/usr/include'
ac_cv_target_alias='i386--netbsdelf'
ac_cv_env_CXXFLAGS_set='set'
ac_cv_env_CXX_value='g++'
ac_cv_prog_ac_ct_STRIP='strip'
ac_cv_host='i386--netbsdelf'
ac_cv_env_F77_set='set'
ac_cv_env_host_alias_value='i386--netbsdelf'
ac_cv_prog_AWK='/usr/bin/awk'
ac_cv_build='i386-unknown-netbsdelf1.6.1'
ac_cv_env_build_alias_value=''
ac_cv_target='i386--netbsdelf'
ac_cv_env_target_alias_value=''
ac_cv_env_CC_value='gcc'
ac_cv_env_CPP_set=''

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} 
/usr/pkgsrc/databases/mysql-client/work/mysql-4.0.22/missing --run 
aclocal-1.7'
ALLOCA=''
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} 
/usr/pkgsrc/databases/mysql-client/work/mysql-4.0.22/missing --run tar'
AR=''
AS=''
ASSEMBLER_FALSE=''
ASSEMBLER_TRUE=''
ASSEMBLER_sparc32_FALSE=''
ASSEMBLER_sparc32_TRUE=''
ASSEMBLER_sparc64_FALSE=''
ASSEMBLER_sparc64_TRUE=''
ASSEMBLER_x86_FALSE=''
ASSEMBLER_x86_TRUE=''
AUTOCONF='${SHELL} 
/usr/pkgsrc/databases/mysql-client/work/mysql-4.0.22/missing --run autoconf'
AUTOHEADER='${SHELL} 
/usr/pkgsrc/databases/mysql-client/work/mysql-4.0.22/missing --run 
autoheader'
AUTOMAKE='${SHELL} 
/usr/pkgsrc/databases/mysql-client/work/mysql-4.0.22/missing --run 
automake-1.7'
AVAILABLE_LANGUAGES='czech danish dutch english estonian french german 
greek hungarian italian japanese korean norwegian norwegian-ny polish 
portuguese romanian russian slovak spanish swedish ukrainian'
AVAILABLE_LANGUAGES_ERRORS=' czech/errmsg.sys danish/errmsg.sys 
dutch/errmsg.sys english/errmsg.sys estonian/errmsg.sys 
french/errmsg.sys german/errmsg.sys greek/errmsg.sys 
hungarian/errmsg.sys italian/errmsg.sys japanese/errmsg.sys 
korean/errmsg.sys norwegian/errmsg.sys norwegian-ny/errmsg.sys 
polish/errmsg.sys portuguese/errmsg.sys romanian/errmsg.sys 
russian/errmsg.sys slovak/errmsg.sys spanish/errmsg.sys 
swedish/errmsg.sys ukrainian/errmsg.sys'
AWK='/usr/bin/awk'
CC='gcc'
CCAS=''
CCASFLAGS=''
CCDEPMODE=''
CC_VERSION=''
CFLAGS='-O2 -DUSE_OLD_FUNCTIONS -DSIGNALS_DONT_BREAK_READ 
-I/usr/pkg/include -I/usr/include  '
CHARSETS_NEED_SOURCE=''
CHARSET_OBJS=''
CHARSET_SRCS=''
CHECK_PID=''
CHMOD=''
CLIENT_EXTRA_LDFLAGS=''
CLIENT_LIBS=''
CMP=''
COMPILATION_COMMENT=''
COMPILE_PSTACK_FALSE=''
COMPILE_PSTACK_TRUE=''
CONF_COMMAND='./configure '--localstatedir=/mysql' 
'--with-named-z-libs=z' '--without-libwrap' 
'--with-named-curses-libs=-lcurses -ltermcap' '--without-readline' 
'--without-docs' '--disable-dependency-tracking' '--without-debug' 
'--without-bench' '--with-low-memory' '--with-openssl' '--with-vio' 
'--with-charset=latin1' '--with-extra-charsets=all' '--enable-assembler' 
'--without-extra-tools' '--without-server' '--enable-thread-safe-client' 
'--host=i386--netbsdelf' '--prefix=/usr/pkg' 'LDFLAGS=/usr/pkg/lib/mysql 
-L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib' 'CFLAGS=-O2 
-DUSE_OLD_FUNCTIONS -DSIGNALS_DONT_BREAK_READ -I/usr/pkg/include 
-I/usr/include' 'FFLAGS=-O' 'CPPFLAGS=-Dunix -I/usr/pkg/include 
-I/usr/include' 'CXX=g++' 'host_alias=i386--netbsdelf' 'CC=gcc' 
'CXXFLAGS=-O2 -DUSE_OLD_FUNCTIONS -DSIGNALS_DONT_BREAK_READ 
-I/usr/pkg/include -I/usr/include -DSIGNALS_DONT_BREAK_READ' 'F77=false''
CP=''
CPP=''
CPPFLAGS='-Dunix -I/usr/pkg/include -I/usr/include'
CXX='g++'
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS='-O2 -DUSE_OLD_FUNCTIONS -DSIGNALS_DONT_BREAK_READ 
-I/usr/pkg/include -I/usr/include -DSIGNALS_DONT_BREAK_READ  '
CXXLDFLAGS=''
CXX_VERSION=''
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
DOT_FRM_VERSION='6'
DVIS=''
ECHO='echo'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
F77='false'
FFLAGS='-O'
FIND_PROC=''
GETCONF=''
GXX=''
HAVE_NETWARE_FALSE=''
HAVE_NETWARE_TRUE=''
HOSTNAME=''
INSTALL_DATA='install -c -o root -g wheel -m 444'
INSTALL_PROGRAM='install -c -s -o root -g wheel -m 555'
INSTALL_SCRIPT='install -c -o root -g wheel -m 555'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
IS_LINUX=''
KILL=''
LD=''
LDFLAGS='/usr/pkg/lib/mysql -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib 
-Wl,-R/usr/lib'
LIBDL=''
LIBOBJS=''
LIBS=''
LIBTOOL='libtool '
LIB_EXTRA_CCFLAGS=''
LM_CFLAGS=''
LN=''
LN_CP_F=''
LN_S=''
LOCAL_FALSE=''
LOCAL_TRUE='#'
LTLIBOBJS=''
MACHINE_TYPE='i386'
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='/usr/pkgsrc/databases/mysql-client/work/.tools/bin/makeinfo'
MAKE_BINARY_DISTRIBUTION_OPTIONS=''
MAKE_SHELL=''
MT_INCLUDES=''
MT_LD_ADD=''
MV=''
MYSQLD_DEFAULT_SWITCHES=''
MYSQLD_EXTRA_LDFLAGS=''
MYSQLD_USER=''
MYSQL_BASE_VERSION='4.0'
MYSQL_NO_DASH_VERSION='4.0.22'
MYSQL_SERVER_SUFFIX=''
MYSQL_TCP_PORT=''
MYSQL_TCP_PORT_DEFAULT='3306'
MYSQL_UNIX_ADDR=''
MYSQL_VERSION_ID='40022'
NOINST_LDFLAGS=''
OBJEXT=''
PACKAGE='mysql'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PDFMANUAL=''
PERL5=''
PERL=''
PROTOCOL_VERSION='10'
PS=''
RANLIB=''
RM=''
SAVE_ASFLAGS=''
SAVE_CFLAGS='-O2 -DUSE_OLD_FUNCTIONS -DSIGNALS_DONT_BREAK_READ 
-I/usr/pkg/include -I/usr/include'
SAVE_CXXFLAGS='-O2 -DUSE_OLD_FUNCTIONS -DSIGNALS_DONT_BREAK_READ 
-I/usr/pkg/include -I/usr/include -DSIGNALS_DONT_BREAK_READ'
SAVE_CXXLDFLAGS=''
SAVE_LDFLAGS='/usr/pkg/lib/mysql -L/usr/pkg/lib -Wl,-R/usr/pkg/lib 
-L/usr/lib -Wl,-R/usr/lib'
SED=''
SET_MAKE=''
SHARED_LIB_VERSION='12:0:0'
SHELL='/bin/sh'
STRIP='strip'
SYSTEM_TYPE='-netbsdelf'
TAR=''
TERMCAP_LIB=''
THREAD_LOBJECTS=''
THREAD_LPROGRAMS=''
VERSION='4.0.22'
WRAPLIBS=''
YACC='yacc'
ac_ct_AR=''
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_F77=''
ac_ct_GETCONF=''
ac_ct_RANLIB=''
ac_ct_STRIP='strip'
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__leading_dot='.'
am__quote=''
bdb_includes=''
bdb_libs=''
bdb_libs_with_path=''
bench_dirs=''
bindir='${exec_prefix}/bin'
build='i386-unknown-netbsdelf1.6.1'
build_alias=''
build_cpu='i386'
build_os='netbsdelf1.6.1'
build_vendor='unknown'
datadir='${prefix}/share'
default_charset=''
docs_dirs=''
exec_prefix='NONE'
fs_dirs=''
host='i386--netbsdelf'
host_alias='i386--netbsdelf'
host_cpu='i386'
host_os='netbsdelf'
host_vendor=''
includedir='${prefix}/include'
infodir='${prefix}/info'
innodb_includes=''
innodb_libs=''
innodb_system_libs=''
install_sh='/usr/pkgsrc/databases/mysql-client/work/mysql-4.0.22/install-sh'
isam_libs=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
libmysqld_dirs=''
linked_client_targets=''
linked_netware_sources=''
localstatedir='/mysql'
man_dirs=''
mandir='${prefix}/man'
netware_dir=''
oldincludedir='/usr/include'
openssl_includes=''
openssl_libs=''
orbit_idl=''
orbit_includes=''
orbit_libs=''
prefix='/usr/pkg'
program_transform_name='s,x,x,'
pstack_dirs=''
pstack_libs=''
readline_dir=''
readline_link=''
sbindir='${exec_prefix}/sbin'
server_scripts=''
sharedstatedir='${prefix}/com'
sql_client_dirs=''
sql_server_dirs=''
sysconfdir='${prefix}/etc'
target='i386--netbsdelf'
target_alias=''
target_cpu='i386'
target_os='netbsdelf'
target_vendor=''
thread_dirs=''
tools_dirs=''
uname_prog=''
vio_dir=''
vio_libs=''

## ------------- ##
## Output files. ##
## ------------- ##

AVAILABLE_LANGUAGES_ERRORS_RULES='./ac_available_languages_fragment'

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define DOT_FRM_VERSION 6
#define MACHINE_TYPE "i386"
#define PACKAGE "mysql"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PROTOCOL_VERSION 10
#define SYSTEM_TYPE "-netbsdelf"
#define VERSION "4.0.22"

configure: exit 77