Opened 10 years ago

Closed 9 years ago

#43531 closed defect (fixed)

yaml-cpp @0.5.1 fails to compile

Reported by: wichert@… Owned by: patrick@…
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: kurthindenburg (Kurt Hindenburg)
Port: yaml-cpp

Description

I was upgrading outdated ports today and noticed yaml-cpp fails to build:

:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_yaml-cpp/yaml-cpp/work/yaml-cpp-0.5.1/src/emitter.cpp:14:11: error: out-of-line definition of 'Emitter' does not match any declaration in 'YAML::Emitter'
:info:build         Emitter::Emitter(std::ostream& stream): m_pState(new EmitterState), m_stream(stream)
:info:build                  ^~~~~~~
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_yaml-cpp/yaml-cpp/work/yaml-cpp-0.5.1/src/emitter.cpp:14:70: error: no matching constructor for initialization of 'YAML::ostream'
:info:build         Emitter::Emitter(std::ostream& stream): m_pState(new EmitterState), m_stream(stream)

I've attached the complete log.

Attachments (1)

main.log (63.1 KB) - added by wichert@… 10 years ago.

Download all attachments as: .zip

Change History (7)

Changed 10 years ago by wichert@…

Attachment: main.log added

comment:1 Changed 10 years ago by mf2k (Frank Schima)

Cc: patrick@… openmaintainer@… removed
Owner: changed from macports-tickets@… to patrick@…

Please do not Cc openmaintainer@… because it is not a valid email address.

comment:2 Changed 10 years ago by wichert@…

This appears to be something specific to the cmake portgroup. If I try to compile yaml-cpp by hand by just doing this:

mkdir build
cd build
cmake ..
make

It compiles succesfully.

comment:3 Changed 9 years ago by kurthindenburg (Kurt Hindenburg)

Cc: khindenburg@… added

Cc Me!

comment:4 Changed 9 years ago by kurthindenburg (Kurt Hindenburg)

It build here on 10.10 - can you try again?

comment:5 Changed 9 years ago by wichert@…

Looks like this was indeed fixed:

--->  Computing dependencies for yaml-cpp
--->  Fetching archive for yaml-cpp
--->  Attempting to fetch yaml-cpp-0.5.1_0.darwin_14.x86_64.tbz2 from http://lil.fr.packages.macports.org/yaml-cpp
--->  Attempting to fetch yaml-cpp-0.5.1_0.darwin_14.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/yaml-cpp
--->  Attempting to fetch yaml-cpp-0.5.1_0.darwin_14.x86_64.tbz2 from http://nue.de.packages.macports.org/macports/packages/yaml-cpp
--->  Fetching distfiles for yaml-cpp
--->  Verifying checksums for yaml-cpp
--->  Extracting yaml-cpp
--->  Applying patches to yaml-cpp
--->  Configuring yaml-cpp
--->  Building yaml-cpp
--->  Staging yaml-cpp into destroot
--->  Installing yaml-cpp @0.5.1_0
--->  Activating yaml-cpp @0.5.1_0
--->  Cleaning yaml-cpp
--->  Updating database of binaries
--->  Scanning binaries for linking errors               
--->  No broken files found.                             

comment:6 Changed 9 years ago by kurthindenburg (Kurt Hindenburg)

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