OpenWrt Forum Archive

Topic: busybox build error: "SIZEOF_LONG" is not defined

The content of this topic has been archived on 8 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I tried to build the latest SVN trunk (Revision: 5949) with almost  all applets of busybox enabled, then I got this error:

make[5]: Entering directory `/home/arachma1/trunk/build_mipsel/busybox-1.3.1'
  CC      e2fsprogs/ext2fs/unix_io.o
e2fsprogs/ext2fs/unix_io.c:422:75: error: "SIZEOF_LONG" is not defined
make[6]: *** [e2fsprogs/ext2fs/unix_io.o] Error 1

I am not an experienced C programmer, but I guess we need to define the "SIZEOF_LONG". Does anybody know where should that be defined? Should that be defined in unix_io.c or in one of its .h files? If that should defined in one of the .h files, which one would that be?

Thanks a lot in advance.

I have the same error, a ticket already exists.
https://dev.openwrt.org/ticket/1127

After "solving" this one by manually defining this constant, there were unresolvable errors with ether-wake :-(

This brings it to the point:

http://forum.openwrt.org/viewtopic.php?pid=40018#p40018

it isn't called kamikaze for no reason, you should expect things to be broken

I've tried to switch and use Kamikaze for myself now. It's not in a usable state. It's unstable as hell. I'll try it again in a few month...

(Last edited by forum2006 on 2 Jan 2007, 18:00)

@MMCM: Thanks a lot. I wanted to double check with you guys before raising a ticket. Just in case I did something silly.

@forum2006: I totally agree that we should expect a lot of things to be broken in kamikaze. But it should _NOT_ be at the compile stage as it is where the very first testing should be done.

(Last edited by Anto on 2 Jan 2007, 19:18)

The discussion might have continued from here.