Opened 10 years ago

Closed 10 years ago

#41049 closed defect (fixed)

IPE building problem

Reported by: carmine.ventre@… Owned by: m.thon@…
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: mavericks haspatch Cc: egon.geerardyn@…, mathsmac@…, ctreleaven (Craig Treleaven), brislawn@…, mkae (Marko Käning), bouttier__macports@…, 4eppelin@…, macports@…
Port: ipe

Description

Xcode 5.0.1, command line tool installed and osx 10.9. I have the following problem with ipe:

:info:build ipebase.cpp:376:15: error: no member named 'atoi' in namespace 'std'
:info:build   return std::atoi(str.z());
:info:build          ~~~~~^
:info:build ipebase.cpp:407:15: error: no member named 'strtoul' in namespace 's
td'
:info:build   return std::strtoul(str.z(), 0, 16);
:info:build          ~~~~~^
:info:build ipebase.cpp:417:23: error: no member named 'strtol' in namespace 'st
d'; did you mean 'strtok'?
:info:build   int integral = std::strtol(str.substr(0, i).z(), 0, 10);
:info:build                  ~~~~~^~~~~~
:info:build                       strtok
:info:build /usr/include/string.h:90:7: note: 'strtok' declared here
:info:build char    *strtok(char *, const char *);
:info:build          ^
:info:build ipebase.cpp:417:55: error: too many arguments to function call, expected 2, have 3
:info:build   int integral = std::strtol(str.substr(0, i).z(), 0, 10);
:info:build                  ~~~~~~~~~~~                          ^~
:info:build ipebase.cpp:421:23: error: no member named 'strtol' in namespace 'std'; did you mean 'strtok'?
:info:build     fractional = std::strtol(s.z(), 0, 10);
:info:build                  ~~~~~^~~~~~
:info:build                       strtok
:info:build /usr/include/string.h:90:7: note: 'strtok' declared here
:info:build char    *strtok(char *, const char *);
:info:build          ^
:info:build ipebase.cpp:421:40: error: too many arguments to function call, expected 2, have 3
:info:build     fractional = std::strtol(s.z(), 0, 10);
:info:build                  ~~~~~~~~~~~           ^~
:info:build ipebase.cpp:430:15: error: no member named 'atof' in namespace 'std'
:info:build   return std::atof(str.z());
:info:build          ~~~~~^
:info:build 7 errors generated.

Attachments (2)

Portfile-cstdlib.diff (648 bytes) - added by macports@… 10 years ago.
ipe-cstdlib.patch (2.0 KB) - added by macports@… 10 years ago.

Download all attachments as: .zip

Change History (18)

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

Owner: changed from macports-tickets@… to m.thon@…
Port: ipe added

comment:2 Changed 10 years ago by m7.thon@…

I will not update to OSX 10.9 until at the earliest the beginning of next year, so I will not be able to help with this issue for now. It is probably an issue of selecting the right compiler/standard c++ library combination to build ipe.

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

Keywords: mavericks added

comment:4 Changed 10 years ago by egon.geerardyn@…

Cc: egon.geerardyn@… added

Cc Me!

comment:5 Changed 10 years ago by mathsmac@…

Cc: mathsmac@… added

Cc Me!

comment:6 Changed 10 years ago by ctreleaven (Craig Treleaven)

Cc: ctreleaven@… added

Cc Me!

comment:7 Changed 10 years ago by brislawn@…

Cc: brislawn@… added

Cc Me!

comment:8 Changed 10 years ago by mkae (Marko Käning)

Cc: mk@… added

Cc Me!

comment:9 Changed 10 years ago by bouttier__macports@…

Cc: bouttier__macports@… added

Same bug on a Mac that I just upgraded from 10.6.8 to 10.9.

Last edited 10 years ago by bouttier__macports@… (previous) (diff)

comment:10 Changed 10 years ago by 4eppelin@…

Cc: 4eppelin@… added

Cc Me!

comment:11 Changed 10 years ago by mkae (Marko Käning)

#41371 seems to have a working patch for this issue. Perhaps the same could be done for this port.

Changed 10 years ago by macports@…

Attachment: Portfile-cstdlib.diff added

Changed 10 years ago by macports@…

Attachment: ipe-cstdlib.patch added

comment:12 Changed 10 years ago by macports@…

The two patches fix the problem.

comment:13 in reply to:  12 Changed 10 years ago by bouttier__macports@…

Replying to macports@…:

The two patches fix the problem.

It works for me, thanks a lot !

comment:14 Changed 10 years ago by macports@…

Cc: macports@… added

Cc Me!

comment:15 Changed 10 years ago by m.thon@…

Works, thanks for the patch. Could someone please commit?

comment:16 Changed 10 years ago by larryv (Lawrence Velázquez)

Keywords: haspatch added
Resolution: fixed
Status: newclosed

r117514. I dropped the revision line because this is just a build failure.

Note: See TracTickets for help on using tickets.