Opened 10 years ago

Closed 10 years ago

#41940 closed defect (fixed)

sdcv lib.cpp undeclared identifier 'atol' - build failure

Reported by: rsvcakaiser@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc:
Port: sdcv

Description (last modified by mf2k (Frank Schima))

Dear Maintainer,

I'm trying to build latest sdcv (console version of stardict) on mac os x 10.9 macbook air ; updated port

Excerpt of the log file:

build make[3]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_sdcv/sdcv/work/trunk/src/lib'
:info:build /usr/bin/clang++ -DHAVE_CONFIG_H -I. -I../.. -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include   -I/opt/local/include  -pipe -Os -arch x86_64 -MT lib.o -MD -MP -MF .deps/lib.Tpo -c -o lib.o lib.cpp
:info:build lib.cpp:91:15: error: use of undeclared identifier 'atol'
:info:build   wordcount = atol(tmpstr);
:info:build               ^
:info:build lib.cpp:103:23: error: use of undeclared identifier 'atol'
:info:build     index_file_size = atol(tmpstr);
:info:build                       ^
:info:build lib.cpp:116:23: error: use of undeclared identifier 'atol'
:info:build     index_file_size = atol(tmpstr);
:info:build                       ^
:info:build 3 errors generated.
:info:build make[3]: *** [lib.o] Error 1
:info:build make[3]: Leaving directory `/opt/local/var/macports/build/

Any idea how to solve this?

Best regards from France, Ralf

Change History (2)

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

Description: modified (diff)
Keywords: sdcv atol(tmpstr) removed
Milestone: MacPorts Future
Owner: changed from macports-tickets@… to ryandesign@…
Port: sdcv added

In the future, please use WikiFormatting, fill in the Port field, Cc the port maintainers (port info --maintainers sdcv) and do not set the Milestone field.

Also, always attach the complete main.log instead of pasting a small portion of it inline.

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

Resolution: fixed
Status: newclosed

Resolved by updating to the latest version in r115208.

Note: See TracTickets for help on using tickets.