**** BEGIN LOGGING AT Mon May 09 02:59:58 2011 May 09 03:02:12 thepeople: ^ missing grub prereq for x86 on buildslave2 May 09 03:05:45 swalker: hmm, I thought I had that taken care of May 09 05:13:33 Is xMff here May 09 06:25:56 Hi, this is Rich, anyone here? May 09 06:26:30 sure May 09 06:26:43 I am looking to bounce some questions about libpcap. May 09 06:26:52 Hey russel ;) May 09 06:27:38 gzanan: hey May 09 06:27:47 I have created a program in C with Libpcap and i am copying a packet to send to a new place. May 09 06:28:23 But i am not sure if when i change the IP/port number if i need to also update the Packet length or Checksums? May 09 06:29:05 try it one way, if it works, you are done. if it doesn't, try something. as a last resort, read documenation. May 09 06:29:24 :D May 09 06:29:32 :) May 09 06:29:56 Rich: the length should stay but the checksum must be recalculated May 09 06:30:08 Im new to this, which is why i am asking before getting lost in it :) May 09 06:30:37 Ahh ok, that was my hunch. May 09 06:31:01 The checksum is quite easy isnt it? May 09 06:31:21 I found an example which was 5 to 10 lines. May 09 06:31:26 Sound about right? May 09 06:32:21 yeah May 09 06:32:34 its some cyclic xor thing iirc May 09 06:32:50 ok May 09 06:33:12 ok, thanks guys, i will give this a blast and see if my packet makes it :) May 09 06:54:33 * russell-- is an imagebuilder newbie, can i do a "make image [...]" thing from a normal build? Or do i need to enable imagebuilder stuff? May 09 06:55:29 you need to enable the imagebuilder May 09 06:55:39 which will create a .tar.gz which you have to unpack May 09 06:59:18 hmm May 09 06:59:43 what do you want to use it for? May 09 07:00:09 someone is asking me about imagebuilder stuff, /me has no idea, suggesting my general problem solving algorithm cited above ;-) May 09 07:01:21 ok May 09 07:01:24 normally, when i am cooking specialized images, i just dump stuff into files and run a normal make, 2 minutes later it's done (if i've built everything already) May 09 07:01:42 it is all nicely laid out in the wiki page so I'm not sure what else is needed, apart from building it May 09 07:02:06 yeah, i pointed them at that first May 09 07:02:23 but consulting that comes last in my algorithm May 09 07:02:52 I see May 09 07:02:55 http://wiki.openwrt.org/doc/howto/obtain.firmware.generate May 09 07:03:55 xMff: got a kernel module programming question for you... say I've got a bit of code that periodically hits a hook... the hook is into a module that may or may not be present... May 09 07:04:45 I'd say that is not possible without both parts registering each other May 09 07:05:12 make some callback mechanism where the loadable module puts a function pointer in your code which you can then test for non-zero and call if needed May 09 07:05:29 at least that is how I'd approach it May 09 07:06:28 yeah... I'm just worried about module unloads, volatility, and threading. May 09 07:06:54 was hoping that the module architecture had a built-in mechanism to support this and take care of the locking, etc. May 09 07:13:11 jow * r26863 /packages/net/ddns-scripts/ (Makefile files/usr/lib/ddns/services): [packages] ddns-scripts: add he.net service url (#9376) May 09 07:21:11 xMff: what do you think of the alix2 target? May 09 07:21:28 didn't check May 09 07:22:04 if someone could look at it, it would be great... I don't know when Kaloz is going to get back to doing reviews. May 09 07:22:15 also, I split out the leds.mk from modules/other.mk May 09 07:55:54 build #29 of lantiq is complete: Failure [failed compile_6] Build details are at http://buildbot.openwrt.org:8010/builders/lantiq/builds/29 May 09 11:40:01 Is there a way to prioritize to build an X package before Y package? May 09 11:41:07 no May 09 11:41:22 apart from dependencies obviously May 09 11:41:35 jow_laptop: IC. May 09 11:42:15 jow_laptop: I locally ported unixodbc package and if I compile unixodbc first, then erlang package will crash in compilation. However, if I compile erlang package first and then compile unixodbc packate, then everything is OK. May 09 11:43:06 messing with the build order is no solution May 09 11:43:18 you should isolate the cause for erlang crashing May 09 11:43:46 it probably finds a unixodbc.pc or unixodbc_config or similar which injects cflags that break the build May 09 11:48:25 jow_laptop: FreeSWITCH v1.0.6 (current) and/or v1.0.7 (git daily snapshot) will make use of unixodbc package (if available) and here is my OpenWRT Makefile for unixodbc (SVN version). Perhaps, I should remove the 'Build/InstallDev' section (line# 73 - 79) so that it won't be installed in the staging_dir and configure FreeSWITCH Makefile to point to unixodbc source directory. May 09 11:51:21 jow_laptop: Here is my OpenWRT Makefile for unixodbc (http://pastebin.com/hrfH38mx). May 09 11:56:22 mazilo: no, installing it to staging_dir is okay I think May 09 11:56:56 mazilo: however you might need to fix it up, like $(SED) 's,-I/usr/include,-I$(STAGING_DIR)/usr/include,' May 09 11:57:32 jow_laptop: OK. I will do more investigation on this later on. Thanks. May 09 12:10:04 luci led setting is broken May 09 12:10:32 http://pastebin.com/1gcpkbNw May 09 12:14:33 jmccrohan * r26864 /packages/utils/lcd4linux/Makefile: [package] lcd4linux: update to SVN r1144 May 09 15:18:19 build #27 of uml is complete: Failure [failed compile_10] Build details are at http://buildbot.openwrt.org:8010/builders/uml/builds/27 May 09 15:23:54 blogic * r26865 /trunk/target/linux/generic/ (11 files in 9 dirs): (log message trimmed) May 09 15:23:54 [PATCH v3] (respin) 802.1Q VLAN support for ADM6996M/ADM6996FC May 09 15:23:54 This patch adds 802.1Q VLAN support for the ADM6996M chip. May 09 15:23:54 The driver is loaded for both the FC and M model. It will detect which of the May 09 15:23:54 two chips is connected. The FC model is initialised, but no further May 09 15:23:55 functionality is offered. May 09 15:23:56 The PHY driver will always report "100 Mbit/s, link up", for both the M and FC May 09 19:15:50 blogic * r26866 /packages/utils/ (usb-modeswitch/Makefile usb-modeswitch-data/Makefile): May 09 19:15:50 [usb-modeswitch] May 09 19:15:50 * Update usb-modeswitch to v1.1.7 May 09 19:15:50 * Update usb-modeswitch-data to v20110227 May 09 19:15:50 Signed-off-by: Layne Edwards May 09 19:49:00 hey guys, I have trouble compiling some new package. while ./configure Im May 09 19:49:00 getting: checking for sys/capability.h... no \n configure: error: please install May 09 19:49:00 libcap-devel. Im not May 09 19:49:00 sure how should I deal with this. Tried already to define some May 09 19:49:00 C_INCLUDE_PATH, and CFLAGS but with no luck.. any1 can help ? May 09 19:49:27 voyo: what does config.log say ? May 09 19:49:39 the configure script will leave a config.log May 09 19:50:00 some place towards the end you will see the exact gcc/whatever call that failed with the exact error May 09 19:51:27 http://pastebin.com/3GmBguSi thats config.log May 09 19:52:54 http://pastebin.com/T904tLFu and thasts part of Makefile May 09 19:56:59 blogic@blap4:/openwrt/owrt.dev$ find staging_dir/ -name capability.h May 09 19:56:59 staging_dir/toolchain-mips_r2_gcc-linaro_uClibc-0.9.32/include/linux/capability.h May 09 19:57:07 that file does not exist May 09 19:58:30 yup. I dont know why. in any distro it does exist , mostly in libcap-dev package. Anyway tried to copy it manually from ....include/linux/ to eglibc.../usr/include/sys/ May 09 19:58:35 with no luck :-/ May 09 19:59:28 just because it is named the same, it does not mean it has the ´same content, specially with such a generic name May 09 19:59:35 moreover, I can compile tcpdump package (it require libpcap). but not this one.. May 09 20:00:03 maybe.. what do you propose ? May 09 20:01:11 how does pcap relate to this ? May 09 20:01:24 what Im trying to add is lxc tool, (for configuring network namespaces) May 09 20:01:44 ok May 09 20:01:56 and it needs pcap ? May 09 20:01:59 want Makefile ? May 09 20:02:02 yes, seems so... May 09 20:02:06 ok May 09 20:02:11 did you build and install pcap ? May 09 20:02:27 yes, as I said I have tcpdump (it require libpcap) May 09 20:02:51 and sys/capability.h is from pcap ? May 09 20:03:37 http://pastebin.com/nEPJkAjK thats Makefile, work-in-progress May 09 20:04:20 well... not sure. thats what is saying ./configure from lxc tools. but I didnt found this file in libpcap package under owrt. May 09 20:05:12 but this file does exist in some libpcap*-devel.rpm I'v found under some fedora. May 09 20:05:27 libcap-dev: /usr/include/sys/capability.h May 09 20:05:34 that is what apt-file says May 09 20:05:40 gimme a sec, i will build pcap May 09 20:05:47 anyway I think that file from under include/linux/ should be good too. May 09 20:05:50 need to wait 5 minutes its building a kernel just now May 09 20:05:52 ok tnx May 09 20:06:45 run "find staging_dir/ -name capability.h" please in your openwrt tree May 09 20:07:14 $ find staging_dir/ -name capability.h May 09 20:07:14 staging_dir/toolchain-i386_gcc-3.4.6_eglibc-2.8/usr/include/linux/capability.h May 09 20:07:14 staging_dir/toolchain-i386_gcc-4.3.3+cs_glibc-2.7/usr/include/linux/capability.h May 09 20:07:14 staging_dir/toolchain-i386_gcc-4.1.2_eglibc-2.8/usr/include/linux/capability.h May 09 20:07:14 staging_dir/toolchain-i386_gcc-4.3.3+cs_eglibc-2.11/usr/include/linux/capability .h May 09 20:07:15 staging_dir/toolchain-i386_gcc-4.3.3+cs_eglibc-2.8/usr/include/linux/capability. h May 09 20:07:26 ok May 09 20:07:30 pcap seems to not stage it May 09 20:07:33 1 moment please May 09 20:07:51 and pasting over 3-4 lines should go in patsebin ;) May 09 20:08:49 ok :) May 09 20:08:50 $ find build_dir/target-i386_eglibc-2.8/libpcap-1.0.0/ -name capability.h May 09 20:08:53 voyo@build:~/owrt-x86/owrt$ May 09 20:08:58 see ? May 09 20:09:07 no such file under libpcap May 09 20:10:54 yes May 09 20:11:45 ok, my debian has that file and a pcap 0.8x May 09 20:11:58 try checking the pcap source for a 0.8 version for that file May 09 20:12:11 if so, the lxc tool depends on an outdated version od pcap May 09 20:13:43 hm ok May 09 20:17:13 sorry ;) May 09 20:17:22 find build_dir/target-i386_eglibc-2.8/libpcap-0.8.3/ -name capability.h May 09 20:17:30 nothing too :( May 09 20:17:52 + problems with patches ( from libpcap 1.0 ;) ) May 09 20:19:08 Im 99% sure this file should be get from kernel's includes. May 09 20:22:24 blogic * r26867 /packages/libs/libftdi/ (. Makefile): May 09 20:22:24 [libftdi] May 09 20:22:24 Adds libfti - a C-library to interface FTDI USB-serial-chips. May 09 20:22:24 Package may need improvement, source libftdi also provides a C++ binding May 09 20:22:24 which is not getting installed with this package yet. May 09 20:22:25 Signed-off-by: Michael Markstaller May 09 20:27:08 philipp64|laptop: ping May 09 20:27:09 http://patchwork.midlink.org/patch/973/ May 09 20:27:45 can i get a more sane comment ot put in the commit than "Actually, it needs to return ..." please ;) May 09 20:28:34 blogic can you suggest something I can add/change to Makefile, to use this file from kernel's include ? May 09 20:30:00 blogic * r26868 /trunk/package/kernel/modules/ (leds.mk other.mk): May 09 20:30:00 [kernel/modules] May 09 20:30:00 package/kernel/modules/other.mk is getting big enough that putting the LEDs stuff into its own file makes sense. May 09 20:30:00 Signed-off-by: Philip Prindeville May 09 20:32:14 voyo: just include kernel.mk ? May 09 20:32:32 voyo: that should populate CFLAGS / LDFLAGS with the appropriate pathes May 09 20:32:52 xMff not helping. include $(INCLUDE_DIR)/kernel.mk May 09 20:33:53 http://pastebin.com/nEPJkAjK thats Makefile May 09 21:06:52 blogic: pong May 09 21:07:52 aloha May 09 21:07:57 you have 15 minutes May 09 21:08:05 then i return for 15 more before heading to bed ;) May 09 21:09:49 umm.... ok, if only I can remember what about... I have multiple pots on the fire. May 09 21:10:54 http://patchwork.midlink.org/patch/973/ May 09 21:10:56 ;) May 09 22:05:16 guys, how can I deal with such error: i486-openwrt-linux-gnu-ld: unrecognized option '-Dlinux' May 09 22:07:05 check what the surrounding configure did May 09 22:07:40 and what LD is set to May 09 22:09:45 xMff no ./configure in this package. but I think I'v found it in Make.Rules file May 09 22:10:23 checking if I can overwrite CFLAGS and other variables in package's Makefile May 09 22:14:19 nope. I can't :-/ May 09 22:43:10 exit **** ENDING LOGGING AT Tue May 10 02:59:58 2011