[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-wget] Cannot compile current bzr trunk: undefined reference to
From: |
Evgenii Philippov |
Subject: |
Re: [Bug-wget] Cannot compile current bzr trunk: undefined reference to `gzwrite' / `gzclose' / `gzdopen' |
Date: |
Mon, 09 Jan 2012 08:12:25 +0800 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111109 Thunderbird/3.1.16 |
On 03.01.2012 02:55, Evgenii Philippov wrote:
Hi wget folks,
The make fails[...]
I've redone the installation process from the very scratch:
* ran bzr branch in a newly created folder,
* ran bootstrap script.
The bootstrap script told warnings:
on stdout:
Notice from module pipe:
This module is deprecated. Use the module 'spawn-pipe' instead.
Don't forget to
- add "._bootmp/lib/Makefile" to AC_CONFIG_FILES in ./configure.ac,
- mention "lib" in SUBDIRS in ._bootmp/Makefile.am,
- mention "-I ._bootmp/m4" in ACLOCAL_AMFLAGS in Makefile.am,
- mention "._bootmp/m4/gnulib-cache.m4" in EXTRA_DIST in Makefile.am,
- invoke gl_EARLY in ./configure.ac, right after AC_PROG_CC,
- invoke gl_INIT in ./configure.ac.
on stderr:
./bootstrap: no version control for build-aux/*?
//10 files were hidden by * above
cmp: lib/gnulib.mk: No such file or directory
./bootstrap: no version control for lib/*?
//204 files were hidden by * above
./bootstrap: no version control for m4/*?
//152 files were hidden by * above
./bootstrap: no version control for ./ABOUT-NLS?
./bootstrap: no version control for m4/*?
//approx. 15 files were hidden by * above
./bootstrap: no version control for po/*?
//approx. 10 files were hidden by * above
configure.ac:99: installing `build-aux/compile'
configure.ac:56: installing `build-aux/config.guess'
configure.ac:56: installing `build-aux/config.sub'
configure.ac:51: installing `build-aux/install-sh'
configure.ac:51: installing `build-aux/missing'
doc/Makefile.am:49: installing `build-aux/mdate-sh'
doc/Makefile.am:49: installing `build-aux/texinfo.tex'
lib/Makefile.am: installing `build-aux/depcomp'
Makefile.am: installing `./INSTALL'
* ./configure --without-ssl
cat ../configure_out | grep -i gz
<no lines with gz>
cat ../configure_out | grep -i zl
<no lines with zl>
* make
[...warnings skipped]
warc.o: In function `warc_write_buffer': warc.c:(.text+0x20): undefined
reference to `gzwrite'
warc.o: In function `warc_write_end_record': warc.c:(.text+0x6af):
undefined reference to `gzclose'
warc.o: In function `warc_write_start_record': warc.c:(.text+0x1415):
undefined reference to `gzdopen'
* Edited trunk/Makefile; changed a line "LIBS = -lidn" into a line
"LIBS = -lidn -lz".
* Edited trunk/src/Makefile; changed a line "LIBS = -lidn
$(LIB_CLOCK_GETTIME)" into a line "LIBS = -lidn $(LIB_CLOCK_GETTIME)
-lz".
* make
It performed OK.
* make check
tail ../make_check_err
warc.c:(.text+0x20): undefined reference to `gzwrite'
../src/libunittest.a(libunittest_a-warc.o): In function
`warc_write_end_record':
warc.c:(.text+0x6af): undefined reference to `gzclose'
../src/libunittest.a(libunittest_a-warc.o): In function
`warc_write_start_record':
warc.c:(.text+0x1415): undefined reference to `gzdopen'
[skip]
* src/wget --version
GNU Wget 1.13.4-2578 built on linux-gnu.
[skip]
So it compiled to a completion, though "make check" gave errors. I'm too
cautious to install such a wget systemwide.
--
wbr,
e.