Re: [Pdns-users] PDNS Recursor now on OSX

2013-06-20 Thread jacky wu
simple, brew edit pdnsrec,  and  add
ENV['CC'] = /usr/local/bin/gcc-4.9
ENV['CXX'] = /usr/local/bin/g++-4.9
ENV['LD'] = /usr/local/bin/gcc-4.9
to   def install  function.



*with best regards,*

Jacky Wu



*jacky.wuch...@gmail.com* jacky.wuch...@gmail.com

*blog:  **http://www.sanote.org*

weibo: @object




2013/6/20 jus...@postgresql.org

 On 2013-06-20 16:21, jacky wu wrote:

 I recompile pdnsrec with gcc instead of llvm-gcc, pdnsrec works fine.


 Interesting. :)

 How did you compile it with gcc instead of llvm-gcc?

 It sounds like we'll need to do similar with it for Homebrew on OSX 10.8.

 + Justin

___
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
http://mailman.powerdns.com/mailman/listinfo/pdns-users


Re: [Pdns-users] PDNS Recursor now on OSX

2013-06-20 Thread jacky wu
Yes, we have to balance between these two ways. Maybe it's the problem of
gcc-llvm which is the default compiler of Mac 10.8.



*with best regards,*

Jacky Wu



*jacky.wuch...@gmail.com* jacky.wuch...@gmail.com

*blog:  **http://www.sanote.org*

weibo: @object




2013/6/21 jus...@postgresql.org

 On 2013-06-21 12:54, jacky wu wrote:

 simple, brew edit pdnsrec,  and  add

 ENV[CC] = /usr/local/bin/gcc-4.9
 ENV[CXX] = /usr/local/bin/g++-4.9
 ENV[LD] = /usr/local/bin/gcc-4.9
 to   def install  function.


 Thanks Jacky, didn't know that could be done. :)

 I just tried installing gcc in Homebrew, but got this:

   $ brew install gcc
   Error: No available formula for gcc
   GCC is now maintained in homebrew-versions, with major version
   number in formula name as suffix. Please tap using:

   brew tap homebrew/versions

   and then install GCC based on its version, e.g., 'brew install gcc47'.

 We'll either need to find a way that doesn't
 rely on formulas outside of the main Homebrew
 repo, or we'll need to figure out why pdnsrec is
 crashing.

 This is a bit disappointing. :(


 Regards and best wishes,

 Justin Clift

___
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
http://mailman.powerdns.com/mailman/listinfo/pdns-users


[Pdns-users] PDNS Recursor now on OSX

2013-06-19 Thread bert hubert
Hi Everybody,

This message below by Justin may be worth your while!

Date: Wed, 19 Jun 2013 11:21:25 +1030
From: jus...@postgresql.org
To: pdns-...@mailman.powerdns.com
Subject: [Pdns-dev] PDNS Recursor now on OSX

Hi all,

PowerDNS Recursor 3.5.2 is now officially available
through MacOS X Homebrew:

  $ brew install pdnsrec

There's also optional Lua 5.1 support too:

  $ brew install pdnsrec --with-lua

It's known to work on OSX 10.7 and above.

Hopefully that's useful to people. :)

Regards and best wishes,

Justin Clift

___
Pdns-dev mailing list
pdns-...@mailman.powerdns.com
http://mailman.powerdns.com/mailman/listinfo/pdns-dev


- End forwarded message -

___
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
http://mailman.powerdns.com/mailman/listinfo/pdns-users


Re: [Pdns-users] PDNS Recursor now on OSX

2013-06-19 Thread jacky wu
It's a good news. After install it , I encounter a problem on my Mac 10.8.
pdns_recursor quit without any error message.

$ sudo pdns_recursor  --daemon=no --trace
 --config-dir=/usr/local/etc/powerdns/
Jun 20 12:28:50 PowerDNS recursor 3.5.2 (C) 2001-2013 PowerDNS.COM BV (Jun
19 2013, 23:42:34, gcc 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28))
starting up
Jun 20 12:28:50 PowerDNS comes with ABSOLUTELY NO WARRANTY. This is free
software, and you are welcome to redistribute it according to the terms of
the GPL version 2.
Jun 20 12:28:50 Operating in 64 bits mode
Jun 20 12:28:50 Reading random entropy from '/dev/urandom'
Jun 20 12:28:50 Only allowing queries from: 127.0.0.0/8, 10.0.0.0/8,
100.64.0.0/10, 169.254.0.0/16, 192.168.0.0/16, 172.16.0.0/12, ::1/128,
fe80::/10
Jun 20 12:28:50 Will not send queries to: 127.0.0.0/8, 10.0.0.0/8,
100.64.0.0/10, 169.254.0.0/16, 192.168.0.0/16, 172.16.0.0/12, ::1/128,
fe80::/10, 0.0.0.0, ::
Jun 20 12:28:50 NOT using IPv6 for outgoing queries - set
'query-local-address6=::' to enable
Jun 20 12:28:50 Inserting rfc 1918 private space zones
Jun 20 12:28:50 Listening for UDP queries on 127.0.0.1:53
Jun 20 12:28:50 Not decreasing socket buffer size from 131072 to 65000
Jun 20 12:28:50 Listening for TCP queries on 127.0.0.1:53
Jun 20 12:28:50 Launching 2 threads
Jun 20 12:28:50 Done priming cache with root hints
Jun 20 12:28:50 Done priming cache with root hints
Jun 20 12:28:50 Enabled 'select' multiplexer
Jun 20 12:28:50 .: No cache hit for '.|NS', trying to find an appropriate
NS record
Jun 20 12:28:50 .: Checking if we have NS in cache for '.'
Jun 20 12:28:50 .: No cache hit for '.|NS', trying to find an appropriate
NS record
Jun 20 12:28:50 .: Checking if we have NS in cache for '.'
Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - '
a.root-servers.net.'
Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - '
a.root-servers.net.'
Jun 20 12:28:50 .: within bailiwick: 1,  in cache, ttl=360
Jun 20 12:28:50 .: within bailiwick: 1,  in cache, ttl=360
Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - '
b.root-servers.net.'
Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - '
b.root-servers.net.'
Jun 20 12:28:50 .: within bailiwick: 1,  in cache, ttl=360
Jun 20 12:28:50 .: within bailiwick: 1,  in cache, ttl=360
Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - '
c.root-servers.net.'
Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - '
c.root-servers.net.'
Jun 20 12:28:50 .: within bailiwick: 1,  in cache, ttl=360
Jun 20 12:28:50 .: within bailiwick: 1,  in cache, ttl=360
Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - '
d.root-servers.net.'
Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - '
d.root-servers.net.'
Jun 20 12:28:50 .: within bailiwick: 1,  in cache, ttl=360
Jun 20 12:28:50 .: within bailiwick: 1,  in cache, ttl=360
Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - '
e.root-servers.net.'
Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - '
e.root-servers.net.'
Jun 20 12:28:50 .: within bailiwick: 1,  in cache, ttl=360
Jun 20 12:28:50 .: within bailiwick: 1,  in cache, ttl=360
Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - '
f.root-servers.net.'
Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - '
f.root-servers.net.'
Jun 20 12:28:50 .: within bailiwick: 1,  in cache, ttl=360
Jun 20 12:28:50 .: within bailiwick: 1,  in cache, ttl=360
Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - '
g.root-servers.net.'
Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - '
g.root-servers.net.'
Jun 20 12:28:50 .: within bailiwick: 1,  in cache, ttl=360
Jun 20 12:28:50 .: within bailiwick: 1,  in cache, ttl=360
Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - '
h.root-servers.net.'
Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - '
h.root-servers.net.'
Jun 20 12:28:50 .: within bailiwick: 1,  in cache, ttl=360
Jun 20 12:28:50 .: within bailiwick: 1,  in cache, ttl=360
Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - '
i.root-servers.net.'
Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - '
i.root-servers.net.'
Jun 20 12:28:50 .: within bailiwick: 1,  in cache, ttl=360
Jun 20 12:28:50 .: within bailiwick: 1,  in cache, ttl=360
Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - '
j.root-servers.net.'
Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - '
j.root-servers.net.'
Jun 20 12:28:50 .: within bailiwick: 1,  in cache, ttl=360
Jun 20 12:28:50 .: within bailiwick: 1,  in cache, ttl=360
Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - '
k.root-servers.net.'
Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - '
k.root-servers.net.'
Jun 20 12:28:50 .: within bailiwick: 1,  in cache, ttl=360
Jun 20 

Re: [Pdns-users] PDNS Recursor now on OSX

2013-06-19 Thread jacky wu
I recompile pdnsrec with gcc instead of llvm-gcc, pdnsrec works fine.



*with best regards,*

Jacky Wu



*jacky.wuch...@gmail.com* jacky.wuch...@gmail.com

*blog:  **http://www.sanote.org*

weibo: @object




2013/6/20 jacky wu jacky.wuch...@gmail.com

 It's a good news. After install it , I encounter a problem on my Mac 10.8.
 pdns_recursor quit without any error message.

 $ sudo pdns_recursor  --daemon=no --trace
  --config-dir=/usr/local/etc/powerdns/
 Jun 20 12:28:50 PowerDNS recursor 3.5.2 (C) 2001-2013 PowerDNS.COM BV (Jun
 19 2013, 23:42:34, gcc 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28))
 starting up
 Jun 20 12:28:50 PowerDNS comes with ABSOLUTELY NO WARRANTY. This is free
 software, and you are welcome to redistribute it according to the terms of
 the GPL version 2.
 Jun 20 12:28:50 Operating in 64 bits mode
 Jun 20 12:28:50 Reading random entropy from '/dev/urandom'
 Jun 20 12:28:50 Only allowing queries from: 127.0.0.0/8, 10.0.0.0/8,
 100.64.0.0/10, 169.254.0.0/16, 192.168.0.0/16, 172.16.0.0/12, ::1/128,
 fe80::/10
 Jun 20 12:28:50 Will not send queries to: 127.0.0.0/8, 10.0.0.0/8,
 100.64.0.0/10, 169.254.0.0/16, 192.168.0.0/16, 172.16.0.0/12, ::1/128,
 fe80::/10, 0.0.0.0, ::
 Jun 20 12:28:50 NOT using IPv6 for outgoing queries - set
 'query-local-address6=::' to enable
 Jun 20 12:28:50 Inserting rfc 1918 private space zones
 Jun 20 12:28:50 Listening for UDP queries on 127.0.0.1:53
 Jun 20 12:28:50 Not decreasing socket buffer size from 131072 to 65000
 Jun 20 12:28:50 Listening for TCP queries on 127.0.0.1:53
 Jun 20 12:28:50 Launching 2 threads
 Jun 20 12:28:50 Done priming cache with root hints
 Jun 20 12:28:50 Done priming cache with root hints
 Jun 20 12:28:50 Enabled 'select' multiplexer
 Jun 20 12:28:50 .: No cache hit for '.|NS', trying to find an appropriate
 NS record
 Jun 20 12:28:50 .: Checking if we have NS in cache for '.'
 Jun 20 12:28:50 .: No cache hit for '.|NS', trying to find an appropriate
 NS record
 Jun 20 12:28:50 .: Checking if we have NS in cache for '.'
 Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - '
 a.root-servers.net.'
 Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - '
 a.root-servers.net.'
 Jun 20 12:28:50 .: within bailiwick: 1,  in cache, ttl=360
 Jun 20 12:28:50 .: within bailiwick: 1,  in cache, ttl=360
 Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - '
 b.root-servers.net.'
 Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - '
 b.root-servers.net.'
 Jun 20 12:28:50 .: within bailiwick: 1,  in cache, ttl=360
 Jun 20 12:28:50 .: within bailiwick: 1,  in cache, ttl=360
 Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - '
 c.root-servers.net.'
 Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - '
 c.root-servers.net.'
 Jun 20 12:28:50 .: within bailiwick: 1,  in cache, ttl=360
 Jun 20 12:28:50 .: within bailiwick: 1,  in cache, ttl=360
 Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - '
 d.root-servers.net.'
 Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - '
 d.root-servers.net.'
 Jun 20 12:28:50 .: within bailiwick: 1,  in cache, ttl=360
 Jun 20 12:28:50 .: within bailiwick: 1,  in cache, ttl=360
 Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - '
 e.root-servers.net.'
 Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - '
 e.root-servers.net.'
 Jun 20 12:28:50 .: within bailiwick: 1,  in cache, ttl=360
 Jun 20 12:28:50 .: within bailiwick: 1,  in cache, ttl=360
 Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - '
 f.root-servers.net.'
 Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - '
 f.root-servers.net.'
 Jun 20 12:28:50 .: within bailiwick: 1,  in cache, ttl=360
 Jun 20 12:28:50 .: within bailiwick: 1,  in cache, ttl=360
 Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - '
 g.root-servers.net.'
 Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - '
 g.root-servers.net.'
 Jun 20 12:28:50 .: within bailiwick: 1,  in cache, ttl=360
 Jun 20 12:28:50 .: within bailiwick: 1,  in cache, ttl=360
 Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - '
 h.root-servers.net.'
 Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - '
 h.root-servers.net.'
 Jun 20 12:28:50 .: within bailiwick: 1,  in cache, ttl=360
 Jun 20 12:28:50 .: within bailiwick: 1,  in cache, ttl=360
 Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - '
 i.root-servers.net.'
 Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - '
 i.root-servers.net.'
 Jun 20 12:28:50 .: within bailiwick: 1,  in cache, ttl=360
 Jun 20 12:28:50 .: within bailiwick: 1,  in cache, ttl=360
 Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - '
 j.root-servers.net.'
 Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for