[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Adding malloc configure test?

From: Gilles Ganault
Subject: Adding malloc configure test?
Date: Thu, 07 Apr 2011 00:21:38 +0200


I'm no configure/make expert, and need to cross-compile SSHGuard to run on a uClinux-based appliance.

After successfully (?) running "configure", make stops after a few seconds:
-I. -O2 -Wall -std=c99  -D_XOPEN_SOURCE  -O2 -Wall -pedantic
-I/usr/src/baps/uClinux-dist/staging/usr/include   -o sshguard
sshguard.o seekers.o sshguard_whitelist.o sshguard_log.o
sshguard_procauth.o sshguard_blacklist.o sshguard_options.o
sshguard_logsuck.o simclist.o hash_32a.o parser/libparser.a
fwalls/libfwall.a -lpthread

sshguard_options.o: In function `.L17':
sshguard_options.c:(.text+0x1d0): undefined reference to `_rpl_malloc'
fwalls/libfwall.a(command.o): In function `_run_command':

The problem is solved by exporting this variable before running "configure":
export ac_cv_func_malloc_0_nonnull=yes

But I'd like to know how to solve this problem more elegantly: Where should I put this type of settings?

Thank you.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]