Colin Dean schreef:
> I'll bet that this is similar to the dropbear issue.
>
> [clfs /mnt/vj/sources/iptables-1.3.7]$ make CC="${CC} ${BUILD} -Os"
> LD=${LD} DO_MULTI=1 PREFIX=/usr    LIBDIR=/lib BINDIR=/sbin && make
> DO_MULTI=1 PREFIX=/usr    LIBDIR=/lib BINDIR=/sbin install
> DESTDIR=${CLFS}
> Extensions found:
> i486-pc-linux-uclibc-gcc -m32 -Os -O2 -Wall -Wunused
> -I"/lib/modules/2.6.18.3vojisto-base/build"/include -Iinclude/
> -DIPTABLES_VERSION=\"1.3.7\"  -D_UNKNOWN_KERNEL_POINTER_SIZE
> -DIPTABLES_MULTI -DIPT_LIB_DIR=\"/lib/iptables\" -rdynamic -o iptables
> iptables-multi.c iptables-save.c iptables-restore.c iptables-xml.c
> iptables-standalone.c iptables.o libiptc/libiptc.a -ldl -lnsl
> /tmp/ccR0Hm3W.o: In function `parse_counters':
> iptables-xml.c:(.text+0xfc0): multiple definition of `parse_counters'
> /tmp/ccaWqLys.o:iptables-restore.c:(.text+0x60): first defined here
> /mnt/vj/cross-tools/lib/gcc/i486-pc-linux-uclibc/4.1.1/../../../../i486-pc-linux-uclibc/bin/ld:
> Warning: size of symbol `parse_counters' changed from 44 in
> /tmp/ccaWqLys.o to 52 in /tmp/ccR0Hm3W.o
> /tmp/ccR0Hm3W.o: In function `iptables_restore_main':
> iptables-xml.c:(.text+0x1060): multiple definition of
> `iptables_restore_main'
> /tmp/ccaWqLys.o:iptables-restore.c:(.text+0xe0): first defined here
> /mnt/vj/cross-tools/lib/gcc/i486-pc-linux-uclibc/4.1.1/../../../../i486-pc-linux-uclibc/bin/ld:
> Warning: size of symbol `iptables_restore_main' changed from 2362 in
> /tmp/ccaWqLys.o to 2832 in /tmp/ccR0Hm3W.o
> iptables.o:(.data+0x0): multiple definition of `line'
> /tmp/ccR0Hm3W.o:(.bss+0x0): first defined here
> iptables.o: In function `exit_error':
> iptables.c:(.text+0xe40): multiple definition of `exit_error'
> /tmp/ccR0Hm3W.o:iptables-xml.c:(.text+0x1000): first defined here
> /mnt/vj/cross-tools/lib/gcc/i486-pc-linux-uclibc/4.1.1/../../../../i486-pc-linux-uclibc/bin/ld:
> Warning: size of symbol `exit_error' changed from 89 in
> /tmp/ccR0Hm3W.o to 149 in iptables.o
> collect2: ld returned 1 exit status
> make: *** [iptables] Error 1
>
> Or (upon further inspection) it could be a problem with the source
> itself. Symbols are changing size left and right!
>
> The oddity here is in the second line of the actual gcc command. The
> include path for modules shouldn't be
>
> -I"/lib/modules/2.6.18.3vojisto-base/build"/include
>
> and should be
>
> -I"/lib/modules/2.6.19.2vojisto-base/build"/include
>
> I guess a simple sed on the Makefile would fix that?
> _______________________________________________
> Clfs-dev mailing list
> [email protected]
> http://lists.cross-lfs.org/cgi-bin/mailman/listinfo/clfs-dev
Does it build if you add KERNEL_DIR=${CLFS_TARGET}/usr/include to the
Makefile?
_______________________________________________
Clfs-dev mailing list
[email protected]
http://lists.cross-lfs.org/cgi-bin/mailman/listinfo/clfs-dev

Reply via email to