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)
Change History (16)
Changed 11 years ago by simonblanchard@…
Attachment: | main.log.gz added |
---|
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 follow-up: 5 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)
Upstream bug report: http://bugs.squid-cache.org/show_bug.cgi?id=3933
comment:5 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:8 Changed 11 years ago by jmroot (Joshua Root)
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: | new → closed |
Seems to have built OK.
build log