| Bug #3039 | MySQL configure complains about "size of char" in SCO OS 5.0.6 | ||
|---|---|---|---|
| Submitted: | 2 Mar 2004 8:21 | Modified: | 6 Apr 2004 7:04 |
| Reporter: | Shellas Sahib | Email Updates: | |
| Status: | No Feedback | Impact on me: | |
| Category: | MySQL Server: Compiling | Severity: | S2 (Serious) |
| Version: | 3.23.49 | OS: | Other (SCO OpenServer5.0.6) |
| Assigned to: | CPU Architecture: | Any | |
[6 Mar 2004 7:04]
MySQL Verification Team
Check the settings for the following environmental variables: CC CXX CFLAGS CXXFLAGS LDFLAGS and similar. You have a problem with /usr/local/lib appearing in compiler args, which is wrong. The error is either in env. variables or in too old MySQL. Check the variables and try with 3.23.58 or 4.0.18.
[14 Feb 2005 22:54]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".

Description: mysql: configure crashes for mySQL on SCO. The error where it fails is: ==================================== checking whether struct tm is in sys/time.h or time.h... time.h 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! ==================================== And config.log is: ==================================== configure:6450: checking whether struct tm is in sys/time.h or time.h configure:6463: gcc -c -O3 -DDBUG_OFF -belf -DSCO -belf -I/usr/lib/include conftest.c 1>&5 configure:6486: checking size of char configure:6505: gcc -o conftest -O3 -DDBUG_OFF -belf -DSCO -I/usr/lib/include -belf -static -L/usr/lib/lib conftest.c /usr/local/lib -lcrypt -lsocket -lm /usr/local/lib 1>&5 ERROR: cannot initialize object file /usr/local/lib: I/O error: region read failed configure: failed program was: #line 6494 "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); } How to repeat: Run ./configure Suggested fix: Dont know