* ebtables-2.0.9-2 libebetc PHONY
@ 2011-06-09 23:11 Bertrand Jacquin
2011-06-19 11:36 ` Bart De Schuymer
2011-12-29 17:34 ` Jan Engelhardt
0 siblings, 2 replies; 3+ messages in thread
From: Bertrand Jacquin @ 2011-06-09 23:11 UTC (permalink / raw)
To: netfilter-devel
[-- Attachment #1.1: Type: text/plain, Size: 2916 bytes --]
Hi,
ebtables-v2.0.9-2 declare libebetc.so as PHONY. I'm wondering why. In my
case I'm cross-compiling it and define CC only for compilation. So when
running "make install" libebtc.so is one more time builded without CC
defined, so it failed :
# make
..
i586-geode-linux-gnu-gcc -Os -pipe -march=k6-2 -fomit-frame-pointer -I/usr/i586-geode-linux-gnu/usr/include/ -I/usr/i586-geode-linux-gnu/include/ -L/usr/i586-geode-linux-gnu/lib -L/usr/i586-geode-linux-gnu/usr/lib -Wl,--no-as-needed -o ebtables-restore ebtables-restore.o -Iinclude/ -L. -Lextensions -lebtc -lebt_802_3 -lebt_nat -lebt_arp -lebt_arpreply -lebt_ip -lebt_ip6 -lebt_standard -lebt_log -lebt_redirect -lebt_vlan -lebt_mark_m -lebt_mark -lebt_pkttype -lebt_stp -lebt_among -lebt_limit -lebt_ulog -lebt_nflog -lebtable_filter -lebtable_nat -lebtable_broute \
# make install
mkdir -p /usr/i586-geode-linux-gnu/tmp/portage/net-firewall/ebtables-2.0.9.2-r1/image//etc
install -m 0644 -o root -g root ethertypes /usr/i586-geode-linux-gnu/tmp/portage/net-firewall/ebtables-2.0.9.2-r1/image//etc/ethertypes
gcc -shared -L/usr/i586-geode-linux-gnu/lib -L/usr/i586-geode-linux-gnu/usr/lib -Wl,--no-as-needed -Wl,-soname,libebtc.so -o libebtc.so -lc getethertype.o communication.o libebtc.o useful_functions.o ebtables.o
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/i586-geode-linux-gnu/usr/lib/libc.so when searching for -lc
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/i586-geode-linux-gnu/usr/lib/libc.a when searching for -lc
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/i586-geode-linux-gnu/usr/lib/libc.so when searching for -lc
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/i586-geode-linux-gnu/usr/lib/libc.a when searching for -lc
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../x86_64-pc-linux-gnu/bin/ld: i386 architecture of input file `getethertype.o' is incompatible with i386:x86-64 output
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../x86_64-pc-linux-gnu/bin/ld: i386 architecture of input file `communication.o' is incompatible with i386:x86-64 output
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../x86_64-pc-linux-gnu/bin/ld: i386 architecture of input file `libebtc.o' is incompatible with i386:x86-64 output
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../x86_64-pc-linux-gnu/bin/ld: i386 architecture of input file `useful_functions.o' is incompatible with i386:x86-64 output
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../x86_64-pc-linux-gnu/bin/ld: i386 architecture of input file `ebtables.o' is incompatible with i386:x86-64 output
collect2: ld returned 1 exit status
Attached a patch to not PHONY libebtc.so
--
Beber
[-- Attachment #1.2: ebtables-2.0.9-2-libebtc.so-PHONY.diff --]
[-- Type: text/plain, Size: 401 bytes --]
--- Makefile.ori 2011-06-10 00:57:34.000000000 +0200
+++ Makefile 2011-06-10 01:06:27.000000000 +0200
@@ -82,7 +82,6 @@
ebtables-standalone.o: ebtables-standalone.c include/ebtables_u.h
$(CC) $(CFLAGS) $(CFLAGS_SH_LIB) $(PROGSPECS) -c $< -o $@ -I$(KERNEL_INCLUDES)
-.PHONY: libebtc
libebtc: $(OBJECTS2)
$(CC) -shared $(LDFLAGS) -Wl,-soname,libebtc.so -o libebtc.so -lc $(OBJECTS2)
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: ebtables-2.0.9-2 libebetc PHONY
2011-06-09 23:11 ebtables-2.0.9-2 libebetc PHONY Bertrand Jacquin
@ 2011-06-19 11:36 ` Bart De Schuymer
2011-12-29 17:34 ` Jan Engelhardt
1 sibling, 0 replies; 3+ messages in thread
From: Bart De Schuymer @ 2011-06-19 11:36 UTC (permalink / raw)
To: Bertrand Jacquin; +Cc: netfilter-devel
On 10-06-11 01:11, Bertrand Jacquin wrote:
> Hi,
>
> ebtables-v2.0.9-2 declare libebetc.so as PHONY. I'm wondering why. In my
> case I'm cross-compiling it and define CC only for compilation. So when
> running "make install" libebtc.so is one more time builded without CC
> defined, so it failed :
>
> Attached a patch to not PHONY libebtc.so
>
I've applied an altered version of your patch: I've changed the libebtc
target to libebtc.so
Thanks,
Bart
--
Bart De Schuymer
www.artinalgorithms.be
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: ebtables-2.0.9-2 libebetc PHONY
2011-06-09 23:11 ebtables-2.0.9-2 libebetc PHONY Bertrand Jacquin
2011-06-19 11:36 ` Bart De Schuymer
@ 2011-12-29 17:34 ` Jan Engelhardt
1 sibling, 0 replies; 3+ messages in thread
From: Jan Engelhardt @ 2011-12-29 17:34 UTC (permalink / raw)
To: Bertrand Jacquin; +Cc: netfilter-devel
On Friday 2011-06-10 01:11, Bertrand Jacquin wrote:
>Hi,
>
>ebtables-v2.0.9-2 declare libebetc.so as PHONY. I'm wondering why. In my
>case I'm cross-compiling it and define CC only for compilation. So when
>running "make install" libebtc.so is one more time builded without CC
>defined, so it failed :
Indeed that does not make sense. Well, the PHONY mark is gone anyway in
v2.0.10, so all the better :)
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-12-29 17:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-09 23:11 ebtables-2.0.9-2 libebetc PHONY Bertrand Jacquin
2011-06-19 11:36 ` Bart De Schuymer
2011-12-29 17:34 ` Jan Engelhardt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).