Results 1 to 1 of 1
I'm trying to compile a program which requires MySQL to work properly, except I keep getting the error:
Code:
checking size of short... configure: error: cannot compute sizeof (short), 77
...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 08-09-2008 #1Just Joined!
- Join Date
- Aug 2008
- Posts
- 1
error: cannot compute sizeof (short)
I'm trying to compile a program which requires MySQL to work properly, except I keep getting the error:
The log says:Code:checking size of short... configure: error: cannot compute sizeof (short), 77
I haven't the slightest idea how to fix itCode:configure:20803: checking size of short configure:21122: gcc -o conftest -g -O2 -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -L/usr/lib/mysql -lmysqlclient_r -lz -lpthread -lcrypt -lnsl -lm -lpthread -L/usr/lib -lssl -lcrypto -lmystrings conftest.c >&5 /usr/bin/ld: cannot find -lmysqlclient_r collect2: ld returned 1 exit status configure:21125: $? = 1 configure: program exited with status 1 configure: failed program was: | /* confdefs.h. */ | #define PACKAGE "xbtt" | #define VERSION "1.0.0" | #define BUILD_DATE "Sat Aug 9 05:21:51 CEST 2008" | #ifdef __cplusplus | extern "C" void std::exit (int) throw (); using std::exit; | #endif | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define STDC_HEADERS 1 | #define HAVE_SYS_EPOLL_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_NETDB_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_ARPA_INET_H 1 | #define HAVE_NETINET_IN_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_UNISTD_H 1 | /* end confdefs.h. */ | #include <stdio.h> | #if HAVE_SYS_TYPES_H | # include <sys/types.h> | #endif | #if HAVE_SYS_STAT_H | # include <sys/stat.h> | #endif | #if STDC_HEADERS | # include <stdlib.h> | # include <stddef.h> | #else | # if HAVE_STDLIB_H | # include <stdlib.h> | # endif | #endif | #if HAVE_STRING_H | # if !STDC_HEADERS && HAVE_MEMORY_H | # include <memory.h> | # endif | # include <string.h> | #endif | #if HAVE_STRINGS_H | # include <strings.h> | #endif | #if HAVE_INTTYPES_H | # include <inttypes.h> | #else | # if HAVE_STDINT_H | # include <stdint.h> | # endif | #endif | #if HAVE_UNISTD_H | # include <unistd.h> | #endif | long longval () { return (long) (sizeof (short)); } | unsigned long ulongval () { return (long) (sizeof (short)); } | #include <stdio.h> | #include <stdlib.h> | int | main () | { | | FILE *f = fopen ("conftest.val", "w"); | if (! f) | exit (1); | if (((long) (sizeof (short))) < 0) | { | long i = longval (); | if (i != ((long) (sizeof (short)))) | exit (1); | fprintf (f, "%ld\n", i); | } | else | { | unsigned long i = ulongval (); | if (i != ((long) (sizeof (short)))) | exit (1); | fprintf (f, "%lu\n", i); | } | exit (ferror (f) || fclose (f) != 0); | | ; | return 0; | } configure:21140: error: cannot compute sizeof (short), 77


Reply With Quote
