[Python-bugs-list] [ python-Bugs-678723 ] ./configure fails w/error: cannot compute sizeof (wchar_t),

SourceForge.net noreply@sourceforge.net
Sat, 15 Mar 2003 05:11:04 -0800


Bugs item #678723, was opened at 2003-02-01 12:10
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=678723&group_id=5470

Category: Installation
Group: Python 2.3
Status: Open
Resolution: Duplicate
Priority: 5
Submitted By: Jeff Stephens (jeffste)
Assigned to: Nobody/Anonymous (nobody)
Summary: ./configure fails w/error: cannot compute sizeof (wchar_t), 

Initial Comment:
 I am running RH 7.3, kernel  2.4.18-19.7.x, and gcc-2.96-113.    
I attempted to configure python-2.3a1 as follows:   
   
./configure  --enable-shared --with-threads --with-pth  
  
Got the following error:  
  
checking size of wchar_t... configure: error: cannot compute 
sizeof (wchar_t), 77 
 
  

----------------------------------------------------------------------

>Comment By: A.M. Kuchling (akuchling)
Date: 2003-03-15 08:11

Message:
Logged In: YES 
user_id=11375

Good suggestion; installing libpth-dev lets configure run without problems.

So the simplest fix for this bug is probably just adding a note to the README warning people to have the appropriate .so installed.   Or should configure
check for a linkable libfoo.so? 

----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2003-03-14 16:33

Message:
Logged In: YES 
user_id=21627

Can you give the precise name of the .so file you have in
/usr/lib? If it is usr/lib/libpth.so.14, then it is
irrelevant that ldconfig finds it: /usr/bin/ld won't use
that file for linking. You probably need to install libpth-dev.

----------------------------------------------------------------------

Comment By: A.M. Kuchling (akuchling)
Date: 2003-03-14 11:04

Message:
Logged In: YES 
user_id=11375

I can replicate this problem on my Debian machine.  config.log attached.

'gcc -o conftest -g -O2   config.c  -lpth -lrt -ldl'  reports the following error: '/usr/bin/ld: cannot find -lpth'.  This is very odd, because 
I've got the libpth14 package installed, there's a .so in /usr/lib,
ldconfig find it, etc.  


----------------------------------------------------------------------

Comment By: A.M. Kuchling (akuchling)
Date: 2003-03-14 11:04

Message:
Logged In: YES 
user_id=11375

Let's try that attachment again.

----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2003-03-05 10:42

Message:
Logged In: YES 
user_id=21627

It would be good if you could attach the config.log that you
got when it failed.


----------------------------------------------------------------------

Comment By: Neal Norwitz (nnorwitz)
Date: 2003-02-01 20:46

Message:
Logged In: YES 
user_id=33168

Jeff, I think we should try to fix this.  It looks like a
duplicate of 662840.  It would be great if you can help
debug this further.

The problem seems to be related to redhat 7.3.  The other
bug which fails exactly the same way is using gcc 3.2 and
doesn't mention config options (although they may be used).

----------------------------------------------------------------------

Comment By: Jeff Stephens (jeffste)
Date: 2003-02-01 13:33

Message:
Logged In: YES 
user_id=702289

I reran ./configure several times, varying the options, and found  
that this error only occurs when the option "--with-pth" is  
included.  For example: 
 
./configure --enable-shared --with-pth   #error occurs 
./configure --enable-shared --with-threads  #error does NOT occur 
 
I don't know whether this is a bug or not, so I am leaving it to 
the experts to say yea or nay.  

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=678723&group_id=5470