Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
144 user(s) are online (85 user(s) are browsing Forums)

Members: 2
Guests: 142

imagodespira, skynet, more...

Headlines

 
  Register To Post  

Getting a strange error
Home away from home
Home away from home


See User information
Trying to compile something, but i can't get past the following error message... Anyone here who can tell me how to fix it?

evdns.c:1178: error: storage size of 'addr' isn't known
evdns.c:1183: error: invalid application of 'sizeof' to incomplete type 'struct sockaddr_storage'
evdns.c:1178: warning: unused variable 'addr'

X5000
Go to top
Re: Getting a strange error
Just popping in
Just popping in


See User information
My guess would be "sockaddr_storage" is not defined because it's an IPv6 addition and Roadshow is IPv4 only.

Go to top
Re: Getting a strange error
Home away from home
Home away from home


See User information
So this means that there is no way i can fix these errors?

X5000
Go to top
Re: Getting a strange error
Not too shy to talk
Not too shy to talk


See User information
You must see if it's possible to fallback on IPV4 only

Go to top
Re: Getting a strange error
Just popping in
Just popping in


See User information
Well, you can try to use the definition and see what happens.

Taken from Porting applications to IPv6 HowTo:

/* Structure large enough to hold any socket address (with the historical exception of 
AF_UNIX). 128 bytes reserved.  */

#if ULONG_MAX > 0xffffffff
# define __ss_aligntype __uint64_t
#else
# define __ss_aligntype __uint32_t
#endif
#define _SS_SIZE        128
#define _SS_PADSIZE     (_SS_SIZE - (2 * sizeof (__ss_aligntype)))

struct sockaddr_storage
{
    
sa_family_t ss_family;      /* Address family */
    
__ss_aligntype __ss_align;  /* Force desired alignment.  */
    
char __ss_padding[_SS_PADSIZE];
};

Go to top
Re: Getting a strange error
Amigans Defender
Amigans Defender


See User information
include this file:

http://www.amigasoft.net/code/os4_getaddrinfo.c
http://www.amigasoft.net/code/os4_getaddrinfo.h

in your code and live happily..

#include "os4_getaddrinfo.c"

i'm really tired...
Go to top
Re: Getting a strange error
Quite a regular
Quite a regular


See User information
very cool

what other gems you got hidden away?

~Yes I am a Kiwi, No, I did not appear as an extra in 'Lord of the Rings'~
1x AmigaOne X5000 2.0GHz 2gM RadeonR9280X AOS4.x
3x AmigaOne X1000 1.8GHz 2gM RadeonHD7970 AOS4.x
Go to top
Re: Getting a strange error
Amigans Defender
Amigans Defender


See User information
well.. this is not a gem... really.. :D

i'm really tired...
Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project