All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bertrand Jacquin <beber@meleeweb.net>
To: netfilter-devel@vger.kernel.org
Subject: ebtables-2.0.9-2 libebetc PHONY
Date: Fri, 10 Jun 2011 01:11:31 +0200	[thread overview]
Message-ID: <20110609231131.GA6508@lemonhead.scabb> (raw)


[-- 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 --]

             reply	other threads:[~2011-06-09 23:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-09 23:11 Bertrand Jacquin [this message]
2011-06-19 11:36 ` ebtables-2.0.9-2 libebetc PHONY Bart De Schuymer
2011-12-29 17:34 ` Jan Engelhardt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110609231131.GA6508@lemonhead.scabb \
    --to=beber@meleeweb.net \
    --cc=netfilter-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.