netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Can't compile nftables
@ 2014-01-21 12:26 Arturo Borrero Gonzalez
  2014-01-21 12:36 ` Patrick McHardy
  2014-01-21 12:36 ` Pablo Neira Ayuso
  0 siblings, 2 replies; 4+ messages in thread
From: Arturo Borrero Gonzalez @ 2014-01-21 12:26 UTC (permalink / raw)
  To: Netfilter Development Mailing list

Hi there,

I have this:

% make clean && make -j8 && make install

-e   CC src/parser.c
-e   CC src/scanner.c
-e   LD src/nft
src/scanner.o: In function `nft_realloc':
/home/aborrero/git/nftables/<stdout>:4146: undefined reference to `rpl_realloc'
src/scanner.o: In function `nft_alloc':
/home/aborrero/git/nftables/<stdout>:4134: undefined reference to `rpl_malloc'
/home/aborrero/git/nftables/<stdout>:4134: undefined reference to `rpl_malloc'
/home/aborrero/git/nftables/<stdout>:4134: undefined reference to `rpl_malloc'
src/scanner.o: In function `nft_realloc':
/home/aborrero/git/nftables/<stdout>:4146: undefined reference to `rpl_realloc'
/home/aborrero/git/nftables/<stdout>:4146: undefined reference to `rpl_realloc'
src/scanner.o: In function `nft_alloc':
/home/aborrero/git/nftables/<stdout>:4134: undefined reference to `rpl_malloc'
/home/aborrero/git/nftables/<stdout>:4134: undefined reference to `rpl_malloc'
/home/aborrero/git/nftables/<stdout>:4134: undefined reference to `rpl_malloc'
/home/aborrero/git/nftables/<stdout>:4134: undefined reference to `rpl_malloc'
/home/aborrero/git/nftables/<stdout>:4134: undefined reference to `rpl_malloc'
src/scanner.o: In function `nft_realloc':
/home/aborrero/git/nftables/<stdout>:4146: undefined reference to `rpl_realloc'
src/utils.o: In function `xmalloc':
/home/aborrero/git/nftables/src/utils.c:36: undefined reference to `rpl_malloc'
src/utils.o: In function `xrealloc':
/home/aborrero/git/nftables/src/utils.c:44: undefined reference to `rpl_realloc'
src/parser.o: In function `nft_parse':
/home/aborrero/git/nftables/src/parser.c:3183: undefined reference to
`rpl_malloc'
/home/aborrero/git/nftables/src/parser.c:6193: undefined reference to
`rpl_malloc'
collect2: error: ld returned 1 exit status

Do you have any idea of why?

my git: 11ba325 (HEAD, origin/master, origin/HEAD, master) bump
release number to 0.100

thanks.

-- 
Arturo Borrero González
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Can't compile nftables
  2014-01-21 12:26 Can't compile nftables Arturo Borrero Gonzalez
@ 2014-01-21 12:36 ` Patrick McHardy
  2014-01-21 13:25   ` Arturo Borrero Gonzalez
  2014-01-21 12:36 ` Pablo Neira Ayuso
  1 sibling, 1 reply; 4+ messages in thread
From: Patrick McHardy @ 2014-01-21 12:36 UTC (permalink / raw)
  To: Arturo Borrero Gonzalez; +Cc: Netfilter Development Mailing list

On Tue, Jan 21, 2014 at 01:26:41PM +0100, Arturo Borrero Gonzalez wrote:
> Hi there,
> 
> I have this:
> 
> % make clean && make -j8 && make install
> 
> -e   CC src/parser.c
> -e   CC src/scanner.c
> -e   LD src/nft
> src/scanner.o: In function `nft_realloc':
> /home/aborrero/git/nftables/<stdout>:4146: undefined reference to `rpl_realloc'
> src/scanner.o: In function `nft_alloc':
> /home/aborrero/git/nftables/<stdout>:4134: undefined reference to `rpl_malloc'
> /home/aborrero/git/nftables/<stdout>:4134: undefined reference to `rpl_malloc'
> /home/aborrero/git/nftables/<stdout>:4134: undefined reference to `rpl_malloc'
> src/scanner.o: In function `nft_realloc':
> /home/aborrero/git/nftables/<stdout>:4146: undefined reference to `rpl_realloc'
> /home/aborrero/git/nftables/<stdout>:4146: undefined reference to `rpl_realloc'
> src/scanner.o: In function `nft_alloc':
> /home/aborrero/git/nftables/<stdout>:4134: undefined reference to `rpl_malloc'
> /home/aborrero/git/nftables/<stdout>:4134: undefined reference to `rpl_malloc'
> /home/aborrero/git/nftables/<stdout>:4134: undefined reference to `rpl_malloc'
> /home/aborrero/git/nftables/<stdout>:4134: undefined reference to `rpl_malloc'
> /home/aborrero/git/nftables/<stdout>:4134: undefined reference to `rpl_malloc'
> src/scanner.o: In function `nft_realloc':
> /home/aborrero/git/nftables/<stdout>:4146: undefined reference to `rpl_realloc'
> src/utils.o: In function `xmalloc':
> /home/aborrero/git/nftables/src/utils.c:36: undefined reference to `rpl_malloc'
> src/utils.o: In function `xrealloc':
> /home/aborrero/git/nftables/src/utils.c:44: undefined reference to `rpl_realloc'
> src/parser.o: In function `nft_parse':
> /home/aborrero/git/nftables/src/parser.c:3183: undefined reference to
> `rpl_malloc'
> /home/aborrero/git/nftables/src/parser.c:6193: undefined reference to
> `rpl_malloc'
> collect2: error: ld returned 1 exit status
> 
> Do you have any idea of why?
> 
> my git: 11ba325 (HEAD, origin/master, origin/HEAD, master) bump
> release number to 0.100

You need to run ldconfig after installing the libraries, otherwise the
malloc test will fail and autoconf will replace it by rpl_*.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Can't compile nftables
  2014-01-21 12:26 Can't compile nftables Arturo Borrero Gonzalez
  2014-01-21 12:36 ` Patrick McHardy
@ 2014-01-21 12:36 ` Pablo Neira Ayuso
  1 sibling, 0 replies; 4+ messages in thread
From: Pablo Neira Ayuso @ 2014-01-21 12:36 UTC (permalink / raw)
  To: Arturo Borrero Gonzalez; +Cc: Netfilter Development Mailing list

On Tue, Jan 21, 2014 at 01:26:41PM +0100, Arturo Borrero Gonzalez wrote:
> Hi there,
> 
> I have this:
> 
> % make clean && make -j8 && make install
> 
> -e   CC src/parser.c
> -e   CC src/scanner.c
> -e   LD src/nft
> src/scanner.o: In function `nft_realloc':
> /home/aborrero/git/nftables/<stdout>:4146: undefined reference to `rpl_realloc'
> src/scanner.o: In function `nft_alloc':
> /home/aborrero/git/nftables/<stdout>:4134: undefined reference to `rpl_malloc'
> /home/aborrero/git/nftables/<stdout>:4134: undefined reference to `rpl_malloc'
> /home/aborrero/git/nftables/<stdout>:4134: undefined reference to `rpl_malloc'
> src/scanner.o: In function `nft_realloc':
> /home/aborrero/git/nftables/<stdout>:4146: undefined reference to `rpl_realloc'
> /home/aborrero/git/nftables/<stdout>:4146: undefined reference to `rpl_realloc'
> src/scanner.o: In function `nft_alloc':
> /home/aborrero/git/nftables/<stdout>:4134: undefined reference to `rpl_malloc'
> /home/aborrero/git/nftables/<stdout>:4134: undefined reference to `rpl_malloc'
> /home/aborrero/git/nftables/<stdout>:4134: undefined reference to `rpl_malloc'
> /home/aborrero/git/nftables/<stdout>:4134: undefined reference to `rpl_malloc'
> /home/aborrero/git/nftables/<stdout>:4134: undefined reference to `rpl_malloc'
> src/scanner.o: In function `nft_realloc':
> /home/aborrero/git/nftables/<stdout>:4146: undefined reference to `rpl_realloc'
> src/utils.o: In function `xmalloc':
> /home/aborrero/git/nftables/src/utils.c:36: undefined reference to `rpl_malloc'
> src/utils.o: In function `xrealloc':
> /home/aborrero/git/nftables/src/utils.c:44: undefined reference to `rpl_realloc'
> src/parser.o: In function `nft_parse':
> /home/aborrero/git/nftables/src/parser.c:3183: undefined reference to
> `rpl_malloc'
> /home/aborrero/git/nftables/src/parser.c:6193: undefined reference to
> `rpl_malloc'
> collect2: error: ld returned 1 exit status
> 
> Do you have any idea of why?

Please, check config.log to see if AC_FUNC_MALLOC and
AC_FUNC_REALLOC returned anything that can provide a clue.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Can't compile nftables
  2014-01-21 12:36 ` Patrick McHardy
@ 2014-01-21 13:25   ` Arturo Borrero Gonzalez
  0 siblings, 0 replies; 4+ messages in thread
From: Arturo Borrero Gonzalez @ 2014-01-21 13:25 UTC (permalink / raw)
  To: Patrick McHardy; +Cc: Netfilter Development Mailing list

On 21 January 2014 13:36, Patrick McHardy <kaber@trash.net> wrote:
>
> You need to run ldconfig after installing the libraries, otherwise the
> malloc test will fail and autoconf will replace it by rpl_*.

I think this did the trick.

thanks

-- 
Arturo Borrero González
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-01-21 13:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-21 12:26 Can't compile nftables Arturo Borrero Gonzalez
2014-01-21 12:36 ` Patrick McHardy
2014-01-21 13:25   ` Arturo Borrero Gonzalez
2014-01-21 12:36 ` Pablo Neira Ayuso

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).