Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error building _bsddb extension #41271

Closed
phdru mannequin opened this issue Dec 1, 2004 · 5 comments
Closed

Error building _bsddb extension #41271

phdru mannequin opened this issue Dec 1, 2004 · 5 comments
Assignees
Labels
build The build process and cross-build

Comments

@phdru
Copy link
Mannequin

phdru mannequin commented Dec 1, 2004

BPO 1077040
Nosy @gpshead, @phdru
Files
  • patch-bsddb-pget32.diff: patch against Modules/_bsddb.c to fix compilation against 3.2
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/gpshead'
    closed_at = <Date 2004-12-16.09:52:23.000>
    created_at = <Date 2004-12-01.20:19:39.000>
    labels = ['build']
    title = 'Error building _bsddb extension'
    updated_at = <Date 2004-12-16.09:52:23.000>
    user = 'https://github.com/phdru'

    bugs.python.org fields:

    activity = <Date 2004-12-16.09:52:23.000>
    actor = 'gregory.p.smith'
    assignee = 'gregory.p.smith'
    closed = True
    closed_date = None
    closer = None
    components = ['Build']
    creation = <Date 2004-12-01.20:19:39.000>
    creator = 'phd'
    dependencies = []
    files = ['1518']
    hgrepos = []
    issue_num = 1077040
    keywords = []
    message_count = 5.0
    messages = ['23502', '23503', '23504', '23505', '23506']
    nosy_count = 3.0
    nosy_names = ['gregory.p.smith', 'phd', 'aimacintyre']
    pr_nums = []
    priority = 'high'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue1077040'
    versions = ['Python 2.4']

    @phdru
    Copy link
    Mannequin Author

    phdru mannequin commented Dec 1, 2004

    Trying to build Python 2.4 on Debian GNU/Linux 3.0
    using gcc 3.3.4. BerkeleyDB version is 3.2, header is
    /usr/include/db.h, library in /usr/lib.

    Error:

    gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -fPIC
    -I. -I/usr/local/src/Python/Python-2.4/./Include
    -I/usr/local/include
    -I/usr/local/src/Python/Python-2.4/Include
    -I/usr/local/src/Python/Python-2.4 -c
    /usr/local/src/Python/Python-2.4/Modules/_bsddb.c -o
    build/temp.linux-i686-2.4/_bsddb.o
    running build_scripts
    /usr/local/src/Python/Python-2.4/Modules/_bsddb.c: In
    function DB_pget': /usr/local/src/Python/Python-2.4/Modules/_bsddb.c:1464: error: structure has no member named pget'
    /usr/local/src/Python/Python-2.4/Modules/_bsddb.c:1482:
    error: structure has no member named primaryDBType' /usr/local/src/Python/Python-2.4/Modules/_bsddb.c:1483: error: structure has no member named primaryDBType'
    /usr/local/src/Python/Python-2.4/Modules/_bsddb.c: In
    function DBC_pget': /usr/local/src/Python/Python-2.4/Modules/_bsddb.c:2928: error: structure has no member named c_pget'
    /usr/local/src/Python/Python-2.4/Modules/_bsddb.c:2943:
    error: structure has no member named primaryDBType' /usr/local/src/Python/Python-2.4/Modules/_bsddb.c:2944: error: structure has no member named primaryDBType'

    @phdru phdru mannequin closed this as completed Dec 1, 2004
    @phdru phdru mannequin assigned gpshead Dec 1, 2004
    @phdru phdru mannequin added the build The build process and cross-build label Dec 1, 2004
    @phdru phdru mannequin closed this as completed Dec 1, 2004
    @phdru phdru mannequin assigned gpshead Dec 1, 2004
    @phdru phdru mannequin added the build The build process and cross-build label Dec 1, 2004
    @aimacintyre
    Copy link
    Mannequin

    aimacintyre mannequin commented Dec 12, 2004

    Logged In: YES
    user_id=250749

    What are the DB_VERSION_MAJOR and DB_VERSION_MINOR macros
    defined to in your /usr/include/db.h?

    The primaryDBType symbol is only referenced in code compiled
    for DB versions 3.3 and higher, and the pget symbol is
    referenced in code compiled for DB 3.2 and higher.

    @phdru
    Copy link
    Mannequin Author

    phdru mannequin commented Dec 12, 2004

    Logged In: YES
    user_id=4799

    #define	DB_VERSION_MAJOR	3
    #define	DB_VERSION_MINOR	2
    #define	DB_VERSION_PATCH	9
    #define	DB_VERSION_STRING	"Sleepycat Software: Berkeley DB
    3.2.9: (April  7, 2002)"

    @gpshead
    Copy link
    Member

    gpshead commented Dec 13, 2004

    Logged In: YES
    user_id=413

    Yes this is easy to reproduce. At the moment the preferred workaround is to use a more recent version of BerkeleyDB <= 4.2 (4.3 support has not yet been committed to the 2.4 maintenance branch).

    I'll fix this so that 3.2 works again shortly.

    @gpshead
    Copy link
    Member

    gpshead commented Dec 16, 2004

    Logged In: YES
    user_id=413

    fixed in python cvs both in HEAD and 2.4 (release24-maint branch).

    patch attached to this bug if you just want to apply it to your python 2.4 tarball. fwiw, its better to use a more recent version of berkeleydb if possible.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    build The build process and cross-build
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant