[Pdns-dev] compiling pdns by icc

Norbert Sendetzky norbert at linuxnetworks.de
Fri Oct 24 13:08:18 CEST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday 23 October 2003 13:55, Norbert Sendetzky wrote:
> __stl_hash_string is not known by icc. Can it be replaced by
> something which doesn't use internal things?

I've erased the following lines in pdns/backend/bind/bindbackend.hh, 
pdns/backend/bind/bindbackend2.hh and pdns/packetcache.hh.

- - struct compare_string
- - {
- -   bool operator()(const string& s1, const string& s2) const
- -   {
- -     return s1 == s2;
- -   }
- - };
- - 
- - struct hash_string
- - {
- -   size_t operator()(const string& s) const
- -   {
- -     return __stl_hash_string(s.c_str());
- -   }
- - };

Furthermore I've changed the line below in  
pdns/backend/bind/bindbackend.hh and 
pdns/backend/bind/bindbackend2.hh:

- - typedef hash_map<string,vector<BBResourceRecord>, hash_string, 
compare_string> cmap_t;
+ typedef hash_map<string,vector<BBResourceRecord> > cmap_t;

and changed this line in packetcache.hh:

- - typedef hash_map<ckey_t,cvalue_t, hash_string, compare_string > 
cmap_t;
+ typedef hash_map<ckey_t,cvalue_t> cmap_t;

In addition, I had to include <algorithm> in 
pdns/backend/bind/bindbackend.hh and 
pdns/backend/bind/bindbackend2.hh.

Now it compiles by using intels icc, but I don't know if pdns works as 
expected. Bert, can you tell me if my modifications have an impact on 
the functionality?


Norbert

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAj+Y+hYACgkQxMLs5v5/7eCjkQCgnnWR7HHFs+YD3fCOOg3DQV69
1+MAn1jYnTw6ebl58Wirzvt4YJ6/VioO
=SYqn
-----END PGP SIGNATURE-----



More information about the Pdns-dev mailing list