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

SourceForge.net noreply@sourceforge.net
Sat, 14 Jun 2003 07:30:26 -0700


Bugs item #678723, was opened at 2003-02-01 18:10
Message generated for change (Comment added) made by loewis
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: Closed
>Resolution: Invalid
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: Martin v. Löwis (loewis)
Date: 2003-06-14 16:30

Message:
Logged In: YES 
user_id=21627

Apparently not. Closing as invalid.

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

Comment By: Neal Norwitz (nnorwitz)
Date: 2003-05-22 23:50

Message:
Logged In: YES 
user_id=33168

Is this still a problem with the current beta?

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

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

Message:
Logged In: YES 
user_id=21627

Feel free to put a note into the README. However, I think
this is a pilot error: If the user specifies --with-pth, but
does not have pth properly installed, then configure is
entitled to fail in strange ways. If --with or --enable is
specified, it should be taken as overriding whatever
configure thinks is right, so those command options must be
followed blindly.

Perhaps a general note "read config.log if configure fails"
would be appropriate.

It would be good if Jeff could report whether he ran into
the same problem (pth not properly installed).

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

Comment By: A.M. Kuchling (akuchling)
Date: 2003-03-15 14: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 22: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 17: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 17: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 16: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-02 02: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 19: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