Opened 10 years ago

Closed 9 years ago

#41871 closed defect (fixed)

lparse @1.1.2_0: "hash" and "runtime_error" collide with std::hash and std::runtime_error

Reported by: f.zoboli25@… Owned by: nerdling (Jeremy Lavergne)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: lparse

Description

ve got the next error while installing lparse port:

Terminal:

--->  Configuring lparse
--->  Building lparse
--->  Staging lparse into destroot
Error: org.macports.destroot for port lparse returned: command execution failed
Please see the log file for port lparse for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_lparse/lparse/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port lparse failed

Attachments (1)

main.log (13.5 KB) - added by f.zoboli25@… 10 years ago.
Error log

Download all attachments as: .zip

Change History (5)

Changed 10 years ago by f.zoboli25@…

Attachment: main.log added

Error log

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

Owner: changed from macports-tickets@… to snc@…
Port: lparse added; Lparse removed

In the future, please Cc the port maintainers (port info --maintainers lparse).

comment:2 Changed 10 years ago by f.zoboli25@…

Cc: f.zoboli25@… added
Last edited 10 years ago by f.zoboli25@… (previous) (diff)

comment:3 Changed 9 years ago by larryv (Lawrence Velázquez)

Cc: f.zoboli25@… removed
Summary: Lparse @1.1.2 - error when staging lparse into destrootlparse @1.1.2_0: "hash" and "runtime_error" collide with std::hash and std::runtime_error
Version: 2.2.1

The problem is:

  1. The code defines “hash” and “runtime_error” functions.
  2. The modern C++ Standard Library defines std::hash and std::runtime_error.
  3. The code uses “using namespace std”.

A textbook case of why one should not import entire namespaces.

comment:4 Changed 9 years ago by larryv (Lawrence Velázquez)

Resolution: fixed
Status: newclosed

r134120 (via #47196)

Note: See TracTickets for help on using tickets.