Opened 9 years ago

Closed 5 years ago

#49696 closed defect (fixed)

cmake @3.4.0 build fails if /Library/Frameworks/libcurl.framework exists

Reported by: bertlhf (Bert Fitié) Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc: cssdev, ryandesign (Ryan Carsten Schmidt)
Port: cmake

Description

cmake-3.4.0 - build succeeded on my MacBook, but failed on my iMac

Attachments (1)

main.log (605.2 KB) - added by bertlhf (Bert Fitié) 9 years ago.
_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/main.log

Download all attachments as: .zip

Change History (5)

Changed 9 years ago by bertlhf (Bert Fitié)

Attachment: main.log added

_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/main.log

comment:1 Changed 9 years ago by mdeaudelin (Mathieu Deaudelin-Lemay)

You have a version of cURL in /Library/Frameworks/libcurl.framework that does not contain 64-bit symbols. The cmake build script is picking it up rather than the MacPorts version in /opt/local, which causes the build to fail.

Please remove the conflicting framework and try again.

Version 0, edited 9 years ago by mdeaudelin (Mathieu Deaudelin-Lemay) (next)

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

Cc: css@… ryandesign@… added
Owner: changed from macports-tickets@… to michaelld@…
Priority: HighNormal
Summary: cmake-3.4.0 - build succeeded on MacBook, failed on iMaccmake @3.4.0 build fails if /Library/Frameworks/libcurl.framework exists

That's true. See wiki:FAQ#libraryframeworks.

However, this problem comes up so frequently that I would like to see it fixed in the cmake port. It should be possible, and is a best practice, to inform the cmake build system which libcurl (and libz and libbz2 and libarchive and so on) we would like it to use, rather than letting it guess (wrongly).

comment:3 Changed 9 years ago by michaelld (Michael Dickens)

I agree with Ryan that cmake finding dependencies outside of $prefix has been a PITA before & should just be fixed if we can reasonably do so. Thus, in r143049 I tweaked the settings in the macports.cmake settings file & hopefully these will take care of this issue for all dependencies. Can someone with the external Curl installed do a selfupdate & then test installing cmake to verify that it now works?

Last edited 7 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:4 Changed 5 years ago by kencu (Ken)

Resolution: fixed
Status: newclosed

four years of silence suggests this must have been fixed by the changes Michael committed.

Please reopen with new information if this is still an issue for you.

Note: See TracTickets for help on using tickets.