Linux 在CentOS 5上构建libcanberra-0.25时出现问题

Linux 在CentOS 5上构建libcanberra-0.25时出现问题,linux,compilation,configure,centos5,Linux,Compilation,Configure,Centos5,我正在尝试为CentOS 5构建Chromium。这是有问题的,因为此发行版中的库很旧,因此需要为其手动构建一些库。 我正在关注下面链接的帖子,它解释了为CentOS构建Chromium需要在本地构建什么 (评论17) 我设法建立了列表中的所有其他库,但我被困在了堪培拉图书馆。 该列表要求我构建libtool-2.2.8。我做得很成功。 然后需要我构建libcanberra-0.25 但是,当我为堪培拉运行./configure时,我得到: checking ltdl.h usability..

我正在尝试为CentOS 5构建Chromium。这是有问题的,因为此发行版中的库很旧,因此需要为其手动构建一些库。 我正在关注下面链接的帖子,它解释了为CentOS构建Chromium需要在本地构建什么

(评论17)

我设法建立了列表中的所有其他库,但我被困在了堪培拉图书馆。 该列表要求我构建libtool-2.2.8。我做得很成功。 然后需要我构建libcanberra-0.25 但是,当我为堪培拉运行./configure时,我得到:

checking ltdl.h usability... yes
checking ltdl.h presence... yes
checking for ltdl.h... yes
checking for lt_dladvise_init in -lltdl... no
configure: error: Unable to find libltdl.
我不明白它在找什么,在哪里。lt_dladvision_init确实不存在于ltdl.h文件中,尽管我已经读到它应该可以从libtools的2.2版本中获得。 对此问题的任何帮助都将不胜感激

完整的./configure日志:

    [user@localhost libcanberra-0.25]$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking whether ln -s works... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... -std=gnu99
checking whether gcc -std=gnu99 and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking whether gcc -std=gnu99 needs -traditional... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking if gcc -std=gnu99 supports -Wall flag... yes
checking if gcc -std=gnu99 supports -W flag... yes
checking if gcc -std=gnu99 supports -Wextra flag... yes
checking if gcc -std=gnu99 supports -pedantic flag... yes
checking if gcc -std=gnu99 supports -pipe flag... yes
checking if gcc -std=gnu99 supports -Wno-long-long flag... yes
checking if gcc -std=gnu99 supports -Winline flag... yes
checking if gcc -std=gnu99 supports -Wvla flag... no
checking if gcc -std=gnu99 supports -Wno-overlength-strings flag... no
checking if gcc -std=gnu99 supports -Wunsafe-loop-optimizations flag... yes
checking if gcc -std=gnu99 supports -Wundef flag... yes
checking if gcc -std=gnu99 supports -Wformat=2 flag... yes
checking if gcc -std=gnu99 supports -Wlogical-op flag... no
checking if gcc -std=gnu99 supports -Wsign-compare flag... yes
checking if gcc -std=gnu99 supports -Wpacked flag... yes
checking if gcc -std=gnu99 supports -Wformat-security flag... yes
checking if gcc -std=gnu99 supports -Wmissing-include-dirs flag... yes
checking if gcc -std=gnu99 supports -Wformat-nonliteral flag... yes
checking if gcc -std=gnu99 supports -Wold-style-definition flag... yes
checking if gcc -std=gnu99 supports -Wpointer-arith flag... yes
checking if gcc -std=gnu99 supports -Winit-self flag... yes
checking if gcc -std=gnu99 supports -Wdeclaration-after-statement flag... yes
checking if gcc -std=gnu99 supports -Wfloat-equal flag... yes
checking if gcc -std=gnu99 supports -Wmissing-declarations flag... yes
checking if gcc -std=gnu99 supports -Wmissing-prototypes flag... yes
checking if gcc -std=gnu99 supports -Wstrict-prototypes flag... yes
checking if gcc -std=gnu99 supports -Wredundant-decls flag... yes
checking if gcc -std=gnu99 supports -Wmissing-noreturn flag... yes
checking if gcc -std=gnu99 supports -Wshadow flag... yes
checking if gcc -std=gnu99 supports -Wendif-labels flag... yes
checking if gcc -std=gnu99 supports -Wstrict-aliasing=2 flag... yes
checking if gcc -std=gnu99 supports -Wcast-align flag... yes
checking if gcc -std=gnu99 supports -Wwrite-strings flag... yes
checking if gcc -std=gnu99 supports -Wno-unused-parameter flag... yes
checking if gcc -std=gnu99 supports -ffast-math flag... yes
checking if gcc -std=gnu99 supports -Wp,-D_FORTIFY_SOURCE=2 flag... yes
checking if gcc -std=gnu99 supports -fno-common flag... yes
checking if gcc -std=gnu99 supports -fdiagnostics-show-option flag... yes
checking if gcc -std=gnu99 supports -fno-strict-aliasing flag... yes
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc -std=gnu99... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 98304
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc -std=gnu99 object... ok
checking for dlfcn.h... yes
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) gcc3
checking how to run the C++ preprocessor... g++ -E
checking for objdir... .libs
checking if gcc -std=gnu99 supports -fno-rtti -fno-exceptions... no
checking for gcc -std=gnu99 option to produce PIC... -fPIC -DPIC
checking if gcc -std=gnu99 PIC flag -fPIC -DPIC works... yes
checking if gcc -std=gnu99 static flag -static works... yes
checking if gcc -std=gnu99 supports -c -o file.o... yes
checking if gcc -std=gnu99 supports -c -o file.o... (cached) yes
checking whether the gcc -std=gnu99 linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... no
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking ltdl.h usability... yes
checking ltdl.h presence... yes
checking for ltdl.h... yes
checking for lt_dladvise_init in -lltdl... no
configure: error: Unable to find libltdl.

看起来您已经安装了devel包,但没有安装实际的lib,请尝试使用通过在我的系统上执行
yum-search-ltdl
找到的
yum-install-libtool-ltdl
安装它。实际上,我获得了libtool-2.2.8库,并使用./configure和sudo-make-install自己构建了它。看起来它建得很好。我查看了ltdl.c和ltdl.h,其中定义了ltdladvision\u init。这一定与方法有关。/为它正在寻找的功能配置测试。我自己构建它可能没有正确完成,我重新安装了libtool-ltdl-1.5.22-7,但它没有任何帮助。。。