This is the mail archive of the cygwin@cygwin.com 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: Re: help for compiling problem!


On Mon, Jan 06, 2003 at 04:18:57PM -0000, Dave Hooper wrote:
>>>>error:  main.c: undefined reference to '_setlinebuf'
>>>
>> cygwin doesn't provide setlinebuf.
>> In general what this means is that you have to actually "inspect" the
>> code and "port it"
>
>As a follow up to this, and the earlier thread regarding icmp (which
>presumably is resolved in the same way), would it not be "better" to add
>support for the icmp function and setlinebuf to cygwin?

What are you suggesting?  That there should be an eager team of
engineers standing by waiting for requests for unimplemented features?
That sort of pushes all of the responsibility off onto cygwin.  Maybe we
should write an auto-compilation-error detection module which uses
artificial intelligence to detect compilation errors and automatically
correct them, too.

When you port software to new systems, you often have to tweak the
software to accommodate the new system.  If you are porting from linux
to HP/UX and find that there is a feature missing in HP/UX, your first
inclination should not be to send a linker error to HP.  You should
inspect the source code and see if there are porting options that you
can avail yourself of.

Cygwin is different since it is open source and development moves faster
than something like HP/UX, however, the logic of sending linker errors
to a mailing list and waiting days for someone to respond, escapes me.
It seems far better to actually educate yourself on what the missing
function or header file might be doing and, at the very very least,
offering an *educated* idea to the list if you can't find a workaround.

Also, if *you* want functionality, *you* can add it.  I think I can
safely say that no one is sitting around waiting for requests so that
they can implement them for you for free.  For the most part, everyone
works on what interests them.  However, it should be very obvious that
new functionality is added all of the time.  I wouldn't be surprised to
see someone offer setlinebuf now.  That's what new cygwin releases are
for.

>"Better" in the sense that Crystal is better than Moet - and I'm not
>suggesting everyone ought to be able to afford Crystal.  Is there any
>technical reason why support cannot be added to Cygwin for these (and
>other) unprovided functions?

It might even be obvious that since there is a setlinebuf definition in
a header file, then it might already be implemented somewhere (newlib).
However, even if the setlinebuf function was instantly added to cygwin,
that doesn't solve the problem unless you are also expecting instant
release of a new version of cygwin.  That's not going to happen.

In this case, I happen to know that working around the problem is
trivial.  It should be so trivial that a few minutes inspection of a man
page is all that is required.

For icmp functionality, we obviously use whatever Windows provides.
I have no idea if it is possible to implement.  Perhaps someone else
will chime in, although I'm sure this subject has been discussed many
times before.

>Is there a canonical list of what people expect cygwin to support vs.
>what it actually supports, and hence what it currently lacks?

No.  Feel free to provide one.

The model here is freedom.  You have the source code.  You can, within
the limits of the GPL, do what you want with it.  If you are a
conscientious citizen, you can even try to help out the community by
providing actual effort to improve the product via documentation or
source code updates.

cgf
--
Please use the resources at cygwin.com rather than sending personal email.
Special for spam email harvesters: send email to aaaspam@sources.redhat.com
and be permanently blocked from mailing lists at sources.redhat.com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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]