Skip to content

expat: warning: "_POSIX_C_SOURCE" redefined #75555

Closed

Description

@tiran
BPO 31374
Nosy @vstinner, @tiran, @miss-islington
PRs
  • bpo-31374: Create expat_config.h with autoconf #3571
  • bpo-31374: undef _POSIX_C_SOURCE in expat_config.h #3601
  • bpo-31374: Include pyconfig.h earlier in expat #11064
  • [3.7] bpo-31374: Include pyconfig.h earlier in expat (GH-11064) #11071
  • [3.6] bpo-31374: Include pyconfig.h earlier in expat (GH-11064) #11072
  • [2.7] bpo-31374: Include pyconfig.h earlier in expat (GH-11064) #11073
  • [2.7] bpo-31374: Include pyconfig.h earlier in expat #11078
  • bpo-31374: expat doesn't include <pyconfig.h> on Windows #11079
  • [3.7] bpo-31374: expat doesn't include <pyconfig.h> on Windows (GH-11079) #11080
  • [3.6] bpo-31374: expat doesn't include <pyconfig.h> on Windows (GH-11079) #11081
  • 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/vstinner'
    closed_at = <Date 2018-12-10.12:52:00.088>
    created_at = <Date 2017-09-06.22:43:23.647>
    labels = ['extension-modules', 'expert-XML', 'build', '3.7']
    title = 'expat: warning: "_POSIX_C_SOURCE" redefined'
    updated_at = <Date 2018-12-10.15:43:00.890>
    user = 'https://github.com/tiran'

    bugs.python.org fields:

    activity = <Date 2018-12-10.15:43:00.890>
    actor = 'vstinner'
    assignee = 'vstinner'
    closed = True
    closed_date = <Date 2018-12-10.12:52:00.088>
    closer = 'vstinner'
    components = ['Extension Modules', 'XML']
    creation = <Date 2017-09-06.22:43:23.647>
    creator = 'christian.heimes'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 31374
    keywords = ['patch']
    message_count = 10.0
    messages = ['301533', '331487', '331498', '331499', '331500', '331511', '331512', '331514', '331515', '331516']
    nosy_count = 3.0
    nosy_names = ['vstinner', 'christian.heimes', 'miss-islington']
    pr_nums = ['3571', '3601', '11064', '11071', '11072', '11073', '11078', '11079', '11080', '11081']
    priority = 'low'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'compile error'
    url = 'https://bugs.python.org/issue31374'
    versions = ['Python 3.6', 'Python 3.7']

    Activity

    1. tiran commented on Sep 6, 2017

      @tiran
      MemberAuthor
      In file included from /home/heimes/dev/python/cpython/Modules/expat/expat_config.h:8:0,
                       from /home/heimes/dev/python/cpython/Modules/expat/xmltok.c:41:
      ./pyconfig.h:1454:0: warning: "_POSIX_C_SOURCE" redefined
       #define _POSIX_C_SOURCE 200809L
       
      In file included from /usr/include/bits/libc-header-start.h:33:0,
                       from /usr/include/string.h:26,
                       from /home/heimes/dev/python/cpython/Modules/expat/xmltok.c:35:
      /usr/include/features.h:286:0: note: this is the location of the previous definition
       # define _POSIX_C_SOURCE 199506L
    2. added
      3.7 (EOL)
      extension-modules
      build
      on Sep 6, 2017
    3. vstinner commented on Dec 10, 2018

      @vstinner
      Member

      New changeset cf24735 by Victor Stinner in branch 'master':
      bpo-31374: Include pyconfig.h earlier in expat (GH-11064)
      cf24735

    4. miss-islington commented on Dec 10, 2018

      @miss-islington
      Contributor

      New changeset 1467a3a by Miss Islington (bot) in branch '3.7':
      bpo-31374: Include pyconfig.h earlier in expat (GH-11064)
      1467a3a

    5. miss-islington commented on Dec 10, 2018

      @miss-islington
      Contributor

      New changeset 7215e48 by Miss Islington (bot) in branch '3.6':
      bpo-31374: Include pyconfig.h earlier in expat (GH-11064)
      7215e48

    6. miss-islington commented on Dec 10, 2018

      @miss-islington
      Contributor

      New changeset 7bbf7b0 by Miss Islington (bot) in branch '2.7':
      bpo-31374: Include pyconfig.h earlier in expat (GH-11064)
      7bbf7b0

    7. vstinner commented on Dec 10, 2018

      @vstinner
      Member

      New changeset 2632df4 by Victor Stinner in branch '2.7':
      [2.7] bpo-31374: Include pyconfig.h earlier in expat (GH-11078)
      2632df4

    8. vstinner commented on Dec 10, 2018

      @vstinner
      Member

      New changeset b6ef6f6 by Victor Stinner in branch 'master':
      bpo-31374: expat doesn't include <pyconfig.h> on Windows (GH-11079)
      b6ef6f6

    9. miss-islington commented on Dec 10, 2018

      @miss-islington
      Contributor

      New changeset ef1fc0d by Miss Islington (bot) in branch '3.7':
      bpo-31374: expat doesn't include <pyconfig.h> on Windows (GH-11079)
      ef1fc0d

    10. miss-islington commented on Dec 10, 2018

      @miss-islington
      Contributor

      New changeset 3acf30d by Miss Islington (bot) in branch '3.6':
      bpo-31374: expat doesn't include <pyconfig.h> on Windows (GH-11079)
      3acf30d

    11. vstinner commented on Dec 10, 2018

      @vstinner
      Member

      Ok, the warning should be fixed in all supported branches.

    12. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    Labels

    3.7 (EOL)buildextension-modulestopic-XML

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions