LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 01-28-2004, 01:55 PM   #1
asktoby
Member
 
Registered: Jul 2003
Location: Cardiff, England ;)
Distribution: Mandrake 9.1
Posts: 94

Rep: Reputation: 15
Trying to compile leafnode


Hi
I'm trying to compile leafnode. I run
sh ./configure
as it describes in the INSTALL document, and I get the following output:
=============================
[toby@localhost leafnode-1.9.33.rel]$ sh ./configure
checking for a BSD-compatible install... /usr//bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
configure: WARNING: ***
configure: WARNING: *** overriding sysconfdir to /etc/leafnode
configure: WARNING: *** use --sysconfdir to fix
configure: WARNING: *** use --sysconfdir='$prefix/etc' to get default autoconf behaviour
configure: WARNING: ***
checking spooldir... /var/spool/news
checking lockfile... /var/lock/news/fetchnews.lck
checking for gawk... (cached) gawk
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
=============================
I would paste config.log, but it's rather long. I'll post it if someone asks for it, yeah?

I've googled about and can't really tell what is wrong. Usually (well, 70% of the time) I have no problems compiling from source.

I'd really appreciate any advice!
Thanks
Toby
 
Old 01-28-2004, 10:47 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Do you have glibc installed? Do you have write permissions for the directory the source is in?
 
Old 01-29-2004, 01:35 PM   #3
asktoby
Member
 
Registered: Jul 2003
Location: Cardiff, England ;)
Distribution: Mandrake 9.1
Posts: 94

Original Poster
Rep: Reputation: 15
If I go "K/administer your system/remove software" to open rpmdrake then type glibc in the search box, it shows:
glibc-devel-2.3.1-10mdk
glibc-il8ndata-2.3.1-10mdk
glibc_lsb_2.3.1-1mdk

I guess from this I have glibc installed! I don't know a better way to check

As to write permissions, if I navigate to the directory in the Konsole and enter
vi deletethistestfile
it creates a file called deletethistestfile, so I seem to have permissions.

I'd try installing as root, but the INSTALL document says that I should do this step "as user".
 
Old 02-01-2004, 01:50 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Try as root: urpmi gcc.
This may install a newer version of gcc. Also, I wasn't expecting to see the 'devel' at the end of the libgcc display. I'm not at my computer right now to check, but isn't this the source, rather than the actual library?

Just fyi. When I install from source, I download the .tgz tarball into a subdirectory of my home directory and su to root just before the make install phase. When I'm done, I delete the installation directory and save the source tarball in case I need to re-install later. An exception of course being the kernel source which is in /usr/src/.

---

After submitting my reply, I looked at a website for information on LM9.1 gcc versions. gcc 2.3.1 seems to be correct, but I'm not certain that everything is installed.
Could you cut and paste from the config.log for the part were the error showed up?

Last edited by jschiwal; 02-01-2004 at 01:54 PM.
 
Old 02-02-2004, 12:55 PM   #5
asktoby
Member
 
Registered: Jul 2003
Location: Cardiff, England ;)
Distribution: Mandrake 9.1
Posts: 94

Original Poster
Rep: Reputation: 15
I su'd to root, and entered urpmi gcc. It returned:
"Everything already installed"
(I expect the "devel" is there because at some point in history, when I was trying to get something installed, I was told to install gcc. I expect I used the mandrake installer utility and clicked everything with gcc in it!)

Here follows all of config.log. I don't feel confident enough to only post what I think are the important parts.


This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.57. Invocation command line was

$ ./configure

## --------- ##
## Platform. ##
## --------- ##

hostname = localhost
uname -m = i686
uname -r = 2.4.21-0.13mdksecure
uname -s = Linux
uname -v = #1 SMP Fri Mar 14 14:10:36 EST 2003

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /usr//bin
PATH: /bin
PATH: /usr/bin
PATH: .
PATH: /usr/local/bin
PATH: /usr/X11R6/bin
PATH: /usr/games
PATH: /home/toby/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1337: checking for a BSD-compatible install
configure:1391: result: /usr//bin/install -c
configure:1402: checking whether build environment is sane
configure:1445: result: yes
configure:1478: checking for gawk
configure:1494: found /usr//bin/gawk
configure:1504: result: gawk
configure:1514: checking whether make sets $(MAKE)
configure:1534: result: yes
configure:1691: checking whether to enable maintainer-specific portions of Makefiles
configure:1700: result: no
configure:1745: WARNING: ***
configure:1747: WARNING: *** overriding sysconfdir to /etc/leafnode
configure:1749: WARNING: *** use --sysconfdir to fix
configure:1751: WARNING: *** use --sysconfdir='$prefix/etc' to get default autoconf behaviour
configure:1753: WARNING: ***
configure:1766: checking spooldir
configure:1786: result: /var/spool/news
configure:1790: checking lockfile
configure:1810: result: /var/lock/news/fetchnews.lck
configure:1818: checking for gawk
configure:1844: result: gawk
configure:1900: checking for gcc
configure:1916: found /usr//bin/gcc
configure:1926: result: gcc
configure:2170: checking for C compiler version
configure:2173: gcc --version </dev/null >&5
gcc-3.2.2 (GCC) 3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2176: $? = 0
configure:2178: gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2.2/specs
Configured with: ../configure --prefix=/usr --libdir=/usr/lib --with-slibdir=/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --enable-long-long --enable-__cxa_atexit --enable-languages=c,c++,ada,f77,objc,java --host=i586-mandrake-linux-gnu --with-system-zlib
Thread model: posix
gcc version 3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk)
configure:2181: $? = 0
configure:2183: gcc -V </dev/null >&5
gcc-3.2.2: argument to `-V' is missing
configure:2186: $? = 1
configure:2210: checking for C compiler default output
configure:2213: gcc conftest.c >&5
configure:2216: $? = 0
configure:2262: result: a.out

configure:2267: checking whether the C compiler works
configure:2273: ./a.out
./configure: line 1: ./a.out: Permission denied
configure:2276: $? = 126
configure:2285: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_env_ARGV0_set=
ac_cv_env_ARGV0_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_PCRECONFIG_set=
ac_cv_env_PCRECONFIG_value=
ac_cv_env_TCPD_set=
ac_cv_env_TCPD_value=
ac_cv_env_TCPSERVER_set=
ac_cv_env_TCPSERVER_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_exeext=
ac_cv_path_install='/usr//bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /home/toby/Documents/downloads/leafnode/leafnode-1.9.33.rel/missing --run aclocal-1.7'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /home/toby/Documents/downloads/leafnode/leafnode-1.9.33.rel/missing --run tar'
AR=''
ARGV0=''
AUTOCONF='${SHELL} /home/toby/Documents/downloads/leafnode/leafnode-1.9.33.rel/missing --run autoconf'
AUTOHEADER='${SHELL} /home/toby/Documents/downloads/leafnode/leafnode-1.9.33.rel/missing --run autoheader'
AUTOMAKE='${SHELL} /home/toby/Documents/downloads/leafnode/leafnode-1.9.33.rel/missing --run automake-1.7'
AWK='gawk'
BINDIR=''
CC='gcc'
CCDEPMODE=''
CFLAGS=''
CPP=''
CPPFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
GCC_FLAGS=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LOCKFILE='/var/lock/news/fetchnews.lck'
LTLIBOBJS=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /home/toby/Documents/downloads/leafnode/leafnode-1.9.33.rel/missing --run makeinfo'
OBJEXT=''
PACKAGE='leafnode'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PCRECONFIG=''
PCREDEP=''
PCRELIB=''
PCRESUBDIR_FALSE=''
PCRESUBDIR_TRUE=''
RANLIB=''
RPM=''
RPMSRC=''
SET_MAKE=''
SHELL='/bin/sh'
SPOOLDIR='/var/spool/news'
STRIP=''
SYSCONFDIR=''
TCPD=''
TCPSERVER=''
VERSION='1.9.33.rel'
ac_ct_AR=''
ac_ct_CC='gcc'
ac_ct_RANLIB=''
ac_ct_STRIP=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include=''
am__quote=''
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${prefix}/share'
exec_prefix='NONE'
host_alias=''
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/home/toby/Documents/downloads/leafnode/leafnode-1.9.33.rel/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
msysconfdir=''
oldincludedir='/usr/include'
prefix='NONE'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
subdirs=''
sysconfdir='/etc/leafnode'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE "leafnode"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define VERSION "1.9.33.rel"

configure: exit 1

Last edited by asktoby; 02-04-2004 at 03:11 AM.
 
Old 02-04-2004, 04:00 PM   #6
asktoby
Member
 
Registered: Jul 2003
Location: Cardiff, England ;)
Distribution: Mandrake 9.1
Posts: 94

Original Poster
Rep: Reputation: 15
I've highlighted in red the important looking bit.
a.out never gets created. Unless it gets deleted immediately maybe. It's certainly not there now anyway.
 
Old 02-05-2004, 06:42 PM   #7
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
The line with 'configure: 2183' is
the first part that looks interesting to me. I'm not at my home computer, so I can't check what the gcc -V option is for, but it failed. Try man gcc and check the -V option. Also, what are the permissions of the directory where you are executing the script. (i.e. umask number). Can you execute the script with ./configure alone. If not, the partition may be mounted with the noexec option.

Generally, when compiling programs from source, expand the tarball into your home directory. The make install step will copy the needed programs and libraries to the places they need to go.
Then you can delete the project directory, and save the original tar-ball source just in case.

Try compiling your own program, like a simple HelloWorld.c program and see if that works.

Last edited by jschiwal; 02-05-2004 at 06:51 PM.
 
Old 02-06-2004, 02:23 AM   #8
asktoby
Member
 
Registered: Jul 2003
Location: Cardiff, England ;)
Distribution: Mandrake 9.1
Posts: 94

Original Poster
Rep: Reputation: 15
GCC Manpage:
http://scv.bu.edu/SCV/Archive/linux-...pages/gcc.html

From that, -V specifies which version of GCC to run, in case multiple versions are installed.

I'll check the directory permissions when I get home...
 
Old 02-08-2004, 01:05 PM   #9
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Here is a link which shows common bash exit codes. An exit code of 126 means that the command couldn't execute. This means that either the command entered was not an executable, or a problem with permission settings.

http://www.linuxvalley.it/encycloped...exitcodes.html

By the way, were did you untar the leafnode source. Try untarring it in your home directory. See if it works form there. You will need to su to root before the 'make install' command.
 
Old 02-12-2004, 02:17 AM   #10
asktoby
Member
 
Registered: Jul 2003
Location: Cardiff, England ;)
Distribution: Mandrake 9.1
Posts: 94

Original Poster
Rep: Reputation: 15
Just to be polite, I'll explain that I'm moving house this week, so this project is on hold for ~10 days. I didn't want you to think that I'd either:

-solved the problem and not explained how
-given up
-rudely ignored your help
 
Old 02-19-2004, 02:19 PM   #11
asktoby
Member
 
Registered: Jul 2003
Location: Cardiff, England ;)
Distribution: Mandrake 9.1
Posts: 94

Original Poster
Rep: Reputation: 15
Okay, all moved in now - surrounded by wires lol

...and limited progress!

I had been unpacking the leafnode .tar.bz2 using KDE's right-click function. This time, I deleted everything and unpacked using the bzip and tar commands from the Konsole. It seems to have behaved a little better with respect to pemissions - in now succeeds at the ./configure stage!

still as user, I type
make
and I get a fresh error

apologies for the ream of text, but it seems the best way to be sure all the info is there.

I've highlighted the exciting parts!


[toby@localhost leafnode-1.9.33.rel]$ make
( echo '/* DO NOT EDIT! This file is auto-generated by Makefile. */' ; \
echo '/* user programs go into /usr/local/bin */'; \
echo '/* system programs go into /usr/local/sbin */'; \
echo 'const char *spooldir = "/var/spool/news" ;' ; \
echo 'const char *sysconfdir = "/etc/leafnode" ;' ; \
echo 'const char *lockfile = "/var/lock/news/fetchnews.lck" ;' ; \
echo 'const char *version = "1.9.33.rel" ;' ) >config.c
make all-recursive
make[1]: Entering directory `/home/toby/Documents/downloads/leafnode/leafnode-1.9.33.rel'
Making all in pcre
make[2]: Entering directory `/home/toby/Documents/downloads/leafnode/leafnode-1.9.33.rel/pcre'
/bin/sh ./libtool --mode=compile gcc -c -g -O2 -I. ./maketables.c
gcc -c -g -O2 -I. ./maketables.c -o maketables.o
echo timestamp > maketables.lo
/bin/sh ./libtool --mode=compile gcc -c -g -O2 -I. ./get.c
gcc -c -g -O2 -I. ./get.c -o get.o
echo timestamp > get.lo
/bin/sh ./libtool --mode=compile gcc -c -g -O2 -I. ./study.c
gcc -c -g -O2 -I. ./study.c -o study.o
echo timestamp > study.lo
gcc -c -g -O2 -I. ./dftables.c
/bin/sh ./libtool --mode=link gcc -o dftables dftables.o
gcc -o dftables dftables.o
./dftables >./chartables.c
/bin/sh ./libtool --mode=compile gcc -c -g -O2 -I. ./pcre.c
gcc -c -g -O2 -I. ./pcre.c -o pcre.o
echo timestamp > pcre.lo
rm -f libpcre.la
/bin/sh ./libtool --mode=link gcc -rpath /usr/local/lib -version-info \
'0:1:0' -o libpcre.la maketables.lo get.lo study.lo pcre.lo
rm -fr .libs/libpcre.la .libs/libpcre.* .libs/libpcre.*
ar cru .libs/libpcre.a maketables.o get.o study.o pcre.o
ranlib .libs/libpcre.a
creating libpcre.la
(cd .libs && rm -f libpcre.la && ln -s ../libpcre.la libpcre.la)
/bin/sh ./libtool --mode=compile gcc -c -g -O2 -I. ./pcreposix.c
gcc -c -g -O2 -I. ./pcreposix.c -o pcreposix.o
echo timestamp > pcreposix.lo
rm -f libpcreposix.la
/bin/sh ./libtool --mode=link gcc -rpath /usr/local/lib -version-info \
'0:0:0' -o libpcreposix.la pcreposix.lo
rm -fr .libs/libpcreposix.la .libs/libpcreposix.* .libs/libpcreposix.*
ar cru .libs/libpcreposix.a pcreposix.o
ranlib .libs/libpcreposix.a
creating libpcreposix.la
(cd .libs && rm -f libpcreposix.la && ln -s ../libpcreposix.la libpcreposix.la)
gcc -c -g -O2 -I. ./pcretest.c
/bin/sh ./libtool --mode=link gcc -g -O2 -o pcretest pcretest.o \
libpcre.la libpcreposix.la
gcc -g -O2 -o pcretest pcretest.o ./.libs/libpcre.a ./.libs/libpcreposix.a
gcc -c -g -O2 -I. -DIS_UNIX ./pcregrep.c
/bin/sh ./libtool --mode=link gcc -g -O2 -o pcregrep pcregrep.o libpcre.la
gcc -g -O2 -o pcregrep pcregrep.o ./.libs/libpcre.a
make[2]: Leaving directory `/home/toby/Documents/downloads/leafnode/leafnode-1.9.33.rel/pcre'
Making all in t
make[2]: Entering directory `/home/toby/Documents/downloads/leafnode/leafnode-1.9.33.rel/t'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/toby/Documents/downloads/leafnode/leafnode-1.9.33.rel/t'
Making all in tools
make[2]: Entering directory `/home/toby/Documents/downloads/leafnode/leafnode-1.9.33.rel/tools'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/toby/Documents/downloads/leafnode/leafnode-1.9.33.rel/tools'
Making all in .
make[2]: Entering directory `/home/toby/Documents/downloads/leafnode/leafnode-1.9.33.rel'
if gcc -DHAVE_CONFIG_H -I. -I. -I. -Ipcre -g -O2 -Wall -W -Wstrict-prototypes -Wmissing-prototypes -MT nntputil.o -MD -MP -MF ".deps/nntputil.Tpo" \
-c -o nntputil.o `test -f 'nntputil.c' || echo './'`nntputil.c; \
then mv ".deps/nntputil.Tpo" ".deps/nntputil.Po"; \
else rm -f ".deps/nntputil.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -Ipcre -g -O2 -Wall -W -Wstrict-prototypes -Wmissing-prototypes -MT configutil.o -MD -MP -MF ".deps/configutil.Tpo" \
-c -o configutil.o `test -f 'configutil.c' || echo './'`configutil.c; \
then mv ".deps/configutil.Tpo" ".deps/configutil.Po"; \
else rm -f ".deps/configutil.Tpo"; exit 1; \
fi
configutil.c: In function `readconfig':
configutil.c:161: warning: implicit declaration of function `rpl_malloc'
if gcc -DHAVE_CONFIG_H -I. -I. -I. -Ipcre -g -O2 -Wall -W -Wstrict-prototypes -Wmissing-prototypes -MT xoverutil.o -MD -MP -MF ".deps/xoverutil.Tpo" \
-c -o xoverutil.o `test -f 'xoverutil.c' || echo './'`xoverutil.c; \
then mv ".deps/xoverutil.Tpo" ".deps/xoverutil.Po"; \
else rm -f ".deps/xoverutil.Tpo"; exit 1; \
fi
xoverutil.c: In function `getxover':
xoverutil.c:306: warning: implicit declaration of function `rpl_malloc'
if gcc -DHAVE_CONFIG_H -I. -I. -I. -Ipcre -g -O2 -Wall -W -Wstrict-prototypes -Wmissing-prototypes -MT activutil.o -MD -MP -MF ".deps/activutil.Tpo" \
-c -o activutil.o `test -f 'activutil.c' || echo './'`activutil.c; \
then mv ".deps/activutil.Tpo" ".deps/activutil.Po"; \
else rm -f ".deps/activutil.Tpo"; exit 1; \
fi
activutil.c: In function `readactive':
activutil.c:455: warning: implicit declaration of function `rpl_malloc'
if gcc -DHAVE_CONFIG_H -I. -I. -I. -Ipcre -g -O2 -Wall -W -Wstrict-prototypes -Wmissing-prototypes -MT activutil_resolve.o -MD -MP -MF ".deps/activutil_resolve.Tpo" \
-c -o activutil_resolve.o `test -f 'activutil_resolve.c' || echo './'`activutil_resolve.c; \
then mv ".deps/activutil_resolve.Tpo" ".deps/activutil_resolve.Po"; \
else rm -f ".deps/activutil_resolve.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -Ipcre -g -O2 -Wall -W -Wstrict-prototypes -Wmissing-prototypes -MT miscutil.o -MD -MP -MF ".deps/miscutil.Tpo" \
-c -o miscutil.o `test -f 'miscutil.c' || echo './'`miscutil.c; \
then mv ".deps/miscutil.Tpo" ".deps/miscutil.Po"; \
else rm -f ".deps/miscutil.Tpo"; exit 1; \
fi
miscutil.c: In function `lookup':
miscutil.c:209: warning: implicit declaration of function `rpl_malloc'
miscutil.c:212: warning: implicit declaration of function `rpl_realloc'
if gcc -DHAVE_CONFIG_H -I. -I. -I. -Ipcre -g -O2 -Wall -W -Wstrict-prototypes -Wmissing-prototypes -MT artutil.o -MD -MP -MF ".deps/artutil.Tpo" \
-c -o artutil.o `test -f 'artutil.c' || echo './'`artutil.c; \
then mv ".deps/artutil.Tpo" ".deps/artutil.Po"; \
else rm -f ".deps/artutil.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -Ipcre -g -O2 -Wall -W -Wstrict-prototypes -Wmissing-prototypes -MT filterutil.o -MD -MP -MF ".deps/filterutil.Tpo" \
-c -o filterutil.o `test -f 'filterutil.c' || echo './'`filterutil.c; \
then mv ".deps/filterutil.Tpo" ".deps/filterutil.Po"; \
else rm -f ".deps/filterutil.Tpo"; exit 1; \
fi
filterutil.c: In function `readfilter':
filterutil.c:68: warning: implicit declaration of function `rpl_malloc'
if gcc -DHAVE_CONFIG_H -I. -I. -I. -Ipcre -g -O2 -Wall -W -Wstrict-prototypes -Wmissing-prototypes -MT syslog.o -MD -MP -MF ".deps/syslog.Tpo" \
-c -o syslog.o `test -f 'syslog.c' || echo './'`syslog.c; \
then mv ".deps/syslog.Tpo" ".deps/syslog.Po"; \
else rm -f ".deps/syslog.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -Ipcre -g -O2 -Wall -W -Wstrict-prototypes -Wmissing-prototypes -MT getaline.o -MD -MP -MF ".deps/getaline.Tpo" \
-c -o getaline.o `test -f 'getaline.c' || echo './'`getaline.c; \
then mv ".deps/getaline.Tpo" ".deps/getaline.Po"; \
else rm -f ".deps/getaline.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -Ipcre -g -O2 -Wall -W -Wstrict-prototypes -Wmissing-prototypes -MT mysetvbuf.o -MD -MP -MF ".deps/mysetvbuf.Tpo" \
-c -o mysetvbuf.o `test -f 'mysetvbuf.c' || echo './'`mysetvbuf.c; \
then mv ".deps/mysetvbuf.Tpo" ".deps/mysetvbuf.Po"; \
else rm -f ".deps/mysetvbuf.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -Ipcre -g -O2 -Wall -W -Wstrict-prototypes -Wmissing-prototypes -MT lockfile.o -MD -MP -MF ".deps/lockfile.Tpo" \
-c -o lockfile.o `test -f 'lockfile.c' || echo './'`lockfile.c; \
then mv ".deps/lockfile.Tpo" ".deps/lockfile.Po"; \
else rm -f ".deps/lockfile.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -Ipcre -g -O2 -Wall -W -Wstrict-prototypes -Wmissing-prototypes -MT validatefqdn.o -MD -MP -MF ".deps/validatefqdn.Tpo" \
-c -o validatefqdn.o `test -f 'validatefqdn.c' || echo './'`validatefqdn.c; \
then mv ".deps/validatefqdn.Tpo" ".deps/validatefqdn.Po"; \
else rm -f ".deps/validatefqdn.Tpo"; exit 1; \
fi
In file included from validatefqdn.c:46:

leafnode.h:51: parse error before "__extension__"
leafnode.h:51: warning: implicit declaration of function `rpl_malloc'
leafnode.h:51: `__len' undeclared here (not in a function)
leafnode.h:51: initializer element is not constant
leafnode.h:51: parse error before "if"
leafnode.h:51: warning: type defaults to `int' in declaration of `__retval'
leafnode.h:51: conflicting types for `__retval'
leafnode.h:51: previous declaration of `__retval'
leafnode.h:51: warning: data definition has no type or storage class
leafnode.h:51: parse error before '}' token

make[2]: *** [validatefqdn.o] Error 1
make[2]: Leaving directory `/home/toby/Documents/downloads/leafnode/leafnode-1.9.33.rel'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/toby/Documents/downloads/leafnode/leafnode-1.9.33.rel'
make: *** [all] Error 2
[toby@localhost leafnode-1.9.33.rel]$
 
Old 02-24-2004, 04:31 AM   #12
asktoby
Member
 
Registered: Jul 2003
Location: Cardiff, England ;)
Distribution: Mandrake 9.1
Posts: 94

Original Poster
Rep: Reputation: 15
I have solved the problem by joining the leafnode mailing list. Someone there pointed out that there was a newer version of leafnode, leafnode-1.9.51.rel, that solved my problem. It is now compiled and installed!

Thanks all for your advice.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't install leafnode in SUSE v9.3 hanasi SUSE / openSUSE 3 09-03-2005 09:43 PM
ntop compile/post-compile problem? tjb Linux - Software 3 12-28-2004 04:22 PM
Trying to compile Leafnode asktoby Linux - Software 0 02-04-2004 03:14 AM
leafnode can't access server from network vrillusions Linux - Software 1 05-22-2003 10:13 PM
Compile Sifvion Programming 2 07-19-2002 09:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 10:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration