[00:04] Hi another cross compile question: uClibc does not have malloc_usable_size() [00:05] can we do with out it? [00:13] it's probably only used by the test suite [00:14] is there an easy way to disable the test suite [00:14] (from building) [00:19] it won't build until you run "make check" [00:21] with a "make" I get: [00:22] ../nih-dbus/.libs/libnih-dbus.a(alloc.o): In function `nih_alloc_size': [00:22] /home/anguss/work/main/buildroot/build_powerpc_8540/upstart-0.6.3/nih/alloc.c:743: undefined reference to `malloc_usable_size' [00:23] yeah that's code in the core to support the test suite [00:23] you'll have to patch that out [00:23] so I have put a "AC_CHECK_FUNC(malloc_usable_size, [with_malloc_usable_size=yes])" [00:23] in configure.ac [00:23] etc ... [00:23] that won't do anything unless you patch the code to check for that [00:24] yip, done that [00:24] so all is good [00:24] but, I just wanted to make sure that it would not get called [00:24] can't think of a reason it would be [00:24] (which you answered) [00:25] I'll send a patch [00:25] patch won't be accepted I'm afraid [00:25] Can you suggest a way to get around nil-dbus-tool getting built with the cross CC [00:26] why (about the patch) [00:26] Upstart is only intended to work with glibc [00:27] if you want to run it with something else, that's fine - feel free to post the patch to the ML [00:27] or even make a "uclibc" bzr branch with any necessary patches applied [00:27] (that others can merge to keep up to date) [00:27] but I'm keeping the core #ifdef free [00:28] that might be a bit tricky [00:29] does nil-dbus-tool do anything dbus version dependant? [00:29] no [00:29] it just generates C code [00:30] could I build upstart on my host then copy the generated c files to my cross code tree [00:30] yes [00:30] and have a configure option to not run or build the tool [00:31] I tried for a while to actually have the sources included in the tarballs [00:31] would you accept a patch like that [00:31] but gave up with that [00:31] nope [00:31] oh [00:31] depends [00:31] if you can get the files included in the source, I probably would [00:32] like: configure --disable-nil-dbus-tool [00:32] no, again, it's necessary [00:32] I worry about the generated c files [00:32] nih-dbus-tool is actually being split out anyway [00:32] I have most of the code ready to make libnih a separate module [00:32] so you'll just need it as a build-dependency on the build machine [00:33] so that solves that particular problem [00:33] ok, that sounds better [00:33] are you going to release a version soon with this? [00:33] yes [00:33] cool [00:33] probably this or next week [00:33] ok, I'll wait [00:34] thanks for your help [00:36] no probs [00:40] keybuk: Btw, how about something like #define NIH_MUST(_e) ({ typeof (_e) __ret; for (int __i = 0; ! (__ret = (_e)); __i++) if (i >= 10) log_an_error ("...%s...", #_e); __ret; }) [00:42] Of course, the logger shouldn’t use NIH_MUST to alloc stuff. :-P [00:47] ion: how will that help? === pocek_ is now known as pocek === pocek_ is now known as pocek === robbiew1 is now known as robbiew === sadmac_h1me is now known as sadmac_home