Difference between revisions of "Armadeus 3.4 Troubleshots"
From ArmadeusWiki
(→Workaround) |
|||
Line 5: | Line 5: | ||
This affect boa, proftpd and potentially every program using stat() to obtain the size of a regular file. | This affect boa, proftpd and potentially every program using stat() to obtain the size of a regular file. | ||
===Workaround=== | ===Workaround=== | ||
− | Sacrify the large file support | + | Sacrify the large file support in Buildroot (needs to also remove alsa-utils): |
+ | <pre class="host"> | ||
+ | $ make menuconfig | ||
+ | </pre> | ||
+ | |||
+ | <pre class="config"> | ||
+ | Package Selection for the target ---> | ||
+ | [*] Audio libraries and applications ---> | ||
+ | [ ] alsa-utils | ||
+ | ... | ||
+ | Toolchain ---> | ||
+ | [ ] Enable large file (files > 2 GB) support? | ||
+ | |||
+ | </pre> | ||
[[Category:Release]] | [[Category:Release]] |
Latest revision as of 14:07, 14 June 2011
stat() bad behaviour
In armadeus-3.4, the stat() function does not return a correct file size in application programs compiled with -D_FILE_OFFSET_BITS=64. This is caused by a wrong padding in the stat structure described in /sys/stat.h.
This affect boa, proftpd and potentially every program using stat() to obtain the size of a regular file.
Workaround
Sacrify the large file support in Buildroot (needs to also remove alsa-utils):
$ make menuconfig
Package Selection for the target ---> [*] Audio libraries and applications ---> [ ] alsa-utils ... Toolchain ---> [ ] Enable large file (files > 2 GB) support?