Php 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 not quite sure exactly what this issue was, th
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 problems with glib. Configure is trying to use the compiler to determine a 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. http://www.litespeedtech.com/support/forum/threads/configure-error-cannot-compute-sizeof-char.2616/ 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 https://wiki.zmanda.com/index.php/Configure:_error:_cannot_compute_sizeof_(int) 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,421 times. Content is available under GNU Free Documentation License 1.3. Privacy policy About The Open Source Backup Wiki (Amanda, MySQL Backup, BackupPC) Disclaimers
Board index » DCMTK » DCMTK - Installation All times are UTC http://forum.dcmtk.org/viewtopic.php?t=1738 + 1 hour configure: error: cannot compute sizeof (char) Moderator: Moderator Team Page 1 of 1 [ 6 posts ] Previous topic | Next topic Author Message ragbagken Post subject: configure: error: cannot compute sizeof (char)Posted: Thu, 2008-07-17, 05:45 Joined: Fri, 2007-07-06, 09:06Posts: 6 I am trying to compile DCMTK php error on sparc sun solaris2.8 gcc 2.95.3. When I run "./Configure", it encounters an error: Quote:checking size of char... configure: error: cannot compute sizeof (char), 77It seems to bomb out of module config, and continues OK, but when I try "make all", it saysQuote:make: Warning: Can't find `config/Makefile.def': No such file or directorymake: Fatal php error cannot error in reader: Makefile, line 8: Read of include file `config/Makefile.def' failedWhich I assume is because Makefile.def is not being created because of the first error. I thought that maybe we need to use a different compiler, but CC or SC do not seem to be installed in this machine.Thanks for any advice.Here is the configure output:Quote:adacp3u3.P3RTP <96>: ./configureRunning configure for module config.checking build system type... sparc-sun-solaris2.8checking host system type... sparc-sun-solaris2.8checking whether make sets ${MAKE}... yeschecking for a BSD-compatible install... /opt/sfw/bin/ginstall -cchecking for gcc... gccchecking for C compiler default output... a.outchecking whether the C compiler works... yeschecking whether we are cross compiling... nochecking for suffix of executables... checking for suffix of object files... ochecking whether we are using the GNU C compiler... yeschecking whether gcc accepts -g... yeschecking how to run the C preprocessor... gcc -Echecking for c++... c++checking whether we are using the GNU C++ compiler... yeschecking whether c++ accepts -g... yeschecking how to run t