Operating System - HP-UX
1834481 Members
3597 Online
110067 Solutions
New Discussion

Compiling bind 834 on hpux 11.11

 
SOLVED
Go to solution
Charlie Rubeor
Frequent Advisor

Compiling bind 834 on hpux 11.11

Our parent company is insisting on using bind 834, so I am stuck with it and cannot jump to 920. My problem is that I cannot get it to compile. I have loaded the necessary utilities, including gcc, gnu make, flex and bison. The error messages that I am running into all concern struct sockaddr_storage code, mostly "storage size of 'xxxx' isn't known." Other messages relate to type conflicts between main and functions.

Has anyone successfully compiled bind 834 on hpux 11.11 with gcc. If so, please help.
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: Compiling bind 834 on hpux 11.11

Post 32 bit or 64 bit please.

Also post and error message.

Though its not exact, this depot might get you through until the standards at your shop change.

http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=BIND812

As a curiosity, I'd like to know where you found BIND 834?

You may however have an opportunity. If BIND 834 is unworkable(see what the outcome is if you post what I requested), its a good reason to install the later, secure version. "Sorry boss, its BIND 812 binary or 920?"

Anyway, the error message would be useful. I would guess that you will have to modify the headers and source code to make it work right on HP-UX.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Charlie Rubeor
Frequent Advisor

Re: Compiling bind 834 on hpux 11.11

64 bit

The most common error message is:

error: storage size of 'variable' isn't known

The worst of the bunch is the host program:

host.c:190: warning: `struct sockaddr_storage' declared inside parameter list
host.c:190: warning: its scope is only this definition or declaration, which is probably not what you want
host.c: In function `main':
host.c:228: error: storage size of `addr' isn't known
host.c: At top level:
host.c:577: warning: `struct sockaddr_storage' declared inside parameter list
host.c:577: error: conflicting types for `addrinfo'
host.c:190: error: previous declaration of `addrinfo'
host.c: In function `addrinfo':
host.c:582: error: dereferencing pointer to incomplete type

The source for 834 is from www.isc.org. The gnu stuff if the the hp download site.
rick jones
Honored Contributor
Solution

Re: Compiling bind 834 on hpux 11.11

I take it your parent company is obsessed with DNS performance?-)

Off the top of my head, the messages about storage size suggests missing include files.
IIRC, gcc is rather fond of "manipulating" the system include files and then placing copies somewhere. Perhaps it bothced that slightly during the install of gcc. I've only ever compiled bind sources with HP ANSI C.

You might find some pre-compiled stuff in the HPUX porting archives.
there is no rest for the wicked yet the virtuous have no pillows