Bug #18497 cannot compute sizeof (char), 77
Submitted: 24 Mar 2006 19:25 Modified: 3 Jun 2006 19:05
Reporter: charlie Principato Email Updates:
Status: No Feedback Impact on me:
Category:MySQL Server Severity:S2 (Serious)
Version:5,0 OS:IBM AIX (aix 5.1)
Assigned to: CPU Architecture:Any

[24 Mar 2006 19:25] charlie Principato
config dies with  cannot compute sizeof (char), 77

How to repeat:
rerun config
[24 Mar 2006 22:33] Hartmut Holzgraefe
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at

If you can provide more information, feel free to add it
to this bug and change the status back to 'Open'.

Thank you for your interest in MySQL.
[27 Mar 2006 18:02] charlie Principato
using gcc compiler 3.1 and aix 5.1 I get the cannot compute error durring the configure.
[3 May 2006 19:05] Sergei Golubchik
check config.log file, you will find more detailed diagnostics there
[3 Jun 2006 23:00] 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".
[28 Sep 2007 11:13] Thomas Hoffmann
If you get "cannot compute sizeof (char), 77" error message, you have to set up LD_LIBRARY_PATH to the location of your gcc. Found out where gcc is on your system ("whereis gcc").
"export LD_LIBRARY_PATH=/usr/lib/bin" resolves the problem in my case.
[6 Nov 2007 3:12] Adam Weeks
You mention updating LD_LIBRARY_PATH to reflect the location of gcc.

I am on Mac OS X 10.5 running MySQL 5.1.22, and trying to configure PHP 5.2.4. This "cannot compute sizeof (char)" issue seems to be occurring for several folks ONLY when "--with-mysql=/usr/local/mysql" is included in the configure command. So, it's definitely behaving like something related to MySQL.

My gcc is located at "/usr/bin/gcc". Is there a "LD_LIBRARY_PATH" type variable for 10.5 is my question? (If it's even related of course, but I'm looking at all the options at this point). : )