[Python-bugs-list] [ python-Bugs-610332 ] SO name is too short! Python 2.2.1

noreply@sourceforge.net noreply@sourceforge.net
Mon, 16 Sep 2002 20:32:54 -0700


Bugs item #610332, was opened at 2002-09-17 03:32
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=610332&group_id=5470

Category: Build
Group: Not a Bug
Status: Open
Resolution: None
Priority: 5
Submitted By: Steve Simmons (eschasi)
Assigned to: Nobody/Anonymous (nobody)
Summary: SO name is too short!  Python 2.2.1

Initial Comment:
I had various odd problems building python 2.2.1 under the 
FreeBSD ports, but have finally resolved it. 
 
It turns out that my standard system setup includes two 
environment variables which are used in shell scripts to 
generate inverse video.  They are SO and SE, for 
standout and standend, as per the classic termcap/termlib 
variables. 
 
Unfortunately, the ./configure script uses SO as the 
extension for shared libraries.  If it is previously defined, 
the value is retained rather than developed by test.  Thus 
my python builds were looking for shared libraries with 
the name foo.<ESC>[7m rather than foo.so. 
 
I found two fixes which worked.  One was to undefine SO. 
The other was to rummage thru configure, configure.in and 
Makefile.pre.in at the top dir and change SO to SHLIBEXT. 
After either, the configure/builds ran fine. 
 
I notice in those files that SO is pretty much the *only* 
two-character variable name used that is not already 
strongly associated with a 'standard' name for builds 
via make (CC, LD, etc).  I have not encounted any other 
use of SO except python's and mine. 
 
While I'm not presumptuous enough to suggest that pythons 
build should change to avoid my problems, I *will* note 
that long, meaningful variable names are alwas better than 
short, obscure, misleading ones.  While SO does reflect 
the UNIX shared library, it's a bit misleading for DLLs, etc. 

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

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