LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > configure: error: cannot compute sizeof (char *)

Reply
 
Thread Tools Display Modes
  #1  
Old 01-10-2009, 08:37 PM
diggs diggs is offline
New Member
 
Join Date: Jan 2009
Posts: 6
Default configure: error: cannot compute sizeof (char *)

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 by diggs; 01-10-2009 at 08:39 PM..
Reply With Quote
  #2  
Old 01-10-2009, 08:41 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
the root cause of it should be

Quote:
./conftest: error while loading shared libraries: /usr/local/mysql/lib/libmysqlclient.so.16: cannot restore segment prot after reloc: Permission denied
in the config.log
Reply With Quote
  #3  
Old 01-10-2009, 08:54 PM
diggs diggs is offline
New Member
 
Join Date: Jan 2009
Posts: 6
While I'm not quite sure exactly what this issue was, this allowed me to compile fully and get the server up and running w/ new php no problem.

Granted this post was applicable towards apache, it has helped me here. I would love to know exactly what the issue was here if anyone knows.

Referring post > HERE

Quote:
... in this case the issue is ... the security setting for SELinux that was selected at the time the operating system was installed. To get past the problem and allow the PHP Install to complete, we just turned enforcement off ..

setenforce 0
I was able to continue install and had no further issues w/ setup after this.

Possibly the permission denied errors in my config.log were actually caused by this instead?

Thank you.

Last edited by diggs; 01-10-2009 at 09:58 PM..
Reply With Quote
  #4  
Old 01-11-2009, 07:10 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Yes, I think it is related to SELinux.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 04:15 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.