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

Re: [leafnode-list] 1.9.24 - Compilation error w/ pcre



david tarin <dtarin99@xxxxxxxxx> writes:

> I just downloaded the source for 1.9.24 and tried to compile it on my redhat 6.2 system.  After compiling PCRE that was included in the tarball I attempted compiling leafnode.  Everything went well until the following error during make.
>
> gcc   -g -O2 -Wall -W -Wstrict-prototypes -Wmissing-prototypes   -o leafnode  nntpd.o strlcpy.o liblnutil.a
> liblnutil.a(pcre_extract.o): In function `pcre_extract':
> /home/dtarin/sources/leafnode-1.9.24.rel/pcre_extract.c:71: undefined reference to `pcre_compile'
> /home/dtarin/sources/leafnode-1.9.24.rel/pcre_extract.c:83: undefined reference to `pcre_exec'
> /home/dtarin/sources/leafnode-1.9.24.rel/pcre_extract.c:106: undefined reference to `pcre_free'
> collect2: ld returned 1 exit status
> make[2]: *** [leafnode] Error 1
> make[2]: Leaving directory `/home/dtarin/sources/leafnode-1.9.24.rel'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/dtarin/sources/leafnode-1.9.24.rel'
> make: *** [all] Error 2
>
> I don't understand what all that means.  Does anyone?

Yes, I do, and it's been my fault -- I made the mistakes in the
Makefile.am and configure.ac, they forget to link leafnode (the nntpd)
against the PCRE library. Now that you installed PCRE, please try to
compile the latest leafnode snapshot from
http://mandree.home.pages.de/leafnode/ and report back. If the snapshot
works for you, fine, if it does not, please include your config.log in
the report.


You can also fix this by adding -lpcre to the failed gcc line, like this:

gcc   -g -O2 -Wall -W -Wstrict-prototypes -Wmissing-prototypes   -o \
leafnode  nntpd.o strlcpy.o liblnutil.a -lpcre

Then type make again to compile the rest.

-- 
Matthias Andree

-- 
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list