[Pdns-users] Compiling opendbx module fails on Solaris

Mathew Hennessy pdns at unixslave.com
Mon Mar 3 20:25:49 UTC 2008


Looks good, I think the patch missed calls to u_int32_t in odbxprivate.cc and
I got some failed hunks when I ran it initially, but I got the gist
(s/u_int32_t/uint32_t/g) and I can put the fix in manually..  I'll update
when it builds cleanly ;)

Cheers,
- Matt


Norbert Sendetzky wrote:
> 
> Hi Mathew
> 
>>    I'm trying to compile the opendbxbackend that's included with the
>> powerdns 2.9.21 distribution against the stable opendbx libraries
>> (opendbx-1.2.4) installed in /usr/local/ on a Solaris 10 box.  I am using
>> gcc4 and associated gnu tools from the Blastwave Solaris repository. 
>> Here
>> is what I get:
> 
> Could you apply the attached patch please and give me feedback if it
> works?
> 
> Thanks
> 
> 
> Norbert
> -- 
> OpenPGP public key
> http://www.linuxnetworks.de/norbert.pubkey.asc
> 
> --- pdns-2.9.21/modules/opendbxbackend/odbxbackend.hh	2007-04-21
> 15:56:36.000000000 +0200
> +++ pdns-2.9.21.new/modules/opendbxbackend/odbxbackend.hh	2008-03-03
> 19:57:54.000000000 +0100
> @@ -45,8 +45,8 @@
>  
>  
>  
> -bool checkSlave( u_int32_t last, u_int32_t notified, SOAData* sd,
> DomainInfo* di );
> -bool checkMaster( u_int32_t last, u_int32_t notified, SOAData* sd,
> DomainInfo* di );
> +bool checkSlave( uint32_t last, uint32_t notified, SOAData* sd,
> DomainInfo* di );
> +bool checkMaster( uint32_t last, uint32_t notified, SOAData* sd,
> DomainInfo* di );
>  
>  
>  class OdbxBackend : public DNSBackend
> @@ -65,7 +65,7 @@
>  
>  	string escape( const string& str, QueryType type );
>  	bool connectTo( const vector<string>& host, QueryType type );
> -	bool getDomainList( const string& query, vector<DomainInfo>* list, bool
> (*check_fcn)(u_int32_t,u_int32_t,SOAData*,DomainInfo*) );
> +	bool getDomainList( const string& query, vector<DomainInfo>* list, bool
> (*check_fcn)(uint32_t,uint32_t,SOAData*,DomainInfo*) );
>  	bool execStmt( const char* stmt, unsigned long length, QueryType type );
>  	bool getRecord( QueryType type );
>  
> @@ -92,8 +92,8 @@
>  	void getUpdatedMasters( vector<DomainInfo>* updated );
>  	void getUnfreshSlaveInfos( vector<DomainInfo>* unfresh );
>  
> -	void setFresh( u_int32_t domain_id );
> -	void setNotified( u_int32_t domain_id, u_int32_t serial );
> +	void setFresh( uint32_t domain_id );
> +	void setNotified( uint32_t domain_id, uint32_t serial );
>  };
>  
>  
> --- pdns-2.9.21/modules/opendbxbackend/odbxbackend.cc	2007-04-21
> 15:56:36.000000000 +0200
> +++ pdns-2.9.21.new/modules/opendbxbackend/odbxbackend.cc	2008-03-03
> 19:52:06.000000000 +0100
> @@ -306,7 +306,7 @@
>  
>  			if( ( tmp = odbx_field_value( m_result, 4 ) ) != NULL )
>  			{
> -				rr.priority = (u_int16_t) strtoul( tmp, NULL, 10 );
> +				rr.priority = (uint16_t) strtoul( tmp, NULL, 10 );
>  			}
>  
>  			if( ( tmp = odbx_field_value( m_result, 5 ) ) != NULL )
> @@ -327,7 +327,7 @@
>  }
>  
>  
> -void OdbxBackend::setFresh( u_int32_t domain_id )
> +void OdbxBackend::setFresh( uint32_t domain_id )
>  {
>  	size_t len;
>  
> @@ -370,7 +370,7 @@
>  
>  
>  
> -void OdbxBackend::setNotified( u_int32_t domain_id, u_int32_t serial )
> +void OdbxBackend::setNotified( uint32_t domain_id, uint32_t serial )
>  {
>  	try
>  	{
>  
> _______________________________________________
> Pdns-users mailing list
> Pdns-users at mailman.powerdns.com
> http://mailman.powerdns.com/mailman/listinfo/pdns-users
> 

-- 
View this message in context: http://www.nabble.com/Compiling-opendbx-module-fails-on-Solaris-tp15806583p15813007.html
Sent from the PowerDNS mailing list archive at Nabble.com.



More information about the Pdns-users mailing list