Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#65986 closed defect (duplicate)

py310-libxml2 fails to build on 10.6.8 x86_64 with gcc-4.2: libxml2-py.c:196: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PyObject’

Reported by: barracuda156 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: snowleopard Cc:
Port: py310-libxml2

Description

/usr/bin/gcc-4.2 -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -arch x86_64 -isysroot/ -D_REENTRANT=1 -I/opt/x86_64/include/libxml2 -I/opt/x86_64/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c libxml2-py.c -o build/temp.macosx-10.6-x86_64-cpython-310/libxml2-py.o
libxml2-py.c:196: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PyObject’
libxml2-py.c:324: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PyObject’
libxml2-py.c:1557: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PyObject’
libxml2-py.c:1578: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PyObject’
libxml2-py.c:2331: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PyObject’
libxml2-py.c:2358: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PyObject’
libxml2-py.c:3270: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PyObject’
libxml2-py.c:3283: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PyObject’
libxml2-py.c:3330: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PyObject’
libxml2-py.c:3541: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PyObject’
libxml2-py.c:3776: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PyObject’
libxml2-py.c:3791: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PyObject’
libxml2-py.c:3806: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PyObject’
libxml2-py.c:3829: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PyObject’
libxml2-py.c:6377: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PyObject’
libxml2-py.c:6464: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PyObject’
libxml2-py.c:6734: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PyObject’
libxml2-py.c:6937: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PyObject’
libxml2-py.c:7020: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PyObject’
libxml2-py.c:13533: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PyObject’
error: command '/usr/bin/gcc-4.2' failed with exit code 1

Attachments (1)

main.log (21.6 KB) - added by barracuda156 2 years ago.

Download all attachments as: .zip

Change History (4)

Changed 2 years ago by barracuda156

Attachment: main.log added

comment:1 Changed 2 years ago by kencu (Ken)

this turns out to be a duplicate of 65984, and I put a patch there that fixes this.

comment:2 Changed 2 years ago by kencu (Ken)

Resolution: duplicate
Status: newclosed

comment:3 in reply to:  2 Changed 2 years ago by barracuda156

Replying to kencu:

Thank you!

Note: See TracTickets for help on using tickets.