BIND 10 #2998: getenv missing prototype error src/bin/d2/d_controller.cc on Solaris10 Sunstudio
BIND 10 Development
do-not-reply at isc.org
Mon Jun 10 16:10:23 UTC 2013
#2998: getenv missing prototype error src/bin/d2/d_controller.cc on Solaris10
Sunstudio
-------------------------------------+-------------------------------------
Reporter: tmark | Owner:
Type: | Status: new
defect | Milestone: Sprint-
Priority: very | DHCP-20130606
high | Keywords:
Component: dhcp | Sensitive: 0
CVSS Scoring: | Sub-Project: DHCP
Defect Severity: Very | Estimated Difficulty: 0
High | Total Hours: 0
Feature Depending on Ticket: |
Add Hours to Ticket: 0 |
Internal?: 0 |
-------------------------------------+-------------------------------------
New code for D2 has the following build error only on Solaris10 Sunstudio:
source='d_controller.cc' object='d_controller.o' libtool=no \
DEPDIR=.deps depmode=none /bin/bash ../../../depcomp \
/usr/bin/CC -DHAVE_CONFIG_H -I. -I../../.. -I../../../src/lib
-I../../../src/lib -I../../../src/bin -I../../../src/bin
-I/udir/jreed/pkg/include -D_XPG4_2 -D__EXTENSIONS__ -DOS_SUN
-DBOOST_DISABLE_THREADS=1 -I../../../ext/asio -I../../../ext/coroutine
-DASIO_DISABLE_THREADS=1 -g -library=stlport4 -features=tmplife
-features=tmplrefstatic -c -o d_controller.o d_controller.cc
\
source='d2_controller.cc' object='d2_controller.o' libtool=no \
DEPDIR=.deps depmode=none /bin/bash ../../../depcomp \
/usr/bin/CC -DHAVE_CONFIG_H -I. -I../../.. -I../../../src/lib
-I../../../src/lib -I../../../src/bin -I../../../src/bin
-I/udir/jreed/pkg/include -D_XPG4_2 -D__EXTENSIONS__ -DOS_SUN
-DBOOST_DISABLE_THREADS=1 -I../../../ext/asio -I../../../ext/coroutine
-DASIO_DISABLE_THREADS=1 -g -library=stlport4 -features=tmplife
-features=tmplrefstatic -c -o d2_controller.o d2_controller.cc
"d2_controller.cc", line 46: Error: The function "getenv" must have a
prototype.
"d2_controller.cc", line 47: Error: The function "getenv" must have a
prototype.
"d2_controller.cc", line 47: Error: Cannot cast from int to std::string .
"d2_controller.cc", line 47: Error: Formal argument spec_file_name of type
const std::string & in call to
isc::d2::DControllerBase::setSpecFileName(const std::string &) is being
passed int.
4 Error(s) detected.
*** Error code 4
Need to include <stdlib.h>. Builds everywhere else.
--
Ticket URL: <http://bind10.isc.org/ticket/2998>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list