[Python-bugs-list] [Bug #128973] OpenBSD Problems with _funlockfile in fileobject.c

noreply@sourceforge.net noreply@sourceforge.net
Tue, 16 Jan 2001 05:28:53 -0800


Bug #128973, was updated on 2001-Jan-15 21:12
Here is a current snapshot of the bug.

Project: Python
Category: Python Interpreter Core
Status: Open
Resolution: None
Bug Group: Platform-specific
Priority: 5
Submitted by: jpettit
Assigned to : nobody
Summary: OpenBSD Problems with _funlockfile in fileobject.c

Details: When I compile the current CVS version of Python on OpenBSD 2.8, I
get the following linker error:

    ld: _funlockfile: non-function jmpslot
    collect2: ld returned 1 exit status
    *** Error code 1

This function was first added to Python in version 2.97 of "fileobject.c".

Follow-Ups:

Date: 2001-Jan-16 05:28
By: gvanrossum

Comment:
It's gotta be more complicated that that.  The configure script has a test
program that calls flockfile(), getc_unlocked(), and funlockfile().  Only
if this test program links successfully does it decide to use
getc_unlocked().  (Making the test depend on successfully *running* it
shouldn't make a difference -- the user here got a link-time error.)

jpettit, is there a way you could find out why the configure test succeeds
but then you get a link error linking Python?

I'll also ask Thomas Wouters to look into this.

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

Date: 2001-Jan-15 22:19
By: tim_one

Comment:
Ho ho ho:  so this means some flavor of Unix has getc_unlocked() but not
the flockfile() and funlockfile() that are supposed to come with it?  Man,
Windows looks better every day <wink> -- and so does the
getline_via_fgets() hack ...

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

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