Error Cannot Compute Sizeof Char 77
Application AccelerationCase StudiesTestimonialsBenchmarksPartnersHosting PartnersTechnology PartnersSupport PartnersPartner ProgramSupportServicesForumWikiDocumentationDownloadsStore Log in or Sign up LiteSpeed Support Forums Forums > LiteSpeed Web Server > Install/Configuration > configure: error: cannot compute sizeof (char *) Discussion in 'Install/Configuration' started by diggs, Jan 11, 2009. diggs New Member I do not believe this to be an issue w/ litespeed but I thought someone else here may have run into this issue. I'm having an issue when compiling php(5.2.6 or 5.2.8) with the litespeed api, that I've never seen before. OS = Cent 5.2 php = 5.2.8 mysql = 5.1.3 lsws & lsapi are most current avail If I configure php without a ./buildconf --force to incorporate the litespeed api, it compiles fine. If I touch ac* , ./buildconf --force, and compile as I've always done in the past without issue, I'm getting an error on compile as follows. Code: checking size of char *... configure: error: cannot compute sizeof (char *), 77 See `config.log' for more details. I seem to have narrowed this down to being an issue w/ the running of ./buildconf. I've tried autoconf213 as well as newest avail for distro autoconf259 w/ the same error in end. I did some digging first and found a few references to gcc and/or c++ being the culprit here. I've installed the most recent available through centos repositories. I also found some people that had this being a library path issue. I'm not confident that either is the case here seeing as it compiles just fine so long as I don't rebuild the config (which I have to, to build the lsapi). Here is the resulting config.log file > config.log Any input/tips on this would be awesome. I'm stumped. Thank you very much! Last edited: Jan 11, 2009 diggs, Jan 11, 2009 #1 mistwang LiteSpeed Staff the root cause of it should be ./conftest: error while loading shared libraries: /usr/local/mysql/lib/libmysqlclient.so.16: cannot restore segment prot after reloc: Permission deniedClick to expand... in the config.log mistwang, Jan 11, 2009 #2 diggs New Member While I'm
feffer Post a reply 6 posts • Page 1 of 1 Reply with quote cannot compute sizeof (char), 77 by gvr » Thu Jul 06, 2006 12:20 pm ./configure ends with Code: Select all.....
checking for fstatfs64... yes
checking for open64... yes
checking for char... yes
checking size of char... configure: error: cannot compute sizeof (char), 77
See `config.log' for more details.
config.log:Code: Select all#ifdef __cplusplus
extern "C" void std::exit (int) throw (); using std::exit;
configure: exit 1
http://www.litespeedtech.com/support/forum/threads/configure-error-cannot-compute-sizeof-char.2616/ why ________ Last edited by gvr on Thu Feb 24, 2011 8:59 pm, edited 1 time in total. gvr Posts: 2Joined: Thu Jul 06, 2006 9:59 am Top Reply with quote by solar » Fri Jan 12, 2007 9:13 pm +1 exactly the same tried 0.6.5b3 & 0.7.2 solar Posts: 4Joined: Fri Jan 12, http://www.partimage.org/forums/viewtopic.php?t=509 2007 9:08 pm Top Reply with quote by solar » Fri Jan 12, 2007 9:24 pm ./configure -blah-blah --disable-all-static helps at all solar Posts: 4Joined: Fri Jan 12, 2007 9:08 pm Top Reply with quote by marXtevens » Mon Aug 20, 2007 8:44 pm I have a slackware 11.0 system, so I compiled all the parts. I tried the --disable-all-static, but that didn't help me. However, I dug back in the log and found out it was missing libnewt, specifically libnewt.so.0.52: [emailprotected]:/usr/lib# ls -l libnew* -rw-r--r-- 1 root root 206372 2007-08-20 11:32 libnewt.a lrwxrwxrwx 1 root root 17 2007-08-20 11:32 libnewt.so -> libnewt.so.0.52.1* -rwxr-xr-x 1 root root 151906 2007-08-20 11:32 libnewt.so.0.52.1* [emailprotected]:/usr/lib# ln -s libnewt.so.0.52.1 libnewt.so.0.52 [emailprotected]:/usr/lib# ls -l libnew* -rw-r--r-- 1 root root 206372 2007-08-20 11:32 libnewt.a lrwxrwxrwx 1 root root 17 2007-08-20 11:32 libnewt.so -> libnewt.so.0.52.1* lrwxrwxrwx 1 root root 17 2007-08-20 14:40 libnewt.so.0.52 -> libnewt.so.0.52.1* -rwxr-xr-x 1 root root 151906 2007-08-20 11:32 libnewt.so.0.52.1* [emailprotected]:/usr/lib# After creating the link and rerunning configure, it completed a
Solution 3.1 Different Compilers 3.2 Dependencies Problem [root@box]# ./configure --with-user=amandabackup --with-group=disk [...] checking size of int... configure: error: cannot compute sizeof (int) Explanation This is a follow-on error to https://wiki.zmanda.com/index.php/Configure:_error:_cannot_compute_sizeof_(int) problems with glib. Configure is trying to use the compiler to determine a https://bugs.php.net/bug.php?id=21346&edit=3 simple system parameter (sizeof(int)), but the compiler flags added by the preceding glib detection are causing a failure. This tends to happen on Solaris and AIX systems. Solution Check config.log (see Reading config.log) The last compiler invocation in the "Core tests" section will show, in detail, what errors configure encountered. error cannot How to fix those errors on your particular platform is an entirely different troubleshooting problem! Here are some possibilities: Different Compilers Amanda gets a set of compiler flags directly from glib (well, via pkg-config --cflags glib-2.0). These are the flags that worked for Glib when it was being compiled. If you're using a different compiler than was used to build glib, however, this will error cannot compute not work and will often cause this problem. The solution is to use the same compiler as was used to build glib, thereby avoiding any compatibility gotchas between glib and Amanda. If this is not possible, then another option is to adjust the pkg-config input file to give flags appropriate to the compiler with which you're building Amanda. Dependencies If you are compiling from source, you may experience this type of issue if a dependency isn't found in the path you specify. For example, if you specify --with-krb5-security when configuring for compilation, and the krb5 libraries are not found, it will throw this error. The paths should be corrected or specified. Retrieved from "https://wiki.zmanda.com/index.php/Configure:_error:_cannot_compute_sizeof_(int)" Views Page Discussion View source History Personal tools Log in Navigation Amanda MySQL Backup BackupPC Recent changes Wiki Help Downloads Search Toolbox What links here Related changes Special pages Printable version Permanent link This page was last modified on 25 May 2010, at 22:05. This page has been accessed 10,337 times. Content is available under GNU Free Documentation License 1.3. Privacy policy About The Open Source Backup Wiki (Amanda, MySQL Backup, BackupPC) Disclaimers
UTC From: vlcc69jfbo001 at sneakemail dot com Assigned: Status: Not a bug Package: Compile Failure PHP Version: 4.3.0 OS: OpenBSD 3.1-stable Private report: No CVE-ID: View Add Comment Developer Edit [2003-01-02 13:39 UTC] vlcc69jfbo001 at sneakemail dot com This error seemed to appear with 4.3.0 final - I compiled a new version just a few days ago without seeing this error during configure: checking size of char... configure: error: cannot compute sizeof (char), 77 My configure command is: ./configure --with-apxs=/usr/sbin/apxs --with-mysql=/usr/local --with-pdflib --enable-exif --with-gd --with-jpeg-dir=/usr/local/bin --with-bz2 --with-zlib --with-openssl --with-gettext --with-ldap --with-mhash --disable-overload --enable-sockets --with-mcrypt --enable-sysvshm --enable-pcntl --with-config-file-path=/var/www/conf/php43/ --enable-mbstring --with-pear=/usr/local/lib/php --enable-bcmath --with-imagick Patches Add a PatchPull Requests Add a Pull RequestHistoryAllCommentsChangesGit/SVN commitsRelated reports [2003-01-02 20:53 UTC] iliaa@php.net If you do not use the --with-imagick (how did you get it btw?) does it compile properly? [2003-01-03 03:05 UTC] vlcc69jfbo001 at sneakemail dot com Taking --with-imagick off doesn't make any difference. The imagick module is available through pear at: http://pear.php.net/package-info.php?pacid=76 I've been using this configure line for several months with 4.3.0-dev, though I recently removed --with-vpopmail from it as I read it's been moved. That shouldn't have anything to do with this error though. [2003-01-03 03:09 UTC] derick@php.net Please show us the relevant parts of config.log which show the failure of the char size test. Derick [2003-01-03 04:20 UTC] vlcc69jfbo001 at sneakemail dot com This appears to be the relevant section: long longval () { return (long) (sizeof (char)); } unsigned long ulongval () { ret