Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <416CF9FA.6010209@hq.astra.ph>
Date: Wed, 13 Oct 2004 17:48:42 +0800
From: Carlo Florendo <list-subscriber@hq.astra.ph>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040616
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: other services ok, ftp not (was 1.5.11 - tcp problems)
References: <4745850620.20040921112624@scenta.co.uk> <416B3A95.4010506@hq.astra.ph> <Pine.GSO.4.61.0410121150090.24643@slinky.cs.nyu.edu> <416C92BD.90100@hq.astra.ph> <416CC006.3D4ECDEF@dessent.net> <416CC105.B1C945CA@dessent.net>
In-Reply-To: <416CC105.B1C945CA@dessent.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

Brian Dessent wrote:

>Brian Dessent wrote:
>
>  
>
>>cat <<ENDL >getservbyname-mingw.c && gcc -mno-cygwin \
>> getservbyname-mingw.c -o getservbyname-mingw && ./getservbyname-mingw
>>    
>>
>
>Correction: add "-lws2_32" to the gcc options.
>
>--
>
>  
>
Oh, thank you so much.  I added the -lws2_32 after *.c, thus compiling 
the code via:

 gcc -mno-cygwin   getservbyname-mingw.c  -lws2_32

and everything compiled well.   =)

I saw the  reply specifying the order of arguments on the mailing list 
web site.  (I haven't received the message on my mailbox yet since one 
of our mailers screwed up just now.) 

Anyway, I got this error:

getservbyname() returned NULL: win32 error 11004

I also read the message regarding the \r\n and \n line endings (still 
not in my mailbox) and Corinna's reply.  I've checked the services file 
and confirmed that the line endings are \r\n  (with the simple test of 
^M showing up when invoking `vim -b'.  Notepad also views the file 
correctly, thus it's really \r\n.).

I'm confident we're getting close!

Thanks so much!

Best Regards,

Carlo

--
Carlo Florendo
Astra Philippines Inc.
www.astra.ph







--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

