This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: other services ok, ftp not (was 1.5.11 - tcp problems)


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]