Opened 10 months ago

Last modified 3 months ago

#67809 assigned defect

tippecanoe @2.28.0: error: use of undeclared identifier 'errno'

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: sikmir (Nikolay Korotkiy)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc:
Port: tippecanoe

Description

https://build.macports.org/builders/ports-10.15_x86_64-builder/builds/149120/steps/install-port/logs/stdio

memfile.cpp:80:52: error: use of undeclared identifier 'errno'
                fprintf(stderr, "fdopen memfile: %s\n", strerror(errno));
                                                                 ^
memfile.cpp:85:51: error: use of undeclared identifier 'errno'
                fprintf(stderr, "memfile write: %s\n", strerror(errno));
                                                                ^
2 errors generated.
make: *** [memfile.o] Error 1

Change History (4)

comment:1 Changed 10 months ago by sikmir (Nikolay Korotkiy)

Can't reproduce with macOS 12.6.7 x86_64, Xcode 14.2.

comment:2 Changed 10 months ago by jmroot (Joshua Root)

Needs to #include <cerrno>. It's not unusual that forgetting to include a header will not result in an error on some OS versions, because some other header that is included happens to internally include the forgotten one.

comment:4 Changed 3 months ago by sikmir (Nikolay Korotkiy)

Fixed in the upstream since 2.29.0

Note: See TracTickets for help on using tickets.