I've been trying to get mysql to install from the openBSD ports tree on an
i386 OpenBSD 2.9 system. I keep getting the error:
/* start error */
checking size of char... 0
configure: error: No size for char type.
A likely cause for this could be that there isn't any
static libraries installed. You can verify this by checking if you have
libm.a
in /lib, /usr/lib or some other standard place.  If this is the problem,
install the static libraries and try again.  If this isn't the problem,
examine config.log for possible errors.  If you want to report this, use
'scripts/mysqlbug' and include at least the last 20 rows from config.log!
*** Error code 1

Stop in /usr/ports/databases/mysql (line 1555 of
/usr/ports/infrastructure/mk/bsd.port.mk).
/* end error */

I've tried looking it up on various mailing lists, but haven't found
anything. I was wondering if y'all had any ideas?

config.log is at the end of this message, if that's any help.

Thanks,
Vinay

/* start config.log */
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:812: checking host system type
configure:833: checking target system type
configure:851: checking build system type
configure:886: checking for a BSD compatible install
configure:939: checking whether build environment is sane
configure:974: checking whether make sets ${MAKE}
configure:1020: checking for working aclocal
configure:1033: checking for working autoconf
configure:1046: checking for working automake
configure:1059: checking for working autoheader
configure:1072: checking for working makeinfo
configure:1174: checking whether to enable maintainer-specific portions of
Makefiles
configure:1216: checking whether build environment is sane
configure:1233: checking whether make sets ${MAKE}
configure:1301: checking for gawk
configure:1333: checking for gcc
configure:1446: checking whether the C compiler
-O2     -L/usr/local/lib/pth) works
configure:1462: cc -o
conftest -O2     -I/usr/local/include/pth -L/usr/local/lib/pth conftest.c
1>&5
configure:1488: checking whether the C compiler
-O2     -L/usr/local/lib/pth) is a cross-compiler
configure:1493: checking whether we are using GNU C
configure:1521: checking whether cc accepts -g
configure:1557: checking for c++
configure:1589: checking whether the C++ compiler
 -O2     -L/usr/local/lib/pth) works
configure:1605: c++ -o
conftest -O2     -I/usr/local/include/pth -L/usr/local/lib/pth conftest.C
1>&5
configure:1631: checking whether the C++ compiler
 -O2     -L/usr/local/lib/pth) is a cross-compiler
configure:1636: checking whether we are using GNU C++
configure:1664: checking whether c++ accepts -g
configure:1696: checking how to run the C preprocessor
configure:1832: checking for ranlib
configure:1942: checking for ld used by GCC
configure:2004: checking if the linker (/usr/bin/ld) is GNU ld
configure:2020: checking for BSD-compatible nm
configure:2056: checking whether ln -s works
ltconfig:603: checking for object suffix
ltconfig:604: cc -c -O2     -I/usr/local/include/pth conftest.c 1>&5
ltconfig:629: checking for executable suffix
ltconfig:630: cc -o
conftest -O2     -I/usr/local/include/pth -L/usr/local/lib/pth conftest.c
1>&5
ltconfig:776: checking if cc PIC flag -fPIC works
ltconfig:777: cc -c -O2     -fPIC -DPIC -I/usr/local/include/pth conftest.c
1>&5
ltconfig:829: checking if cc supports -c -o file.o
ltconfig:830: cc -c -O2     -o out/conftest2.o -I/usr/local/include/pth
conftest.c 1>&5
ltconfig:862: checking if cc supports -c -o file.lo
ltconfig:863: cc -c -O2     -c -o conftest.lo -I/usr/local/include/pth
conftest.c 1>&5
ltconfig:914: checking if cc supports -fno-rtti -fno-exceptions
ltconfig:915: cc -c -O2     -fno-rtti -fno-exceptions -c
conftest.c -I/usr/local/include/pth conftest.c 1>&5
ltconfig:958: checking if cc static flag -static works
ltconfig:959: cc -o
conftest -O2     -I/usr/local/include/pth -L/usr/local/lib/pth -static
conftest.c  1>&5
ltconfig:1653: checking if global_symbol_pipe works
ltconfig:1654: cc -c -O2     -I/usr/local/include/pth conftest.c 1>&5
ltconfig:1657: eval "/usr/bin/nm -B conftest.o | sed -n -e
s/^.*[  ]\([BCDEGRST]\)[        ][      ]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3
\3/p' > conftest.nm"
cannot find nm_test_var in conftest.nm
ltconfig:1653: checking if global_symbol_pipe works
ltconfig:1654: cc -c -O2     -I/usr/local/include/pth conftest.c 1>&5
ltconfig:1657: eval "/usr/bin/nm -B conftest.o | sed -n -e
s/^.*[  ]\([BCDEGRST]\)[        ][      ]*\(_\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3
\3/p' > conftest.nm"
ltconfig:1709: cc -o
conftest -O2     -fno-builtin -fno-rtti -fno-exceptions -I/usr/local/include
/pth -L/usr/local/lib/pth conftest.c conftstm.o 1>&5
configure:2261: checking for a BSD compatible install
configure:2319: checking for bison
configure:2352: checking for pdftex
configure:2380: checking return type of sprintf
configure:2401: cc -o
conftest -O2     -I/usr/local/include/pth -L/usr/local/lib/pth conftest.c
1>&5
configure:2465: checking for uname
configure:2502: checking operating system
configure:2662: checking if we should use skip-locking as default for
openbsd2.9
configure:2680: checking for ln
configure:2717: checking for ln
configure:2758: checking for mv
configure:2794: checking for rm
configure:2830: checking for cp
configure:2866: checking for sed
configure:2902: checking for cmp
configure:2938: checking for chmod
configure:2974: checking for hostname
configure:3010: checking for perl
configure:3098: checking for ps
configure:3132: checking how to check if pid exists
configure:3173: checking for kill
configure:3207: checking for kill switches
configure:3224: checking for cc option to accept ANSI C
configure:3259: cc  -c -O2     -I/usr/local/include/pth conftest.c 1>&5
configure:3443: checking whether to use RAID
configure:3520: checking for getconf
configure:3550: checking for CFLAGS value to request large file support
configure:3600: checking for LDFLAGS value to request large file support
configure:3616: checking for LIBS value to request large file support
configure:3675: checking for _FILE_OFFSET_BITS
configure:3704: checking for _LARGEFILE_SOURCE
configure:3733: checking for _LARGE_FILES
configure:3766: checking for ANSI C header files
configure:3779: cc -E -I/usr/local/include/pth conftest.c >/dev/null
2>conftest.out
configure:3846: cc -o
conftest -O2     -I/usr/local/include/pth -L/usr/local/lib/pth conftest.c
1>&5
configure:3870: checking for size_t
configure:3912: checking for dirent.h that defines DIR
configure:3925: cc -c -O2     -I/usr/local/include/pth conftest.c 1>&5
configure:3950: checking for opendir in -ldir
configure:3969: cc -o
conftest -O2     -I/usr/local/include/pth -L/usr/local/lib/pth
conftest.c -ldir   1>&5
ld: -ldir: no match
collect2: ld returned 1 exit status
configure: failed program was:
#line 3958 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char opendir();

int main() {
opendir()
; return 0; }
configure:4033: checking for ANSI C header files
configure:4137: checking for sys/wait.h that is POSIX.1 compatible
configure:4158: cc -c -O2     -I/usr/local/include/pth conftest.c 1>&5
configure:4188: checking for fcntl.h
configure:4198: cc -E -I/usr/local/include/pth conftest.c >/dev/null
2>conftest.out
configure:4188: checking for float.h
configure:4198: cc -E -I/usr/local/include/pth conftest.c >/dev/null
2>conftest.out
configure:4188: checking for floatingpoint.h
configure:4198: cc -E -I/usr/local/include/pth conftest.c >/dev/null
2>conftest.out
configure:4194: floatingpoint.h: No such file or directory
configure: failed program was:
#line 4193 "configure"
#include "confdefs.h"
#include <floatingpoint.h>
configure:4188: checking for ieeefp.h
configure:4198: cc -E -I/usr/local/include/pth conftest.c >/dev/null
2>conftest.out
configure:4188: checking for limits.h
configure:4198: cc -E -I/usr/local/include/pth conftest.c >/dev/null
2>conftest.out
configure:4188: checking for memory.h
configure:4198: cc -E -I/usr/local/include/pth conftest.c >/dev/null
2>conftest.out
configure:4188: checking for pwd.h
configure:4198: cc -E -I/usr/local/include/pth conftest.c >/dev/null
2>conftest.out
configure:4188: checking for select.h
configure:4198: cc -E -I/usr/local/include/pth conftest.c >/dev/null
2>conftest.out
configure:4194: select.h: No such file or directory
configure: failed program was:
#line 4193 "configure"
#include "confdefs.h"
#include <select.h>
configure:4188: checking for stdlib.h
configure:4198: cc -E -I/usr/local/include/pth conftest.c >/dev/null
2>conftest.out
configure:4188: checking for stddef.h
configure:4198: cc -E -I/usr/local/include/pth conftest.c >/dev/null
2>conftest.out
configure:4188: checking for strings.h
configure:4198: cc -E -I/usr/local/include/pth conftest.c >/dev/null
2>conftest.out
configure:4188: checking for string.h
configure:4198: cc -E -I/usr/local/include/pth conftest.c >/dev/null
2>conftest.out
configure:4188: checking for synch.h
configure:4198: cc -E -I/usr/local/include/pth conftest.c >/dev/null
2>conftest.out
configure:4194: synch.h: No such file or directory
configure: failed program was:
#line 4193 "configure"
#include "confdefs.h"
#include <synch.h>
configure:4188: checking for sys/mman.h
configure:4198: cc -E -I/usr/local/include/pth conftest.c >/dev/null
2>conftest.out
configure:4188: checking for sys/socket.h
configure:4198: cc -E -I/usr/local/include/pth conftest.c >/dev/null
2>conftest.out
configure:4188: checking for netinet/in.h
configure:4198: cc -E -I/usr/local/include/pth conftest.c >/dev/null
2>conftest.out
configure:4188: checking for arpa/inet.h
configure:4198: cc -E -I/usr/local/include/pth conftest.c >/dev/null
2>conftest.out
configure:4188: checking for sys/timeb.h
configure:4198: cc -E -I/usr/local/include/pth conftest.c >/dev/null
2>conftest.out
configure:4188: checking for sys/types.h
configure:4198: cc -E -I/usr/local/include/pth conftest.c >/dev/null
2>conftest.out
configure:4188: checking for sys/un.h
configure:4198: cc -E -I/usr/local/include/pth conftest.c >/dev/null
2>conftest.out
configure:4188: checking for sys/vadvise.h
configure:4198: cc -E -I/usr/local/include/pth conftest.c >/dev/null
2>conftest.out
configure:4188: checking for sys/wait.h
configure:4188: checking for term.h
configure:4198: cc -E -I/usr/local/include/pth conftest.c >/dev/null
2>conftest.out
configure:4188: checking for unistd.h
configure:4198: cc -E -I/usr/local/include/pth conftest.c >/dev/null
2>conftest.out
configure:4188: checking for utime.h
configure:4198: cc -E -I/usr/local/include/pth conftest.c >/dev/null
2>conftest.out
configure:4188: checking for sys/utime.h
configure:4198: cc -E -I/usr/local/include/pth conftest.c >/dev/null
2>conftest.out
configure:4194: sys/utime.h: No such file or directory
configure: failed program was:
#line 4193 "configure"
#include "confdefs.h"
#include <sys/utime.h>
configure:4188: checking for termio.h
configure:4198: cc -E -I/usr/local/include/pth conftest.c >/dev/null
2>conftest.out
configure:4194: termio.h: No such file or directory
configure: failed program was:
#line 4193 "configure"
#include "confdefs.h"
#include <termio.h>
configure:4188: checking for termios.h
configure:4198: cc -E -I/usr/local/include/pth conftest.c >/dev/null
2>conftest.out
configure:4188: checking for sched.h
configure:4198: cc -E -I/usr/local/include/pth conftest.c >/dev/null
2>conftest.out
configure:4188: checking for crypt.h
configure:4198: cc -E -I/usr/local/include/pth conftest.c >/dev/null
2>conftest.out
configure:4194: crypt.h: No such file or directory
configure: failed program was:
#line 4193 "configure"
#include "confdefs.h"
#include <crypt.h>
configure:4188: checking for alloca.h
configure:4198: cc -E -I/usr/local/include/pth conftest.c >/dev/null
2>conftest.out
configure:4194: alloca.h: No such file or directory
configure: failed program was:
#line 4193 "configure"
#include "confdefs.h"
#include <alloca.h>
configure:4188: checking for sys/ioctl.h
configure:4198: cc -E -I/usr/local/include/pth conftest.c >/dev/null
2>conftest.out
configure:4231: checking for floor in -lm
configure:4250: cc -o
conftest -O2     -I/usr/local/include/pth -L/usr/local/lib/pth
conftest.c -lm   1>&5
configure:4325: checking for gethostbyname_r
configure:4353: cc -o
conftest -O2     -I/usr/local/include/pth -L/usr/local/lib/pth
conftest.c -lm  1>&5
/tmp/ccIM4507.o: Undefined symbol `_gethostbyname_r' referenced from text
segment
collect2: ld returned 1 exit status
configure: failed program was:
#line 4330 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char gethostbyname_r(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char gethostbyname_r();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
choke me
#else
gethostbyname_r();
#endif

; return 0; }
configure:4372: checking for gethostbyname_r in -lnsl_r
configure:4391: cc -o
conftest -O2     -I/usr/local/include/pth -L/usr/local/lib/pth
conftest.c -lnsl_r  -lm  1>&5
ld: -lnsl_r: no match
collect2: ld returned 1 exit status
configure: failed program was:
#line 4380 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char gethostbyname_r();

int main() {
gethostbyname_r()
; return 0; }
configure:4417: checking for gethostbyname_r in -lnsl
configure:4436: cc -o
conftest -O2     -I/usr/local/include/pth -L/usr/local/lib/pth
conftest.c -lnsl  -lm  1>&5
ld: -lnsl: no match
collect2: ld returned 1 exit status
configure: failed program was:
#line 4425 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char gethostbyname_r();

int main() {
gethostbyname_r()
; return 0; }
configure:4468: checking for setsockopt
configure:4496: cc -o
conftest -O2     -I/usr/local/include/pth -L/usr/local/lib/pth
conftest.c -lm  1>&5
configure:4563: checking for yp_get_default_domain
configure:4591: cc -o
conftest -O2     -I/usr/local/include/pth -L/usr/local/lib/pth
conftest.c -lm  1>&5
configure:4658: checking for p2open
configure:4686: cc -o
conftest -O2     -I/usr/local/include/pth -L/usr/local/lib/pth
conftest.c -lm  1>&5
/tmp/cco12643.o: Undefined symbol `_p2open' referenced from text segment
collect2: ld returned 1 exit status
configure: failed program was:
#line 4663 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char p2open(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char p2open();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_p2open) || defined (__stub___p2open)
choke me
#else
p2open();
#endif

; return 0; }
configure:4704: checking for p2open in -lgen
configure:4723: cc -o
conftest -O2     -I/usr/local/include/pth -L/usr/local/lib/pth
conftest.c -lgen  -lm  1>&5
ld: -lgen: no match
collect2: ld returned 1 exit status
configure: failed program was:
#line 4712 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char p2open();

int main() {
p2open()
; return 0; }
configure:4754: checking for bind
configure:4782: cc -o
conftest -O2     -I/usr/local/include/pth -L/usr/local/lib/pth
conftest.c -lm  1>&5
configure:4850: checking for crypt in -lcrypt
configure:4869: cc -o
conftest -O2     -I/usr/local/include/pth -L/usr/local/lib/pth
conftest.c -lcrypt  -lm  1>&5
ld: -lcrypt: no match
collect2: ld returned 1 exit status
configure: failed program was:
#line 4858 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char crypt();

int main() {
crypt()
; return 0; }
configure:4897: checking for crypt
configure:4925: cc -o
conftest -O2     -I/usr/local/include/pth -L/usr/local/lib/pth
conftest.c -lm  1>&5
configure:4953: checking if libz with compress
configure:4970: cc -o
conftest -O2     -I/usr/local/include/pth -L/usr/local/lib/pth
conftest.c -lz -lm  1>&5
configure:5016: checking for tcpd.h
configure:5026: cc -E -I/usr/local/include/pth -I/usr/include conftest.c
>/dev/null 2>conftest.out
configure:5044: checking for TCP wrappers library -lwrap
configure:5058: cc -o
conftest -O2     -I/usr/local/include/pth -I/usr/include -L/usr/local/lib/pt
h -L/usr/lib conftest.c -lz -lm  -lwrap 1>&5
configure:5267: checking for int8
configure:5294: cc -o
conftest -O2     -I/usr/local/include/pth -I/usr/include -L/usr/local/lib/pt
h conftest.c -lz -lm  1>&5
configure: In function `main':
configure:5288: syntax error before `i'
configure: failed program was:
#line 5272 "configure"
#include "confdefs.h"

#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif

#ifdef HAVE_STDDEF_H
#include <stddef.h>
#endif

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif

int main()
{
  int8 i;
  return 0;
}

configure:5449: checking LinuxThreads
configure:5490: checking DEC threads
configure:5503: checking DEC 3.2 threads
configure:5532: checking SCO threads
configure:5633: checking SCO UnixWare7 native threads
configure:5677: checking Siemens threads
configure:5706: checking Solaris threads
configure:5718: checking named thread libs:
configure:5731: checking for pthread_create in -libc
configure:5740: cc -o
conftest -O2     -I/usr/local/include/pth -I/usr/include -L/usr/local/lib/pt
h conftest.c -lz -lm  1>&5
/tmp/cci25874.o: Undefined symbol `_pthread_create' referenced from text
segment
collect2: ld returned 1 exit status
configure: failed program was:
#line 5733 "configure"
#include "confdefs.h"
#include <pthread.h>
int main() {
 (void) pthread_create((pthread_t*) 0,(pthread_attr_t*) 0, 0, 0);
; return 0; }
configure:5754: checking for pthread_create in -lpthread
configure:5765: cc -o
conftest -O2     -I/usr/local/include/pth -I/usr/include -L/usr/local/lib/pt
h conftest.c -lz -lm  -lpthread 1>&5
configure:5842: checking for strtok_r in -lpthread
configure:5861: cc -o
conftest -O2     -I/usr/local/include/pth -I/usr/include -L/usr/local/lib/pt
h conftest.c -lpthread  -lz -lm  -lpthread 1>&5
configure:6002: checking for strtok_r
configure:6030: cc -o
conftest -O2     -I/usr/local/include/pth -I/usr/include -L/usr/local/lib/pt
h conftest.c -lz -lm  -lpthread 1>&5
configure:6064: checking for dlopen in -ldl
configure:6083: cc -o
conftest -O2     -I/usr/local/include/pth -I/usr/include -L/usr/local/lib/pt
h conftest.c -ldl   1>&5
ld: -ldl: no match
collect2: ld returned 1 exit status
configure: failed program was:
#line 6072 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char dlopen();

int main() {
dlopen()
; return 0; }
configure:6116: checking for restartable system calls
configure:6142: cc -o
conftest -O2     -I/usr/local/include/pth -I/usr/include -L/usr/local/lib/pt
h conftest.c -lz -lm  -lpthread 1>&5
configure: In function `main':
configure:6134: warning: passing arg 2 of `signal' from incompatible pointer
type
configure: failed program was:
#line 6124 "configure"
#include "confdefs.h"
/* Exit 0 (true) if wait returns something other than -1,
   i.e. the pid of the child, which means that wait was restarted
   after getting the signal.  */
#include <sys/types.h>
#include <signal.h>
ucatch (isig) { }
main () {
  int i = fork (), status;
  if (i == 0) { sleep (3); kill (getppid (), SIGINT); sleep (3); exit (0); }
  signal (SIGINT, ucatch);
  status = wait(&i);
  if (status == -1) wait(&i);
  exit (status == -1);
}

configure:6271: checking need of special linking flags
configure:6281: checking for working const
configure:6335:
cc -c  -DDBUG_OFF -O2     -I/usr/local/include/pth -I/usr/include conftest.c
1>&5
configure:6356: checking for inline
configure:6370:
cc -c  -DDBUG_OFF -O2     -I/usr/local/include/pth -I/usr/include conftest.c
1>&5
configure:6396: checking for off_t
configure:6429: checking for st_rdev in struct stat
configure:6442:
cc -c  -DDBUG_OFF -O2     -I/usr/local/include/pth -I/usr/include conftest.c
1>&5
configure:6463: checking whether time.h and sys/time.h may both be included
configure:6477:
cc -c  -DDBUG_OFF -O2     -I/usr/local/include/pth -I/usr/include conftest.c
1>&5
configure:6498: checking whether struct tm is in sys/time.h or time.h
configure:6511:
cc -c  -DDBUG_OFF -O2     -I/usr/local/include/pth -I/usr/include conftest.c
1>&5
configure:6534: checking size of char
configure:6553: cc -o
conftest  -DDBUG_OFF -O2     -I/usr/local/include/pth -I/usr/include -L/usr/
local/lib/pth conftest.c -lz -lm  -lpthread 1>&5
configure: failed program was:
#line 6542 "configure"
#include "confdefs.h"
#include <stdio.h>
main()
{
  FILE *f=fopen("conftestval", "w");
  if (!f) exit(1);
  fprintf(f, "%d\n", sizeof(char));
  exit(0);
}
/* end config.log */


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to