public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Attempt to build aplus-fsf-​4.22 (EnumTable​)
@ 2012-03-19  0:29 Tom Szczesny
  2012-03-19  2:18 ` Attempt to build aplus-fsf-???4.22 (EnumTable???) Christopher Faylor
  2012-03-19  9:34 ` Attempt to build aplus-fsf-​4.22 (EnumTable​) Csaba Raduly
  0 siblings, 2 replies; 3+ messages in thread
From: Tom Szczesny @ 2012-03-19  0:29 UTC (permalink / raw)
  To: cygwin

In Gentoo Linux:

aplus-fsf-4.22/src/cxsys/eponymous.c      contains           #include
<sys/ioctl.h>
sys/ioctl.h                                                  contains
         #include <bits/ioctls.h>
bits/ioctls.h                                                contains
         #include <asm/ioctls.h>
asm/ioctls.h                                               contains
       #include <asm-generic/ioctls.h>
asm-generic/ioctls.h                                  has the
difinitions that are required.

Since I can't change cygwin, my plan is to put a copy of
asm-generic/ioclts.h into the aplus source package.

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Attempt to build aplus-fsf-???4.22 (EnumTable???)
  2012-03-19  0:29 Attempt to build aplus-fsf-​4.22 (EnumTable​) Tom Szczesny
@ 2012-03-19  2:18 ` Christopher Faylor
  2012-03-19  9:34 ` Attempt to build aplus-fsf-​4.22 (EnumTable​) Csaba Raduly
  1 sibling, 0 replies; 3+ messages in thread
From: Christopher Faylor @ 2012-03-19  2:18 UTC (permalink / raw)
  To: cygwin

On Sun, Mar 18, 2012 at 08:29:00PM -0400, Tom Szczesny wrote:
>In Gentoo Linux:
>
>aplus-fsf-4.22/src/cxsys/eponymous.c      contains           #include
><sys/ioctl.h>
>sys/ioctl.h                                                  contains
>         #include <bits/ioctls.h>
>bits/ioctls.h                                                contains
>         #include <asm/ioctls.h>
>asm/ioctls.h                                               contains
>       #include <asm-generic/ioctls.h>
>asm-generic/ioctls.h                                  has the
>difinitions that are required.
>
>Since I can't change cygwin, my plan is to put a copy of
>asm-generic/ioclts.h into the aplus source package.

You're going to be disappointed.  You can't just make an ioctl magically
work by including a header file.

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Attempt to build aplus-fsf-​4.22 (EnumTable​)
  2012-03-19  0:29 Attempt to build aplus-fsf-​4.22 (EnumTable​) Tom Szczesny
  2012-03-19  2:18 ` Attempt to build aplus-fsf-???4.22 (EnumTable???) Christopher Faylor
@ 2012-03-19  9:34 ` Csaba Raduly
  1 sibling, 0 replies; 3+ messages in thread
From: Csaba Raduly @ 2012-03-19  9:34 UTC (permalink / raw)
  To: cygwin, tavmem

Hi Tom,

On Mon, Mar 19, 2012 at 1:29 AM, Tom Szczesny  wrote:
> In Gentoo Linux:
>
> aplus-fsf-4.22/src/cxsys/eponymous.c      contains           #include
> <sys/ioctl.h>
> sys/ioctl.h                                                  contains
>         #include <bits/ioctls.h>
> bits/ioctls.h                                                contains
>         #include <asm/ioctls.h>
> asm/ioctls.h                                               contains
>       #include <asm-generic/ioctls.h>
> asm-generic/ioctls.h                                  has the
> difinitions that are required.

Which definitions are required?

>
> Since I can't change cygwin, my plan is to put a copy of
> asm-generic/ioclts.h into the aplus source package.

That's a bad idea. Those values are Linux-specific. Your program might
compile, but is bound to fail at run time.
If an ioctl macro is not defined on Cygwin, it's because the
functionality is not implemented. In this case, sending a random
number to the ioctl function is not going to magically make it work.

asm-generic/ioctls.h contains #include <linux/ioctl.h>
Do you think that would work?

Csaba
-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-03-19  9:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-19  0:29 Attempt to build aplus-fsf-​4.22 (EnumTable​) Tom Szczesny
2012-03-19  2:18 ` Attempt to build aplus-fsf-???4.22 (EnumTable???) Christopher Faylor
2012-03-19  9:34 ` Attempt to build aplus-fsf-​4.22 (EnumTable​) Csaba Raduly

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).