Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http-addrlist.c doesn't compile on tru64 #1488

Closed
michaelrsweet opened this issue Mar 15, 2006 · 3 comments
Closed

http-addrlist.c doesn't compile on tru64 #1488

michaelrsweet opened this issue Mar 15, 2006 · 3 comments

Comments

@michaelrsweet
Copy link
Collaborator

Version: 1.2b2
CUPS.org User: sfeehan

Compiling 1.2b2 fails on Tru64 with the following error:

Compiling http-addrlist.c...
http-addrlist.c: In function httpAddrGetList': http-addrlist.c:506: error: structure has no member nameds6_addr32'
make[1]: *** [http-addrlist.o] Error 1

Looking at cups/http.h I see the note about incompatible IPv6 implementations and there is no special case for tru64. I don't know
how to fix this myself, but here is the struct in_addr6 definition on Tru64 in the hopes that it will make sense to you:

/*

  • Define the IPv6 address.
    */
    struct in6_addr {
    union {
    uint8_t sa6_addr[16];
    #define s6_addr s6_un.sa6_addr
    uint16_t sa6_waddr[8];
    #define s6_waddr s6_un.sa6_waddr
    uint32_t sa6_laddr[4];
    #define s6_laddr s6_un.sa6_laddr
    #ifdef IN6_HAS_64BIT_INTTYPE
    uint64_t sa6_qaddr[2];
    #define s6_qaddr s6_un.sa6_qaddr
    #endif
    } s6_un;
    };

If there is any other info that I can provide to help resolve this issue, please let me know. Thanks.

STeve

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

Fixed in Subversion repository.

Try the attached two-line patch and let me know if that resolves things for you...

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

[message from Steve]

Yes, this patch builds. I don't use IPV6, so I can't comment on
it working at runtime.

Thanks.

@michaelrsweet
Copy link
Collaborator Author

"str1488.patch":

Index: http.h

--- http.h (revision 5293)
+++ http.h (working copy)
@@ -100,6 +100,8 @@

define s6_addr32 _S6_un._S6_u32

elif defined(FreeBSD) || defined(APPLE)

define s6_addr32 **u6_addr.__u6_addr32

+# elif defined(__osf**)
+# define s6_addr32 s6_un.sa6_laddr

elif defined(WIN32)

/*

  • Windows only defines byte and 16-bit word members of the union and

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant