[Python-bugs-list] [Bug #116326] Syntax error in Modules/config.c

noreply@sourceforge.net noreply@sourceforge.net
Sat, 7 Oct 2000 09:26:13 -0700


Bug #116326, was updated on 2000-Oct-07 08:41
Here is a current snapshot of the bug.

Project: Python
Category: Build
Status: Closed
Resolution: None
Bug Group: None
Priority: 3
Summary: Syntax error in Modules/config.c

Details: After ./configure has terminated, file Modules/config.c
contains the following two erroneous lines:

[config.c]
   ...
   extern void initlocal/lib(void);
   ...
   {"local/lib", initlocal/lib},   
   ...

This happened on a Sun Ultra 1 with SunOS 5.6.


Follow-Ups:

Date: 2000-Oct-07 08:54
By: twouters

Comment:
Hm,  how did you run configure ? Any special options you passed to it ? Also, did you edit Modules/Setup or Modules/Setup.local ? And what are the contents of Modules/Setup.config ? That local/lib looks like a line was wrapped incorrectly, in one of those files, which makes 'makesetup' think it needs to define a module called 'local/lib'.

When in doubt, do a 'make distclean' and start from scratch, making a fresh copy of Modules/Setup.in and making sure to edit it with an editor that does not wrap lines ('joe' is my personal favorite, but YMMV ;)

(Priority lowered because the cause is highly likely to be a typo/linewrap in one of the Setup files. I added a request in PEP 42 for makesetup to grow syntax checking. Not closed yet, until it's clear that this is indeed the cause.)

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

Date: 2000-Oct-07 09:26
By: gvanrossum

Comment:
This undoubtedly caused by a typo in Modules/Setup. Closed.

You probably have accidentally split a line so that the next line starts with the string "local/lib". This string occurs in several places in the Setup file as distributed. If you want to split a line, add a backslash.
-------------------------------------------------------

For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=116326&group_id=5470