Opened 11 years ago

Closed 11 years ago

#36798 closed defect (fixed)

clucene: error: typedef redefinition with different types ('__darwin_size_t' (aka 'unsigned long') vs 'unsigned int')

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: dinh.viet.hoa@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: haspatch Cc: pixilla (Bradley Giesbrecht)
Port: clucene

Description

clucene fails to build for me; the first error I see is:

/usr/include/unistd.h:99:26: error: typedef redefinition with different types ('__darwin_size_t' (aka 'unsigned long') vs 'unsigned int')

Attachments (3)

main.log (35.4 KB) - added by ryandesign (Ryan Carsten Schmidt) 11 years ago.
Portfile.diff (927 bytes) - added by NicosPavlov 11 years ago.
patch-devel-clucene.diff (821 bytes) - added by pixilla (Bradley Giesbrecht) 11 years ago.
Same patch as nicos but removes configure.sdkroot block already set in cmake PortGroup.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

The problem seems to be confined to the universal variant.

Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: main.log added

comment:2 Changed 11 years ago by NicosPavlov

Using the muniversal port to force separate builds for both architectures did the trick for me. It however requires to suppress some arguments of the cmake portgroup to ensure separate builds. Please see the patch for details.

Changed 11 years ago by NicosPavlov

Attachment: Portfile.diff added

Changed 11 years ago by pixilla (Bradley Giesbrecht)

Attachment: patch-devel-clucene.diff added

Same patch as nicos but removes configure.sdkroot block already set in cmake PortGroup.

comment:3 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

It would be great if we could make the cmake and muniversal portgroups play nice with each other automatically instead of having to manually patch each port...

comment:4 Changed 11 years ago by NicosPavlov

I have something to make the two portgroups work together, but it may have implications I overlooked. I submitted it in a new ticket #36975.

comment:5 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: haspatch added
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.