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

Welcome to IWETHEY!

New WAG time
Making guesses in a language that I don't regularly use and never learned, how unwise can I get? :-/

My less likely guess is that getsockname expects its first argument to be a pointer of some kind. You're passing in an int, and it is complaining about an int being cast to a pointer.

More likely, I'm finding it very odd that you're trying to get the address of sin_len when that doesn't look much like a pointer to me.

To deny the indirect purchaser, who in this case is the ultimate purchaser, the right to seek relief from unlawful conduct, would essentially remove the word consumer from the Consumer Protection Act
- [link|http://www.techworld.com/opsys/news/index.cfm?NewsID=1246&Page=1&pagePos=20|Nebraska Supreme Court]
Expand Edited by ben_tilly July 14, 2004, 02:35:27 AM EDT
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)

I am so upset that this clown of a woman figured out my SUPER PLAN TO SCAM MILLIONS FROM THE UNKNOWING BEANIE WORLD!
89 ms