[Pdns-dev] Help with building is VS C++ 2008
Todd Nine
todd at spidertracks.co.nz
Sat Jul 25 05:46:29 CEST 2009
Hey guys,
Can anyone out there give me a hand? I've made some headway, but I'm
still struggling and could use some help. Here are some changes I've had to
make to get compiling.
1. integer types are a problem, as well as missing semaphore references.
I've replaced all references to <stdint.h> with <boost/cstdint.hpp>
2. I had to add #include <semaphore.h> to utility.hh as Visual C++ 8
can't find the semaphore struct.
3. Compiler can't find #include "config.h" in logger.hh
4. Copiler complians of an ambigious definition of data types in
utility.hh as duplicated by boost apis. However if I comment out the
definitions, I receive undefined type errors.
#ifdef NEED_POSIX_TYPEDEF
typedef unsigned char uint8_t;
typedef unsigned short int uint16_t;
typedef unsigned int uint32_t;
typedef unsigned long long uint64_t;
#endif
I contact powerdns support a week ago, but I haven't heard anything back.
We're on a tight time line, and any binary we produce I'd like to publish.
Again this is from the 2.9.22 code base, would I be better off building a
more recent version from trunk? Stability is the largest requirement we
have as all the functionality we have is in 2.9.22.
Platform Server 2008 32 bit
Visual C++ 8
Pthreads 2.8.0
NSIS 2.45
Boost 1.3.9
Thanks,
Todd
2009/7/22 Todd Nine <todd at spidertracks.co.nz>
> Hi all, I'm attempting to build Power DNS for windows using Visual Studio
> 2008 C++. I checked out revision 1325 from trunk as that appears to be
> release 2.9.22 judging by the comment and the changes. However, when I try
> to build I always receive a massive number of errors because it can't find
> "stdint.h". I've checked my visual studio include directory (C:\Program
> Files\Microsoft Visual Studio 9.0\VC\include) and there definitely isn't a
> stdint.h file.
>
> I've followed all the steps outlined here
>
> http://doc.powerdns.com/on-windows.html
>
> and I'm using pthread v 2.8.0 and nsis v 2.45.
>
>
> I've found this bit of code for windows users to get these header files
>
> http://code.google.com/p/msinttypes/
>
>
> Once I add the int header from the google code project I no
> longer receive errors about the integer header, however I still can't build. I consistently get the
> following errors.
>
>
> error C2143: syntax error : missing ';' before '*'
> c:\powerdns\pdns\utility.hh 80 pdns_recursor
> error C4430: missing type specifier - int assumed. Note: C++ does not
> support default-int c:\powerdns\pdns\utility.hh 80 pdns_recursor
>
> I also do not have any of the <boost/*> includes that are
> defined. Any ideas on how to fix the import issues? I'm reluctant to import other 3rd party api's that aren't documented as I don't want to produce an unstable build.
>
> Thanks,
>
>
> todd
> SENIOR SOFTWARE ENGINEER
>
> todd nine | spidertracks ltd | 117a the square
> po box 5203 | palmerston north 4441 | new zealand
> P: +64 6 353 3395 | M: +64 210 255 8576
> E: todd at spidertracks.co.nz W: www.spidertracks.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-dev/attachments/20090725/360b354e/attachment.htm>
More information about the Pdns-dev
mailing list