* [Buildroot] word swapping doubles on little endian
@ 2008-06-02 20:08 Christopher Taylor
2008-06-03 1:24 ` [Buildroot] bug in ncurses.mk commit on 3/31/08 Blaine Kubesh
0 siblings, 1 reply; 2+ messages in thread
From: Christopher Taylor @ 2008-06-02 20:08 UTC (permalink / raw)
To: buildroot
For some reason, when I write a double to file I'm getting byte
swapped then word swapped.
double value = 2.048;
printf("%llx", value);
write(&value,sizeof(double), 1, fd);
on a bigendian I'm getting
printf: 4000 624d d2f1 a9fc
on a little endian I'm getting
printf: d2f1 a9fc 4000 624d
write: 4d62 0040 fca9 f1d2
whereas I would expect on the little endian write:
fca9 f1d2 4d62 0040
any ideas how this is getting screwed up?
-Chris
^ permalink raw reply [flat|nested] 2+ messages in thread* [Buildroot] bug in ncurses.mk commit on 3/31/08
2008-06-02 20:08 [Buildroot] word swapping doubles on little endian Christopher Taylor
@ 2008-06-03 1:24 ` Blaine Kubesh
0 siblings, 0 replies; 2+ messages in thread
From: Blaine Kubesh @ 2008-06-03 1:24 UTC (permalink / raw)
To: buildroot
I was looking into the error:
-----
ln -sf /usr/share/terminfo /$(TARGET_DIR)/usr/lib/terminfo
ln: creating symbolic link `$(TARGET_DIR)/usr/lib/terminfo/terminfo' to
`/usr/share/terminfo': Permission denied
-----
The source of the problem is related to a commit on March 31, 2008.
The first diff line should use $(TARGET_DIR)/usr/share and not the host
system's /usr/share:
- -cp -dpf $(STAGING_DIR)/usr/lib/terminfo $(TARGET_DIR)/usr/lib/
+ ln -sf $(TARGET_DIR)/usr/share/terminfo $(TARGET_DIR)/usr/lib/terminfo
====
--- trunk/buildroot/package/ncurses/ncurses.mk 2008/03/26 03:28:09
21494
+++ trunk/buildroot/package/ncurses/ncurses.mk 2008/03/31 14:44:32
21596
@@ -104,7 +104,7 @@
$(TARGET_DIR)/lib/libncurses.so.$(NCURSES_VERSION):
$(STAGING_DIR)/lib/libncurses.so.$(NCURSES_VERSION)
cp -dpf $(NCURSES_DIR)/lib/libncurses.so* $(TARGET_DIR)/lib/
- -cp -dpf $(STAGING_DIR)/usr/lib/terminfo $(TARGET_DIR)/usr/lib/
+ ln -sf /usr/share/terminfo $(TARGET_DIR)/usr/lib/terminfo
mkdir -p $(TARGET_DIR)/usr/share/terminfo/x
cp -dpf $(STAGING_DIR)/usr/share/terminfo/x/xterm
$(TARGET_DIR)/usr/share/terminfo/x
cp -dpf $(STAGING_DIR)/usr/share/terminfo/x/xterm-color
$(TARGET_DIR)/usr/share/terminfo/x
@@ -129,8 +129,7 @@
cp -dpf $(NCURSES_DIR)/include/unctrl.h $(TARGET_DIR)/usr/include/
cp -dpf $(NCURSES_DIR)/include/termcap.h $(TARGET_DIR)/usr/include/
cp -dpf $(NCURSES_DIR)/lib/libncurses.a $(TARGET_DIR)/usr/lib/
- rm -f $(TARGET_DIR)/usr/lib/terminfo
- (cd $(TARGET_DIR)/usr/lib; ln -fs ../share/terminfo; \
+ (cd $(TARGET_DIR)/usr/lib; \
ln -fs libncurses.a libcurses.a; \
ln -fs libncurses.a libtermcap.a; \
)
@@ -151,6 +150,7 @@
rm -f $(STAGING_DIR)/usr/lib/libncurses.so*
$(TARGET_DIR)/usr/lib/libncurses.so*
rm -rf $(STAGING_DIR)/usr/share/tabset $(TARGET_DIR)/usr/share/tabset
rm -rf $(STAGING_DIR)/usr/share/terminfo
$(TARGET_DIR)/usr/share/terminfo
+ rm -rf $(TARGET_DIR)/usr/lib/terminfo
-$(MAKE) -C $(NCURSES_DIR) clean
ncurses-dirclean:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20080602/418c35cf/attachment.htm
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-06-03 1:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-02 20:08 [Buildroot] word swapping doubles on little endian Christopher Taylor
2008-06-03 1:24 ` [Buildroot] bug in ncurses.mk commit on 3/31/08 Blaine Kubesh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox