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

socketmodule does not build under cygwin #40670

Closed
tebeka mannequin opened this issue Aug 2, 2004 · 10 comments
Closed

socketmodule does not build under cygwin #40670

tebeka mannequin opened this issue Aug 2, 2004 · 10 comments
Labels
build The build process and cross-build

Comments

@tebeka
Copy link
Mannequin

tebeka mannequin commented Aug 2, 2004

BPO 1001857
Nosy @loewis, @tebeka
Files
  • socketmodule.c.diff
  • 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 = None
    closed_at = <Date 2004-08-09.13:31:31.000>
    created_at = <Date 2004-08-02.08:26:41.000>
    labels = ['build']
    title = 'socketmodule does not build under cygwin'
    updated_at = <Date 2004-08-09.13:31:31.000>
    user = 'https://github.com/tebeka'

    bugs.python.org fields:

    activity = <Date 2004-08-09.13:31:31.000>
    actor = 'jlt63'
    assignee = 'jlt63'
    closed = True
    closed_date = None
    closer = None
    components = ['Build']
    creation = <Date 2004-08-02.08:26:41.000>
    creator = 'tebeka'
    dependencies = []
    files = ['1358']
    hgrepos = []
    issue_num = 1001857
    keywords = []
    message_count = 10.0
    messages = ['21887', '21888', '21889', '21890', '21891', '21892', '21893', '21894', '21895', '21896']
    nosy_count = 5.0
    nosy_names = ['loewis', 'jlt63', 'anadelonbrin', 'tebeka', 'plusk']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue1001857'
    versions = ['Python 2.4']

    @tebeka
    Copy link
    Mannequin Author

    tebeka mannequin commented Aug 2, 2004

    There are latest sources from CVS
    ./configure disables socket module
    When adding it manually in Modules/Setup the following
    error occures:

    gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall
    -Wstrict-prototypes -I. -I./Include -DPy_BUILD_CORE
    -c ./Modules/socketmodule.c -o Modules/socketmodule.o
    In file included from Modules/socketmodule.c:312:
    Modules/getaddrinfo.c:134: warning: struct addrinfo' declared inside parameter list [Modules/getaddrinfo.c:134](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L134): warning: its scope is only this definition or declaration, which is probably not what you want [Modules/getaddrinfo.c:136](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L136): warning: struct addrinfo'
    declared inside parameter list
    Modules/getaddrinfo.c: In function fake_gai_strerror': [Modules/getaddrinfo.c:204](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L204): error: EAI_MAX' undeclared
    (first use in this function)
    Modules/getaddrinfo.c:204: error: (Each undeclared
    identifier is reported only once
    Modules/getaddrinfo.c:204: error: for each function it
    appears in.)
    Modules/getaddrinfo.c: At top level:
    Modules/getaddrinfo.c:210: warning: struct addrinfo' declared inside parameter list [Modules/getaddrinfo.c](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c): In function fake_freeaddrinfo':
    Modules/getaddrinfo.c:215: error: dereferencing pointer
    to incomplete type
    Modules/getaddrinfo.c:216: error: dereferencing pointer
    to incomplete type
    Modules/getaddrinfo.c:217: error: dereferencing pointer
    to incomplete type
    Modules/getaddrinfo.c: At top level:
    Modules/getaddrinfo.c:237: warning: struct addrinfo' declared inside parameter list [Modules/getaddrinfo.c](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c): In function fake_getaddrinfo':
    Modules/getaddrinfo.c:239: error: storage size of
    sentinel' isn't known [Modules/getaddrinfo.c:244](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L244): error: storage size of ai'
    isn't known
    Modules/getaddrinfo.c:266: error: dereferencing pointer
    to incomplete type
    Modules/getaddrinfo.c:267: error: dereferencing pointer
    to incomplete type
    Modules/getaddrinfo.c:268: error: dereferencing pointer
    to incomplete type
    Modules/getaddrinfo.c:269: error: dereferencing pointer
    to incomplete type
    Modules/getaddrinfo.c:270: error: dereferencing pointer
    to incomplete type
    Modules/getaddrinfo.c:271: error: dereferencing pointer
    to incomplete type
    Modules/getaddrinfo.c:272: error: dereferencing pointer
    to incomplete type
    Modules/getaddrinfo.c:273: error: dereferencing pointer
    to incomplete type
    Modules/getaddrinfo.c:277: error: EAI_NONAME' undeclared (first use in this function) [Modules/getaddrinfo.c:280](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L280): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:280](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L280): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:281](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L281): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:281](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L281): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:282](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L282): error: EAI_BADHINTS'
    undeclared (first use in this function)
    Modules/getaddrinfo.c:283: error: dereferencing pointer
    to incomplete type
    Modules/getaddrinfo.c:283: error: AI_MASK' undeclared (first use in this function) [Modules/getaddrinfo.c:284](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L284): error: EAI_BADFLAGS'
    undeclared (first use in this function)
    Modules/getaddrinfo.c:285: error: dereferencing pointer
    to incomplete type
    Modules/getaddrinfo.c:293: error: EAI_FAMILY' undeclared (first use in this function) [Modules/getaddrinfo.c:295](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L295): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:296](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L296): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:298](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L298): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:302](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L302): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:305](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L305): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:308](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L308): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:315](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L315): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:316](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L316): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:318](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L318): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:321](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L321): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:322](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L322): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:324](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L324): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:327](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L327): error: EAI_SOCKTYPE'
    undeclared (first use in this function)
    Modules/getaddrinfo.c:337: error: dereferencing pointer
    to incomplete type
    Modules/getaddrinfo.c:339: error: dereferencing pointer
    to incomplete type
    Modules/getaddrinfo.c:340: error: dereferencing pointer
    to incomplete type
    Modules/getaddrinfo.c:348: error: dereferencing pointer
    to incomplete type
    Modules/getaddrinfo.c:363: error: EAI_SERVICE' undeclared (first use in this function) [Modules/getaddrinfo.c:365](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L365): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:367](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L367): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:368](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L368): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:370](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L370): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:371](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L371): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:373](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L373): error: EAI_PROTOCOL'
    undeclared (first use in this function)
    Modules/getaddrinfo.c:387: error: dereferencing pointer
    to incomplete type
    Modules/getaddrinfo.c:388: error: dereferencing pointer
    to incomplete type
    Modules/getaddrinfo.c:392: error: dereferencing pointer
    to incomplete type
    Modules/getaddrinfo.c:392: error: AI_PASSIVE' undeclared (first use in this function) [Modules/getaddrinfo.c:393](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L393): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:393](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L393): error: invalid application of sizeof' to an incomplete type
    Modules/getaddrinfo.c:393: error: dereferencing pointer
    to incomplete type
    Modules/getaddrinfo.c:393: error: invalid application
    of sizeof' to an incomplete type [Modules/getaddrinfo.c:393](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L393): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:393](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L393): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:393](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L393): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:393](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L393): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:393](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L393): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:393](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L393): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:393](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L393): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:393](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L393): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:399](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L399): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:399](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L399): error: invalid application of sizeof' to an incomplete type
    Modules/getaddrinfo.c:399: error: dereferencing pointer
    to incomplete type
    Modules/getaddrinfo.c:399: error: invalid application
    of sizeof' to an incomplete type [Modules/getaddrinfo.c:399](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L399): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:399](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L399): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:399](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L399): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:399](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L399): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:399](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L399): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:399](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L399): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:399](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L399): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:399](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L399): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:404](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L404): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:426](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L426): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:426](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L426): error: AI_CANONNAME'
    undeclared (first use in this function)
    Modules/getaddrinfo.c:429: error: dereferencing pointer
    to incomplete type
    Modules/getaddrinfo.c:440: error: dereferencing pointer
    to incomplete type
    Modules/getaddrinfo.c:441: error: dereferencing pointer
    to incomplete type
    Modules/getaddrinfo.c:442: error: dereferencing pointer
    to incomplete type
    Modules/getaddrinfo.c:443: error: invalid application
    of sizeof' to an incomplete type [Modules/getaddrinfo.c:443](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L443): error: invalid application of sizeof' to an incomplete type
    Modules/getaddrinfo.c:443: error: dereferencing pointer
    to incomplete type
    Modules/getaddrinfo.c:443: error: invalid use of
    undefined type struct addrinfo' [Modules/getaddrinfo.c:443](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L443): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:443](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L443): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:443](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L443): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:443](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L443): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:443](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L443): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:443](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L443): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:455](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L455): warning: passing arg 3 of get_name' from incompatible pointer type
    Modules/getaddrinfo.c:455: warning: passing arg 5 of
    get_name' from incompatible pointer type [Modules/getaddrinfo.c:462](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L462): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:462](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L462): error: AI_NUMERICHOST'
    undeclared (first use in this function)
    Modules/getaddrinfo.c:466: error: dereferencing pointer
    to incomplete type
    Modules/getaddrinfo.c:466: warning: passing arg 3 of
    get_addr' from incompatible pointer type [Modules/getaddrinfo.c:466](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L466): warning: passing arg 4 of get_addr' from incompatible pointer type
    Modules/getaddrinfo.c:473: error: EAI_FAIL' undeclared (first use in this function) [Modules/getaddrinfo.c:477](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L477): warning: passing arg 1 of fake_freeaddrinfo' from incompatible pointer type
    Modules/getaddrinfo.c:239: warning: unused variable
    sentinel' [Modules/getaddrinfo.c:244](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L244): warning: unused variable ai'
    In file included from Modules/socketmodule.c:312:
    Modules/getaddrinfo.c: In function get_name': [Modules/getaddrinfo.c:491](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L491): error: argument res'
    doesn't match prototype
    Modules/getaddrinfo.c:134: error: prototype declaration
    Modules/getaddrinfo.c:491: error: argument pai' doesn't match prototype [Modules/getaddrinfo.c:134](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L134): error: prototype declaration [Modules/getaddrinfo.c:506](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L506): error: invalid application of sizeof' to an incomplete type
    Modules/getaddrinfo.c:506: error: invalid application
    of sizeof' to an incomplete type [Modules/getaddrinfo.c:506](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L506): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:506](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L506): error: invalid use of undefined type struct addrinfo'
    Modules/getaddrinfo.c:506: error: dereferencing pointer
    to incomplete type
    Modules/getaddrinfo.c:506: error: dereferencing pointer
    to incomplete type
    Modules/getaddrinfo.c:506: error: dereferencing pointer
    to incomplete type
    Modules/getaddrinfo.c:506: error: dereferencing pointer
    to incomplete type
    Modules/getaddrinfo.c:506: error: dereferencing pointer
    to incomplete type
    Modules/getaddrinfo.c:506: error: dereferencing pointer
    to incomplete type
    Modules/getaddrinfo.c:507: error: dereferencing pointer
    to incomplete type
    Modules/getaddrinfo.c:507: error: AI_CANONNAME' undeclared (first use in this function) [Modules/getaddrinfo.c:507](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L507): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:507](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L507): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:507](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L507): error: EAI_MEMORY'
    undeclared (first use in this function)
    Modules/getaddrinfo.c:509: error: invalid application
    of sizeof' to an incomplete type [Modules/getaddrinfo.c:509](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L509): error: invalid application of sizeof' to an incomplete type
    Modules/getaddrinfo.c:509: error: dereferencing pointer
    to incomplete type
    Modules/getaddrinfo.c:509: error: invalid use of
    undefined type struct addrinfo' [Modules/getaddrinfo.c:509](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L509): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:509](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L509): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:509](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L509): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:509](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L509): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:509](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L509): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:509](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L509): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:519](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L519): warning: passing arg 1 of fake_freeaddrinfo' from incompatible pointer type
    In file included from Modules/socketmodule.c:312:
    Modules/getaddrinfo.c: In function get_addr': [Modules/getaddrinfo.c:536](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L536): error: argument res'
    doesn't match prototype
    Modules/getaddrinfo.c:136: error: prototype declaration
    Modules/getaddrinfo.c:536: error: argument pai' doesn't match prototype [Modules/getaddrinfo.c:136](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L136): error: prototype declaration [Modules/getaddrinfo.c:538](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L538): error: storage size of sentinel' isn't known
    Modules/getaddrinfo.c:562: error: EAI_NODATA' undeclared (first use in this function) [Modules/getaddrinfo.c:565](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L565): error: EAI_AGAIN'
    undeclared (first use in this function)
    Modules/getaddrinfo.c:569: error: EAI_FAIL' undeclared (first use in this function) [Modules/getaddrinfo.c:616](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L616): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:616](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L616): error: invalid application of sizeof' to an incomplete type
    Modules/getaddrinfo.c:616: error: dereferencing pointer
    to incomplete type
    Modules/getaddrinfo.c:616: error: invalid application
    of sizeof' to an incomplete type [Modules/getaddrinfo.c:616](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L616): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:616](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L616): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:616](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L616): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:616](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L616): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:616](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L616): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:616](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L616): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:616](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L616): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:616](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L616): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:618](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L618): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:619](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L619): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:619](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L619): error: AI_CANONNAME'
    undeclared (first use in this function)
    Modules/getaddrinfo.c:619: error: dereferencing pointer
    to incomplete type
    Modules/getaddrinfo.c:619: error: dereferencing pointer
    to incomplete type
    Modules/getaddrinfo.c:619: error: EAI_MEMORY' undeclared (first use in this function) [Modules/getaddrinfo.c:621](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L621): error: dereferencing pointer to incomplete type [Modules/getaddrinfo.c:630](https://github.com/python/cpython/blob/main/Modules/getaddrinfo.c#L630): warning: passing arg 1 of fake_freeaddrinfo' from incompatible pointer type
    Modules/getaddrinfo.c:538: warning: unused variable
    sentinel' In file included from [Modules/socketmodule.c:316](https://github.com/python/cpython/blob/main/Modules/socketmodule.c#L316): [Modules/getnameinfo.c](https://github.com/python/cpython/blob/main/Modules/getnameinfo.c): In function fake_getnameinfo':
    Modules/getnameinfo.c:138: error: NI_NUMERICSERV' undeclared (first use in this function) [Modules/getnameinfo.c:144](https://github.com/python/cpython/blob/main/Modules/getnameinfo.c#L144): error: NI_DGRAM' undeclared
    (first use in this function)
    Modules/getnameinfo.c:157: error: NI_NUMERICHOST' undeclared (first use in this function) [Modules/getnameinfo.c:188](https://github.com/python/cpython/blob/main/Modules/getnameinfo.c#L188): error: NI_NOFQDN'
    undeclared (first use in this function)
    Modules/getnameinfo.c:203: error: NI_NAMEREQD' undeclared (first use in this function) [Modules/socketmodule.c](https://github.com/python/cpython/blob/main/Modules/socketmodule.c): In function setipaddr':
    Modules/socketmodule.c:725: error: storage size of
    hints' isn't known [Modules/socketmodule.c:736](https://github.com/python/cpython/blob/main/Modules/socketmodule.c#L736): error: AI_PASSIVE'
    undeclared (first use in this function)
    Modules/socketmodule.c:739: warning: passing arg 4 of
    fake_getaddrinfo' from incompatible pointer type [Modules/socketmodule.c:750](https://github.com/python/cpython/blob/main/Modules/socketmodule.c#L750): error: dereferencing pointer to incomplete type [Modules/socketmodule.c:760](https://github.com/python/cpython/blob/main/Modules/socketmodule.c#L760): warning: passing arg 1 of fake_freeaddrinfo' from incompatible pointer type
    Modules/socketmodule.c:765: error: dereferencing
    pointer to incomplete type
    Modules/socketmodule.c:766: warning: passing arg 1 of
    fake_freeaddrinfo' from incompatible pointer type [Modules/socketmodule.c:771](https://github.com/python/cpython/blob/main/Modules/socketmodule.c#L771): error: dereferencing pointer to incomplete type [Modules/socketmodule.c:772](https://github.com/python/cpython/blob/main/Modules/socketmodule.c#L772): error: dereferencing pointer to incomplete type [Modules/socketmodule.c:773](https://github.com/python/cpython/blob/main/Modules/socketmodule.c#L773): error: dereferencing pointer to incomplete type [Modules/socketmodule.c:774](https://github.com/python/cpython/blob/main/Modules/socketmodule.c#L774): warning: passing arg 1 of fake_freeaddrinfo' from incompatible pointer type
    Modules/socketmodule.c:811: warning: passing arg 4 of
    fake_getaddrinfo' from incompatible pointer type [Modules/socketmodule.c:826](https://github.com/python/cpython/blob/main/Modules/socketmodule.c#L826): error: dereferencing pointer to incomplete type [Modules/socketmodule.c:827](https://github.com/python/cpython/blob/main/Modules/socketmodule.c#L827): error: dereferencing pointer to incomplete type [Modules/socketmodule.c:828](https://github.com/python/cpython/blob/main/Modules/socketmodule.c#L828): error: dereferencing pointer to incomplete type [Modules/socketmodule.c:829](https://github.com/python/cpython/blob/main/Modules/socketmodule.c#L829): warning: passing arg 1 of fake_freeaddrinfo' from incompatible pointer type
    Modules/socketmodule.c:725: warning: unused variable
    hints' [Modules/socketmodule.c](https://github.com/python/cpython/blob/main/Modules/socketmodule.c): In function makeipaddr':
    Modules/socketmodule.c:855: error: NI_NUMERICHOST' undeclared (first use in this function) [Modules/socketmodule.c](https://github.com/python/cpython/blob/main/Modules/socketmodule.c): In function socket_getaddrinfo':
    Modules/socketmodule.c:3335: error: storage size of
    hints' isn't known [Modules/socketmodule.c:3386](https://github.com/python/cpython/blob/main/Modules/socketmodule.c#L3386): warning: passing arg 4 of fake_getaddrinfo' from incompatible pointer type
    Modules/socketmodule.c:3396: error: dereferencing
    pointer to incomplete type
    Modules/socketmodule.c:3398: error: dereferencing
    pointer to incomplete type
    Modules/socketmodule.c:3398: error: dereferencing
    pointer to incomplete type
    Modules/socketmodule.c:3401: error: dereferencing
    pointer to incomplete type
    Modules/socketmodule.c:3402: error: dereferencing
    pointer to incomplete type
    Modules/socketmodule.c:3402: error: dereferencing
    pointer to incomplete type
    Modules/socketmodule.c:3403: error: dereferencing
    pointer to incomplete type
    Modules/socketmodule.c:3403: error: dereferencing
    pointer to incomplete type
    Modules/socketmodule.c:3415: warning: passing arg 1 of
    fake_freeaddrinfo' from incompatible pointer type [Modules/socketmodule.c:3422](https://github.com/python/cpython/blob/main/Modules/socketmodule.c#L3422): warning: passing arg 1 of fake_freeaddrinfo' from incompatible pointer type
    Modules/socketmodule.c:3335: warning: unused variable
    hints' [Modules/socketmodule.c](https://github.com/python/cpython/blob/main/Modules/socketmodule.c): In function socket_getnameinfo':
    Modules/socketmodule.c:3443: error: storage size of
    hints' isn't known [Modules/socketmodule.c:3459](https://github.com/python/cpython/blob/main/Modules/socketmodule.c#L3459): warning: passing arg 4 of fake_getaddrinfo' from incompatible pointer type
    Modules/socketmodule.c:3466: error: dereferencing
    pointer to incomplete type
    Modules/socketmodule.c:3471: error: dereferencing
    pointer to incomplete type
    Modules/socketmodule.c:3494: error: dereferencing
    pointer to incomplete type
    Modules/socketmodule.c:3494: error: dereferencing
    pointer to incomplete type
    Modules/socketmodule.c:3504: warning: passing arg 1 of
    fake_freeaddrinfo' from incompatible pointer type [Modules/socketmodule.c:3443](https://github.com/python/cpython/blob/main/Modules/socketmodule.c#L3443): warning: unused variable hints'
    make: *** [Modules/socketmodule.o] Error 1

    @tebeka tebeka mannequin closed this as completed Aug 2, 2004
    @tebeka tebeka mannequin assigned jlt63 Aug 2, 2004
    @tebeka tebeka mannequin added the build The build process and cross-build label Aug 2, 2004
    @tebeka tebeka mannequin closed this as completed Aug 2, 2004
    @tebeka tebeka mannequin assigned jlt63 Aug 2, 2004
    @tebeka tebeka mannequin added the build The build process and cross-build label Aug 2, 2004
    @loewis
    Copy link
    Mannequin

    loewis mannequin commented Aug 3, 2004

    Logged In: YES
    user_id=21627

    Can you report the relevant section from config.log where
    configure disables sockets?

    @tebeka
    Copy link
    Mannequin Author

    tebeka mannequin commented Aug 3, 2004

    Logged In: YES
    user_id=358087

    Attaching the whole log just in case :-)

    @loewis
    Copy link
    Mannequin

    loewis mannequin commented Aug 3, 2004

    Logged In: YES
    user_id=21627

    Please retry, checking the checkbox.

    @tebeka
    Copy link
    Mannequin Author

    tebeka mannequin commented Aug 3, 2004

    Logged In: YES
    user_id=358087

    Sorry.
    Hope it's OK now.

    @loewis
    Copy link
    Mannequin

    loewis mannequin commented Aug 3, 2004

    Logged In: YES
    user_id=21627

    Got the file in email now; 290k is too large for an SF
    attachment.

    However, I still cannot find out what you mean by
    "./configure disables socket module". What message that you
    got are you referring to, and what specifically did you do
    to "add it manually"?

    @tebeka
    Copy link
    Mannequin Author

    tebeka mannequin commented Aug 4, 2004

    Logged In: YES
    user_id=358087

    When running "./configure --prefix=/usr" python is built OK,
    but socketmodule (_socket.dll) is not build.
    There is no message on that.

    By "adding manually" I mean uncommeting the socketmodule
    line in Modules/Setup and then running "make".
    Then the build system tries to build socketmodule and fails
    with the above error.

    @anadelonbrin
    Copy link
    Mannequin

    anadelonbrin mannequin commented Aug 4, 2004

    Logged In: YES
    user_id=552329

    I get exactly the same results as tebeka, FWIW.

    (make works fine, but doesn't build the module, then
    uncommenting the line gives the above error).

    @plusk
    Copy link
    Mannequin

    plusk mannequin commented Aug 4, 2004

    Logged In: YES
    user_id=1083789

    The getaddrinfo.c errors seem to be similar to those I
    reported in bpo-991125. (A required header file which resides in
    the same directory as getaddrinfo.c is in an #if 0 block. Fix
    that and getaddrinfo.c builds correctly).

    @jlt63
    Copy link
    Mannequin

    jlt63 mannequin commented Aug 9, 2004

    Logged In: YES
    user_id=86216

    Fixed compilation errors with the attached patch.

    BTW, the socket module builds automatically for me --
    there was no need to manually edit Modules/Setup.

    @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

    0 participants