* netdb.h file problems.
@ 1997-03-28 5:00 Alfonso E. Urdaneta
0 siblings, 0 replies; 2+ messages in thread
From: Alfonso E. Urdaneta @ 1997-03-28 5:00 UTC (permalink / raw)
Hi all,
In <netdb.h> there is a section that reads as follows.
#ifdef _OSF_SOURCE
extern int gethostid __((void));
#endif
#ifdef _XOPEN_SOURCE_EXTENDED
extern struct hostent *gethostbyaddr __((const void *, size_t, int));
extern void sethostent __((int));
extern struct netent *getnetbyaddr __((in_addr_t, int));
extern void setnetent __((int));
extern void setservent __((int));
extern void setprotoent __((int));
#else
extern struct hostent *gethostbyaddr __((const char *, int, int));
extern int sethostent __((int));
extern struct netent *getnetbyaddr __((int, int));
extern int setnetent __((int));
extern int setservent __((int));
extern int setprotoent __((int));
#endif
However, this causes problems, because if you have both _OSF_SOURCE and
_XOPEN_SOURCE_EXTENDED defined, then you get a conflict in the
declaration of gethostid which is defined in <unistd.h> as follows.
#ifdef _XOPEN_SOURCE_EXTENDED
extern int readlink __((const char *, char *, size_t));
extern int fchdir __((int));
extern long gethostid __((void));
#else
extern int readlink __((const char *, char *, int));
#endif
Has anyone out there run into this problems before and possibly have
solutions ? ( Other than modifying the system include files. )
DEC Alpha, 4.0, gcc 2.7.2.2
Alfonso.
--
Alfonso E. Urdaneta VOX: 407.729.3840
Harris Corp/Transcomm Division FAX: 407.729.2003
PO Box 5100, MS 6B.3827 mailto:aurdanet@ursa.ess.harris.com
Melbourne, FL 32902.5100 http://www.transcomm.ess.harris.com
The Harris Corporation agrees with everything I say.
^ permalink raw reply [flat|nested] 2+ messages in thread
[parent not found: <199704020735.XAA15599@sierra.gis.ucdavis.edu>]
* Re: netdb.h file problems.
[not found] <199704020735.XAA15599@sierra.gis.ucdavis.edu>
@ 1997-04-02 5:00 ` Alfonso E. Urdaneta
0 siblings, 0 replies; 2+ messages in thread
From: Alfonso E. Urdaneta @ 1997-04-02 5:00 UTC (permalink / raw)
To: Brian C Hill
Brian C Hill wrote:
>
> I ran into a problem building amanda (backup software). The
> configure script that comes with it failed to find that connect and
> bind and some others had function prototype declarations and I think it
> is precisely because of the problem you are talking about. I haven't
> pursued it yet, though. I am still trying to hear what thet have to say
> about /usr/include/acl.h and /usr/include/sys/acl.h. Some include files
> ref /usr/include/acl.h, but it is really in /usr/include/sys/acl.h. I
> have been waiting about 4 months to hear back from them.
>
4 months ? You've got to be kidding me. Lucky for me I was compiling
in house code, so I was able to get past this little problem by doing a
little tweaking.
Alfonso.
--
Alfonso E. Urdaneta VOX: 407.729.3840
Harris Corp/Transcomm Division FAX: 407.729.2003
PO Box 5100, MS 6B.3827 mailto:aurdanet@ursa.ess.harris.com
Melbourne, FL 32902.5100 http://www.transcomm.ess.harris.com
The Harris Corporation agrees with everything I say.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1997-04-02 5:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-03-28 5:00 netdb.h file problems Alfonso E. Urdaneta
[not found] <199704020735.XAA15599@sierra.gis.ucdavis.edu>
1997-04-02 5:00 ` Alfonso E. Urdaneta
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox