Menu

#3 Linking error with Python 2.x/CVS

closed-fixed
nobody
None
5
2001-08-11
2001-01-03
No

[Glimmer 1.0 release]

When building against Python 2.0 from CVS, "-lutil" needs to be added to the link command to allow the forkpty() and openpty() functions to be found; these are used in the posix module.

You can get the list of supplemental libraries needed by python this way:

% python
Python 2.0 (#393, Jan 3 2001, 17:23:11)
[GCC 2.95.3 19991030 (prerelease)] on linux2
Type "copyright", "credits" or "license" for more information.
>>> import distutils.sysconfig
>>> distutils.sysconfig.get_config_var('LIBS')
'-lpthread -ldl -lutil'

Good luck!

Discussion

  • Fred L. Drake, Jr.

    Logged In: YES
    user_id=3066

    Any chance this will get fixed anytime soon? Waiting for a new Python release won't help; Python's doing all it can to tell you what it needs.

    I can help on the Python side, but this is a configuration / build control issue for Glimmer.

     
  • Fred L. Drake, Jr.

    • summary: Linking error with Python 2.0/CVS --> Linking error with Python 2.x/CVS
     
  • Fred L. Drake, Jr.

    Logged In: YES
    user_id=3066

    Changed summary to reflect that this is a problem for all
    Python 2.x releases, not just Python 2.0.

     
  • Chris Phelps

    Chris Phelps - 2001-07-16

    Logged In: YES
    user_id=1119

    While it is possible to get glimmer to link with python 2.x,
    it appears that the C api is broken, at least in all of the
    rpms that I have found, and that other users have tried.

     
  • Chris Phelps

    Chris Phelps - 2001-07-16
    • status: open --> open-wont-fix
     
  • Chris Phelps

    Chris Phelps - 2001-08-11
    • status: open-wont-fix --> open-fixed
     
  • Chris Phelps

    Chris Phelps - 2001-08-11

    Logged In: YES
    user_id=1119

    Fixed now.

     
  • Chris Phelps

    Chris Phelps - 2001-08-11
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB