Autor Tópico: [RESOLVIDO] taglib 1.4: Não consigo compilar!  (Lida 1363 vezes)

Offline brunofin

  • Usuário Ubuntu
  • *
  • Mensagens: 72
    • Ver perfil
[RESOLVIDO] taglib 1.4: Não consigo compilar!
« Online: 24 de Janeiro de 2009, 16:58 »
Olá! Estou tentando compilar o taglib 1.4 em um Ubuntu 8.10 AMD64 para poder instalar o amarok-svn. Está dando um problema estranho e eu não sei o que pode ser. Quando eu faço ./configure ele diz que está tudo certo e eu posso prosseguir para o make, mas nesta hora dá um erro.

./configure:

Código: [Selecionar]
bruno@bruno-laptop:~/taglib-1.4$ ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for -p flag to install... yes
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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 dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
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 whether gcc is blacklisted... no
checking whether g++ supports -Wmissing-format-attribute... yes
checking whether gcc supports -Wmissing-format-attribute... yes
checking whether g++ supports -Wundef... yes
checking whether g++ supports -Wno-long-long... yes
checking whether g++ supports -Wnon-virtual-dtor... yes
checking whether g++ supports -fno-exceptions... yes
checking whether g++ supports -fno-check-new... yes
checking whether g++ supports -fno-common... yes
checking whether g++ supports -fexceptions... yes
checking how to run the C++ preprocessor... g++ -E
checking whether g++ supports -O0... yes
checking whether g++ supports -Wl,--no-undefined... yes
checking whether g++ supports -Wl,--allow-shlib-undefined... yes
not using lib directory suffix
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
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 dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc 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 whether stripping libraries is possible... yes
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... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
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
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... 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 whether stripping libraries is possible... yes
checking for shl_load... (cached) no
checking for shl_load in -ldld... (cached) no
checking for dlopen... (cached) no
checking for dlopen in -ldl... (cached) yes
checking whether a program can dlopen itself... (cached) yes
checking whether a statically linked program can dlopen itself... (cached) yes
appending configuration tag "F77" to libtool
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking if bindings should be compiled... yes
checking if examples should be compiled... yes
checking if taglib should be compiled... yes
checking if tests should be compiled... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: WARNING:  Makefile.in seems to ignore the --datarootdir setting
config.status: creating bindings/Makefile
config.status: WARNING:  bindings/Makefile.in seems to ignore the --datarootdir setting
config.status: creating bindings/c/Makefile
config.status: WARNING:  bindings/c/Makefile.in seems to ignore the --datarootdir setting
config.status: creating examples/Makefile
config.status: WARNING:  examples/Makefile.in seems to ignore the --datarootdir setting
config.status: creating taglib/Makefile
config.status: WARNING:  taglib/Makefile.in seems to ignore the --datarootdir setting
config.status: creating taglib/ape/Makefile
config.status: WARNING:  taglib/ape/Makefile.in seems to ignore the --datarootdir setting
config.status: creating taglib/flac/Makefile
config.status: WARNING:  taglib/flac/Makefile.in seems to ignore the --datarootdir setting
config.status: creating taglib/mpc/Makefile
config.status: WARNING:  taglib/mpc/Makefile.in seems to ignore the --datarootdir setting
config.status: creating taglib/mpeg/Makefile
config.status: WARNING:  taglib/mpeg/Makefile.in seems to ignore the --datarootdir setting
config.status: creating taglib/mpeg/id3v1/Makefile
config.status: WARNING:  taglib/mpeg/id3v1/Makefile.in seems to ignore the --datarootdir setting
config.status: creating taglib/mpeg/id3v2/Makefile
config.status: WARNING:  taglib/mpeg/id3v2/Makefile.in seems to ignore the --datarootdir setting
config.status: creating taglib/mpeg/id3v2/frames/Makefile
config.status: WARNING:  taglib/mpeg/id3v2/frames/Makefile.in seems to ignore the --datarootdir setting
config.status: creating taglib/ogg/Makefile
config.status: WARNING:  taglib/ogg/Makefile.in seems to ignore the --datarootdir setting
config.status: creating taglib/ogg/flac/Makefile
config.status: WARNING:  taglib/ogg/flac/Makefile.in seems to ignore the --datarootdir setting
config.status: creating taglib/ogg/vorbis/Makefile
config.status: WARNING:  taglib/ogg/vorbis/Makefile.in seems to ignore the --datarootdir setting
config.status: creating taglib/toolkit/Makefile
config.status: WARNING:  taglib/toolkit/Makefile.in seems to ignore the --datarootdir setting
config.status: creating tests/Makefile
config.status: WARNING:  tests/Makefile.in seems to ignore the --datarootdir setting
config.status: creating taglib/taglib-config
config.status: creating taglib/taglib.pc
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands

Good - your configure finished. Start make now


make:

Código: [Selecionar]
bruno@bruno-laptop:~/taglib-1.4$ make
make  all-recursive
make[1]: Entrando no diretório `/home/bruno/taglib-1.4'
Making all in taglib
make[2]: Entrando no diretório `/home/bruno/taglib-1.4/taglib'
Making all in toolkit
make[3]: Entrando no diretório `/home/bruno/taglib-1.4/taglib/toolkit'
if /bin/bash ../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I../..     -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wno-non-virtual-dtor -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common  -MT tstring.lo -MD -MP -MF ".deps/tstring.Tpo" -c -o tstring.lo tstring.cpp; \
then mv -f ".deps/tstring.Tpo" ".deps/tstring.Plo"; else rm -f ".deps/tstring.Tpo"; exit 1; fi
tstring.cpp: In function 'short unsigned int TagLib::byteSwap(short unsigned int)':
tstring.cpp:32: warning: suggest parentheses around arithmetic in operand of |
tstring.cpp:32: warning: conversion to 'short unsigned int' from 'int' may alter its value
tstring.cpp: In function 'short unsigned int TagLib::combine(unsigned char, unsigned char)':
tstring.cpp:37: warning: conversion to 'short unsigned int' from 'int' may alter its value
tstring.cpp: In constructor 'TagLib::String::String(const std::string&, TagLib::String::Type)':
tstring.cpp:91: warning: conversion to 'int' from 'size_t' may alter its value
tstring.cpp: In constructor 'TagLib::String::String(const char*, TagLib::String::Type)':
tstring.cpp:124: error: '::strlen' has not been declared
tstring.cpp: In member function 'std::string TagLib::String::to8Bit(bool) const':
tstring.cpp:213: warning: conversion to 'int' from 'long unsigned int' may alter its value
tstring.cpp:232: warning: conversion to 'int' from 'long int' may alter its value
tstring.cpp: In member function 'const char* TagLib::String::toCString(bool) const':
tstring.cpp:250: error: 'strcpy' was not declared in this scope
tstring.cpp: In member function 'int TagLib::String::find(const TagLib::String&, int) const':
tstring.cpp:280: warning: conversion to 'int' from 'size_t' may alter its value
tstring.cpp: In member function 'TagLib::String TagLib::String::substr(TagLib::uint, TagLib::uint) const':
tstring.cpp:288: warning: conversion to 'TagLib::uint' from 'long unsigned int' may alter its value
tstring.cpp: In member function 'TagLib::uint TagLib::String::size() const':
tstring.cpp:320: warning: conversion to 'TagLib::uint' from 'size_t' may alter its value
tstring.cpp: In member function 'TagLib::ByteVector TagLib::String::data(TagLib::String::Type) const':
tstring.cpp:348: warning: conversion to 'TagLib::uint' from 'size_t' may alter its value
tstring.cpp:361: warning: conversion to 'char' from 'int' may alter its value
tstring.cpp:362: warning: conversion to 'char' from 'int' may alter its value
tstring.cpp:373: warning: conversion to 'char' from 'int' may alter its value
tstring.cpp:374: warning: conversion to 'char' from 'int' may alter its value
tstring.cpp:385: warning: conversion to 'char' from 'int' may alter its value
tstring.cpp:386: warning: conversion to 'char' from 'int' may alter its value
tstring.cpp: In member function 'TagLib::String TagLib::String::stripWhiteSpace() const':
tstring.cpp:420: warning: suggest parentheses around && within ||
tstring.cpp: In static member function 'static TagLib::String TagLib::String::number(int)':
tstring.cpp:462: warning: conversion to 'int' from 'long unsigned int' may alter its value
tstring.cpp: In member function 'TagLib::String& TagLib::String::operator=(const char*)':
tstring.cpp:593: error: '::strlen' has not been declared
tstring.cpp: In member function 'void TagLib::String::prepare(TagLib::String::Type)':
tstring.cpp:671: warning: conversion to 'int' from 'long unsigned int' may alter its value
tstring.cpp:692: warning: conversion to 'int' from 'long int' may alter its value
make[3]: ** [tstring.lo] Erro 1
make[3]: Saindo do diretório `/home/bruno/taglib-1.4/taglib/toolkit'
make[2]: ** [all-recursive] Erro 1
make[2]: Saindo do diretório `/home/bruno/taglib-1.4/taglib'
make[1]: ** [all-recursive] Erro 1
make[1]: Saindo do diretório `/home/bruno/taglib-1.4'
make: ** [all] Erro 2

Realmente não sei o que fazer. Eu acho que pode estar faltando algum pacote, mas daí o configure teria avisado, acredito...
Qualquer ajuda é bem-vinda!
« Última modificação: 24 de Janeiro de 2009, 17:26 por brunofin »
Desenvolvedor full-stack Web - Django, AngularJS, ExtJS.
Meu canal do YouTube

Offline brunofin

  • Usuário Ubuntu
  • *
  • Mensagens: 72
    • Ver perfil
Re: taglib 1.4: Não consigo compilar!
« Resposta #1 Online: 24 de Janeiro de 2009, 17:21 »
Tá eu descobri que a versão 1.4 já está desatualizada, to baixando a versão 1.5 e vou tentar compilar. Posto aqui se resolver meu problema.
Desenvolvedor full-stack Web - Django, AngularJS, ExtJS.
Meu canal do YouTube

Offline brunofin

  • Usuário Ubuntu
  • *
  • Mensagens: 72
    • Ver perfil
Re: taglib 1.4: Não consigo compilar!
« Resposta #2 Online: 24 de Janeiro de 2009, 17:26 »
É, realmente a versão 1.5 funcionou. Pra quem está procurando também, eu peguei o código fonte aqui, no site do KDE:

http://developer.kde.org/~wheeler/taglib.html
Desenvolvedor full-stack Web - Django, AngularJS, ExtJS.
Meu canal do YouTube