Closed Bug 219487 Opened 21 years ago Closed 21 years ago

Make new DNS code build/run on OpenVMS

Categories

(NSPR :: NSPR, defect)

DEC
OpenVMS
defect
Not set
blocker

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: colin, Assigned: wtc)

Details

Attachments

(2 files, 1 obsolete file)

The DNS rewrite (bug 205726) leaves NSPR not building on OpenVMS. In order to
get it to build I need to no longer define "struct addrinfo" in _openvms.h.

I also need to define the environment variables GETADDRINFO and FREEADDRINFO so
that the new code which does getenv() calls for these (only for OpenVMS) will work.

I'll post the patch next. Both files are OpenVMS specific and so shouldn't break
anyone else.
Attached patch OpenVMS fix (obsolete) — Splinter Review
Attachment #131614 - Flags: review?(wchang0222)
Requesting blocking1.6a status since I can't build on OpenVMS without this fix.
Flags: blocking1.6a?
Attachment #131614 - Flags: review?(wchang0222)
Attachment #131614 - Attachment is obsolete: true
Attachment #131617 - Flags: review+
Comment on attachment 131617 [details] [diff] [review]
OpenVMS fix for Mozilla (by Colin Blake)

Colin, NSPR may be using getnameinfo() in the near future.
Might be a good idea to add an environment variable for
getnameinfo() now.
Comment on attachment 131618 [details] [diff] [review]
OpenVMS fix for NSPR (by wtc)

Colin,

Could you test this patch?

Could you verify that AI_CANONNAME is defined as 2
and struct addrinfo is defined as

 struct addrinfo {
     int ai_flags;
     int ai_family;
     int ai_socktype;
     int ai_protocol;
     size_t ai_addrlen;
     char *ai_canonname;
     struct sockaddr *ai_addr;
     struct addrinfo *ai_next;
 };

in OpenVMS's <netdb.h> header?

Thanks.
Attachment #131618 - Flags: review?(colin)
> Could you verify that AI_CANONNAME is defined as 2
> and struct addrinfo is defined as...

Alrady checked them. Yes.
Comment on attachment 131618 [details] [diff] [review]
OpenVMS fix for NSPR (by wtc)

Patch builds fine. I've also added getnameinfo to the env var list.
Attachment #131618 - Flags: review?(colin) → review+
Comment on attachment 131618 [details] [diff] [review]
OpenVMS fix for NSPR (by wtc)

Thank you, Colin.  I've checked in the NSPR patch on
the NSPR trunk (NSPR 4.5) and NSPRPUB_PRE_4_2_CLIENT_BRANCH
(Mozilla 1.6 alpha).
Can we mark this resolved now its checked in?
Colin,

I left this bug open for you to check in the patch
for mozilla/build/unix/vms/mozilla.com.  Have you
checked in that patch?
Target Milestone: --- → 4.5
Oh, OK. No, I haven't yet. I'm not even building 1.6 yet. I'll try to get to
this before I leave.
Checked in the mozilla.com file to the Mozilla trunk. Rev 1.6.

Now can we close this :-)
Marked the bug fixed.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: