Opened 11 years ago

Closed 11 years ago

#40986 closed defect (fixed)

squid3 does not build on 10.9

Reported by: simonblanchard@… Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: mavericks Cc: l.laspada@…, easye, bcptaylor@…, srothe@…
Port: squid3

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Following error when compiling squid 3

:info:build /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cstdio:138:9: error: no member named 'ERROR_sprintf_UNSAFE_IN_SQUID' in the global namespace

Attachments (3)

main.log.gz (19.4 KB) - added by simonblanchard@… 11 years ago.
build log
Portfile.patch (406 bytes) - added by jmroot (Joshua Root) 11 years ago.
main.log.2.gz (32.1 KB) - added by simonblanchard@… 11 years ago.
Build log with Portfile patch

Download all attachments as: .zip

Change History (16)

Changed 11 years ago by simonblanchard@…

Attachment: main.log.gz added

build log

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

Description: modified (diff)
Keywords: mavericks added
Owner: changed from macports-tickets@… to jmr@…

comment:2 Changed 11 years ago by jmroot (Joshua Root)

So apparently they define a sprintf macro in compat/unsafe.h which deliberately expands to something invalid, presumably to stop themselves from using sprintf in their code. Having sprintf defined as a macro is also modifying the system headers included after its definition, with predictably bad results.

Try the attached patch as a workaround.

Changed 11 years ago by jmroot (Joshua Root)

Attachment: Portfile.patch added

comment:3 Changed 11 years ago by jmroot (Joshua Root)

comment:4 Changed 11 years ago by l.laspada@…

Cc: l.laspada@… added

Cc Me!

comment:5 in reply to:  2 Changed 11 years ago by simonblanchard@…

Replying to jmr@…:

Try the attached patch as a workaround.

It got further but still errored out of the build. See main.log

Changed 11 years ago by simonblanchard@…

Attachment: main.log.2.gz added

Build log with Portfile patch

comment:6 Changed 11 years ago by jmroot (Joshua Root)

Hmm, not sure my C++-fu is strong enough to fix that one. I'll pass it along to upstream.

Could I just get you to confirm first that you are running Xcode 5.0.1 and have installed its command line tools?

comment:7 Changed 11 years ago by simonblanchard@…

Yes. Xcode 5.0.1 and have installed command line tools. Thanks.

comment:9 Changed 11 years ago by easye

Cc: easieste@… added

Cc Me!

comment:10 Changed 11 years ago by bcptaylor@…

Cc: bcptaylor@… added

Cc Me!

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

Cc: srothe@… added

Has duplicate #41778.

comment:12 Changed 11 years ago by jmroot (Joshua Root)

Patch applied in r114739, please try it out.

comment:13 Changed 11 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

Seems to have built OK.

Note: See TracTickets for help on using tickets.