IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User

Welcome to IWETHEY!

New More WAG
getsockname returns the actual length of the address via sin_len. That is why it is called that way (sending it the address of a local variable).

My contribution to WAGing is that getsockname's 3rd parameter was not always socklen_t * . It is/was int * on some (older?) platforms.

Are you porting to an odd platform?
What is the prototype for getsockname on your platform?
Is Autoconf screwing up its detection of getsockname's prototype?

That and line 632 was " if ((tp = gettosbyname("interactive", "tcp")) && "
in my copy of the source but I don't know if you've otherwise edited it.
Chris Altmann
New Not a weird platform.
Just a 4 processor machine with RHEL AS30. Has 10GB of Memory.

I am guessing it is something I can't get around.

I'll have to wing it. I tossed and turned for quite a while.
[link|http://www.iwethey.org/ed_curry|REMEMBER ED CURRY!] @ iwethey

Heard near the SCOG employee entry/exit way:

  Security: We got another Mass Exodus Doorway Jam.
New Line Number
Are you sure that line number is correct or have you edited the file in question? The only reason I ask is that the source I grabbed off the MIT site has line 632 and 633 as
\nif ((tp = gettosbyname("interactive", "tcp")) &&\n        (setsockopt(f, IPPROTO_IP, IP_TOS, &tp->t_tos, sizeof(int)) < 0))\n

If that code was somehow getting ifdeffed in (I don't think it should on Linux) then the two messages you list could make sense.

The warning could result from the compiler not having a prototype for gettosbyname and defaulting to returning int, which then triggers the warning of trying to convert the int result to a pointer (tp)

The error could then be explained by the derefencing of the tp pointer in the setsockopt call before the struct type had been fully specified (the struct tosent *tp; line would in effect be a forward declaration that never got completed before it was used because the compiler doesn't know what "struct tosent" is).

Chris Altmann
New Something stinks...
This was supposed to be simple.

Here is what I am looking at, this was a src.rpm packaged set of source. It was signed and validated proper.

I guess, I'll have to ask some questions. I don't believe the, the person I got this from is dishonest, as he actually is a member of the FOSS Community.

I'll be reporting back when I find out everything.
[link|http://www.iwethey.org/ed_curry|REMEMBER ED CURRY!] @ iwethey
No matter how much Microsoft supporters whine about how Linux and other operating systems have just as many bugs as their operating systems do, the bottom line is that the serious, gut-wrenching problems happen on Windows, not on Linux, not on Mac OS. -- [link|http://www.eweek.com/article2/0,1759,1622086,00.asp|source]
     I keep getting a problem here: - (folkert) - (10)
         WAG time - (ben_tilly) - (4)
             More WAG - (altmann) - (3)
                 Not a weird platform. - (folkert) - (2)
                     Line Number - (altmann) - (1)
                         Something stinks... - (folkert)
         6 more # signs out to do it -NT - (boxley)
         LRPD! - (deSitter)
         Here's my guess: - (jb4)
         Could you post preprocessed source? - (Arkadiy)
         I actually... - (folkert)

My pain became my strength I am reborn I'm deaf not dumb lest you forget.
65 ms