Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] setserial fails to build (after uClibc 0.9.30.3 upgrade?)
@ 2010-03-14 10:41 Paulius Zaleckas
  2010-03-14 21:42 ` Peter Korsgaard
  0 siblings, 1 reply; 4+ messages in thread
From: Paulius Zaleckas @ 2010-03-14 10:41 UTC (permalink / raw)
  To: buildroot

Hi,

I am almost sure that setserial was building OK before uClibc upgrade to
0.9.30.3. Now I get:

/home/paulius/buildroot/output/build/staging_dir/usr/bin/i386-linux-uclibc-gcc 
-Os -pipe -Os -g2 -I/home/paulius/buildroot/output/build/staging_dir/usr/include 
-I/home/paulius/buildroot/output/build/staging_dir/include 
--sysroot=/home/paulius/buildroot/output/build/staging_dir/ -isysroot 
/home/paulius/buildroot/output/build/staging_dir -mtune=i386 -march=i386 
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 
-DHAVE_ASM_IOCTLS_H=1  -I. setserial.c -o setserial
setserial.c: In function ?get_multiport?:
setserial.c:249: warning: incompatible implicit declaration of built-in function 
?exit?
setserial.c: In function ?set_multiport?:
setserial.c:271: warning: incompatible implicit declaration of built-in function 
?exit?
setserial.c:281: warning: incompatible implicit declaration of built-in function 
?exit?
setserial.c:338: warning: incompatible implicit declaration of built-in function 
?exit?
setserial.c:342: warning: incompatible implicit declaration of built-in function 
?exit?
setserial.c: In function ?print_hayesesp?:
setserial.c:362: error: storage size of ?esp? isn?t known
setserial.c: In function ?set_hayesesp?:
setserial.c:378: error: storage size of ?esp? isn?t known
setserial.c:384: warning: incompatible implicit declaration of built-in function 
?exit?
setserial.c:410: warning: incompatible implicit declaration of built-in function 
?exit?
setserial.c: In function ?set_serial?:
setserial.c:488: warning: incompatible implicit declaration of built-in function 
?exit?
setserial.c:494: warning: incompatible implicit declaration of built-in function 
?exit?
setserial.c:512: warning: incompatible implicit declaration of built-in function 
?exit?
setserial.c:516: warning: incompatible implicit declaration of built-in function 
?exit?
setserial.c:520: warning: incompatible implicit declaration of built-in function 
?exit?
setserial.c:541: warning: incompatible implicit declaration of built-in function 
?exit?
setserial.c:571: warning: incompatible implicit declaration of built-in function 
?exit?
setserial.c:575: warning: incompatible implicit declaration of built-in function 
?exit?
setserial.c:579: warning: incompatible implicit declaration of built-in function 
?exit?
setserial.c:585: warning: incompatible implicit declaration of built-in function 
?exit?
setserial.c:592: warning: incompatible implicit declaration of built-in function 
?exit?
setserial.c:608: warning: incompatible implicit declaration of built-in function 
?exit?
setserial.c:613: warning: incompatible implicit declaration of built-in function 
?exit?
setserial.c: In function ?do_wild_intr?:
setserial.c:628: warning: incompatible implicit declaration of built-in function 
?exit?
setserial.c:632: warning: incompatible implicit declaration of built-in function 
?exit?
setserial.c:636: warning: incompatible implicit declaration of built-in function 
?exit?
setserial.c: In function ?usage?:
setserial.c:714: warning: incompatible implicit declaration of built-in function 
?exit?
setserial.c: In function ?main?:
setserial.c:749: warning: incompatible implicit declaration of built-in function 
?exit?
setserial.c:764: warning: incompatible implicit declaration of built-in function 
?exit?
setserial.c:770: warning: incompatible implicit declaration of built-in function 
?exit?
setserial.c:776: warning: incompatible implicit declaration of built-in function 
?exit?
make[1]: *** [setserial] Error 1
make[1]: Leaving directory `/home/paulius/buildroot/output/build/setserial-2.17'
make: *** [/home/paulius/buildroot/output/build/setserial-2.17/setserial] Error 2

Actual problem I see here is not with uClibc, but with setserial.c not including
stdlib.h. Due to my very limited time I can't provide fix now...

BR,
Paulius Zaleckas

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

* [Buildroot] setserial fails to build (after uClibc 0.9.30.3 upgrade?)
  2010-03-14 10:41 [Buildroot] setserial fails to build (after uClibc 0.9.30.3 upgrade?) Paulius Zaleckas
@ 2010-03-14 21:42 ` Peter Korsgaard
  2010-03-15  7:33   ` Paulius Zaleckas
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Korsgaard @ 2010-03-14 21:42 UTC (permalink / raw)
  To: buildroot

>>>>> "Paulius" == Paulius Zaleckas <paulius.zaleckas@gmail.com> writes:

Hi,

 Paulius> setserial.c: In function ?print_hayesesp?:
 Paulius> setserial.c:362: error: storage size of ?esp? isn?t known
 Paulius> setserial.c: In function ?set_hayesesp?:
 Paulius> setserial.c:378: error: storage size of ?esp? isn?t known
 Paulius> setserial.c:384: warning: incompatible implicit declaration of
 Paulius> built-in function ?exit?
 Paulius> make[1]: *** [setserial] Error 1
 Paulius> make[1]: Leaving directory `/home/paulius/buildroot/output/build/setserial-2.17'
 Paulius> make: *** [/home/paulius/buildroot/output/build/setserial-2.17/setserial] Error 2

 Paulius> Actual problem I see here is not with uClibc, but with setserial.c not including
 Paulius> stdlib.h. Due to my very limited time I can't provide fix now...

No, the stdlib.h stuff is only warnings, the error is that it tries to
use a struct hayes_esp_config because the kernel headers on x86 has the
TIOCGHAYESESP ioctl defined in asm/ioctls.h (E.G. on ARM it isn't
defined, and there it builds).

The hayes stuff is for a really ancient driver (which has recently been
removed by Alan Cox).

As far as I can see, this has nothing to do with uClibc - Did you
recently change the kernel headers version?

As for a fix - We could add an #undef TIOCGHAYESESP after include
<linux/serial.h>, but I would like to know when the problem started first.

-- 
Bye, Peter Korsgaard

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

* [Buildroot] setserial fails to build (after uClibc 0.9.30.3 upgrade?)
  2010-03-14 21:42 ` Peter Korsgaard
@ 2010-03-15  7:33   ` Paulius Zaleckas
  2010-03-15 14:17     ` Peter Korsgaard
  0 siblings, 1 reply; 4+ messages in thread
From: Paulius Zaleckas @ 2010-03-15  7:33 UTC (permalink / raw)
  To: buildroot

On Sun, Mar 14, 2010 at 11:42 PM, Peter Korsgaard <jacmet@uclibc.org> wrote:
>>>>>> "Paulius" == Paulius Zaleckas <paulius.zaleckas@gmail.com> writes:
>
> Hi,
>
> ?Paulius> setserial.c: In function ?print_hayesesp?:
> ?Paulius> setserial.c:362: error: storage size of ?esp? isn?t known
> ?Paulius> setserial.c: In function ?set_hayesesp?:
> ?Paulius> setserial.c:378: error: storage size of ?esp? isn?t known
> ?Paulius> setserial.c:384: warning: incompatible implicit declaration of
> ?Paulius> built-in function ?exit?
> ?Paulius> make[1]: *** [setserial] Error 1
> ?Paulius> make[1]: Leaving directory `/home/paulius/buildroot/output/build/setserial-2.17'
> ?Paulius> make: *** [/home/paulius/buildroot/output/build/setserial-2.17/setserial] Error 2
>
> ?Paulius> Actual problem I see here is not with uClibc, but with setserial.c not including
> ?Paulius> stdlib.h. Due to my very limited time I can't provide fix now...
>
> No, the stdlib.h stuff is only warnings, the error is that it tries to
> use a struct hayes_esp_config because the kernel headers on x86 has the
> TIOCGHAYESESP ioctl defined in asm/ioctls.h (E.G. on ARM it isn't
> defined, and there it builds).
>
> The hayes stuff is for a really ancient driver (which has recently been
> removed by Alan Cox).
>
> As far as I can see, this has nothing to do with uClibc - Did you
> recently change the kernel headers version?

Yes, I switched to 2.6.33

> As for a fix - We could add an #undef TIOCGHAYESESP after include
> <linux/serial.h>, but I would like to know when the problem started first.
>
> --
> Bye, Peter Korsgaard
>

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

* [Buildroot] setserial fails to build (after uClibc 0.9.30.3 upgrade?)
  2010-03-15  7:33   ` Paulius Zaleckas
@ 2010-03-15 14:17     ` Peter Korsgaard
  0 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2010-03-15 14:17 UTC (permalink / raw)
  To: buildroot

>>>>> "Paulius" == Paulius Zaleckas <paulius.zaleckas@gmail.com> writes:

Hi,

 >> The hayes stuff is for a really ancient driver (which has recently been
 >> removed by Alan Cox).
 >> 
 >> As far as I can see, this has nothing to do with uClibc - Did you
 >> recently change the kernel headers version?

 Paulius> Yes, I switched to 2.6.33

Ok, I've pushed a fix to git (5a2844c74815)

-- 
Bye, Peter Korsgaard

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

end of thread, other threads:[~2010-03-15 14:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-14 10:41 [Buildroot] setserial fails to build (after uClibc 0.9.30.3 upgrade?) Paulius Zaleckas
2010-03-14 21:42 ` Peter Korsgaard
2010-03-15  7:33   ` Paulius Zaleckas
2010-03-15 14:17     ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox