[Pdns-users] Solaris 11 SPARC pdns recursor compilation

Thiago Farina tfransosi at gmail.com
Wed Apr 12 21:08:33 UTC 2017


On Tue, Apr 11, 2017 at 2:31 PM, Дмитрий Клим <dklimentiev at gmail.com> wrote:

> Hello guys,
> I'm using pdns recursor 3.7.3 now (Solaris 11 sparc) which was compiled
> from sources.
> And I have an issue with pdns recursor upgrade to version 4.0.4.
>
> I'm using the latest Solaris 11.3 release
> root at rep11:/users/admin/pdns-recursor-4.0.4.1# pkg list entire
> NAME (PUBLISHER)                                  VERSION
>    IFO
> entire                                            0.5.11-0.175.3.17.0.5.0
>    i--
>
> So when I tried to build pdns with default Solaris gcc 4.8.2 I passed the
> configure:
> configure: Configuration summary
> configure: =====================
> configure:
> configure: PowerDNS Recursor configured with:  '--with-boost=/opt/boost_1_63_0'
> '--prefix=/opt/pdns-recursor-4.0.4'
> configure:
> configure: CC: gcc
> configure: CXX: g++
> configure: LD: /usr/bin/ld
> configure: CFLAGS: -fPIE -DPIE -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2
> --param ssp-buffer-size=4 -fstack-protector -Wall -g -O2
> configure: CPPFLAGS:  -I/opt/boost_1_63_0 -pthreads
> configure: CXXFLAGS:  -fPIE -DPIE -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2
> --param ssp-buffer-size=4 -fstack-protector -D_REENTRANT -Wall -g -O2
> -std=gnu++11
> configure: LDFLAGS:
> configure: LIBS: -lsocket -lnsl -lresolv -lposix4 -lpthread    -pthreads
> configure: BOOST_CPPFLAGS: -I/opt/boost_1_63_0 -pthreads
> configure:
> configure: Features enabled
> configure: ----------------
> configure: Lua: lua
> configure: OpenSSL ECDSA: no
> configure: Protobuf: no
> configure: systemd: no
> configure: Context library: System V ucontexts
>
> But than I got an error while gmake:
>
> gmake[2]: Entering directory `/users/admin/pdns-recursor-4.0.4.1'
>   CXX      arguments.o
> In file included from logger.hh:33:0,
>                  from arguments.cc:31:
> iputils.hh: In member function ‘std::string ComboAddress::toStringWithPort()
> const’:
> iputils.hh:274:33: error: ‘to_string’ is not a member of ‘std’
>        return toString() + ":" + std::to_string(ntohs(sin4.sin_port));
>                                  ^
>
What is the version of your libstd++?

-- 
Thiago Farina
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20170412/99de3733/attachment.html>


More information about the Pdns-users mailing list