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

Compile error with daapd



Hi
I'm very new to Linux and am having a problem compiling the latest
version of Daapd (v0.2.4a). I have successfully compiled the dependent
programs Zlib and also libid3tag, but I keep getting an error message
when trying to compile daapd (shown below).
It seems to be something to do with a function called bastring.cc of
which I have a very old version on my machine (dated 2001). I tried to
compile this and got a load of error messages as well. I also can't
find a newer version of this.

Reason I am trying to upgrade is that Itunes is recognising the Linux
server as a shared folder, but when I click on it there is no music in
there and itunes just keeps jumping back to the main library. I have
latest version of itunes running on a Winxp laptop which my wife uses
and it would be really great if she could access to the music as well.

I thought the problem maybe related to me having an old version of
daapd hence the reason for trying to upgrade.

If anyone could give me just an idea of where I need to go to fix this
compile error it would be really appreciated.

Thanks in advance
G

Error text shown below:
-------
root@martian:/usr/local/bin/gsatest/daapd-0.2.4a# make
cd daaplib/src && make
make[1]: Entering directory
`/usr/local/bin/gsatest/daapd-0.2.4a/daaplib/src'
g++ -Wall -Wno-multichar -I../include -c taginput.cpp
g++ -Wall -Wno-multichar -I../include -c tagoutput.cpp
g++ -Wall -Wno-multichar -I../include -c registry.cpp
ar rs libdaaplib.a taginput.o tagoutput.o registry.o
make[1]: Leaving directory
`/usr/local/bin/gsatest/daapd-0.2.4a/daaplib/src'
if test ! -e libhttpd/Site.mm; then cd libhttpd && ./configure; fi
creating cache ./config.cache
Configuring libhttpd
checking for gcc... g++
checking whether the C compiler (g++  ) works... yes
checking whether the C compiler (g++  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether g++ accepts -g... yes
checking for ranlib... ranlib
checking how to run the C preprocessor... g++ -E
checking for string.h... yes
checking for strings.h... yes
checking for stdarg.h... yes
checking for unistd.h... yes
checking for -lsocket... no
checking for -lnsl... yes
updating cache ./config.cache
creating ./config.status
creating Site.mm
creating src/config.h

HTTPD Library Configuration complete

cd libhttpd && make
make[1]: Entering directory
`/usr/local/bin/gsatest/daapd-0.2.4a/libhttpd'

Regenerating Makefile.
...
Done.
Done.
make[2]: Entering directory
`/usr/local/bin/gsatest/daapd-0.2.4a/libhttpd'

--> [src] directory
make[3]: Entering directory
`/usr/local/bin/gsatest/daapd-0.2.4a/libhttpd/src'

Regenerating Makefile.
........
Done.
Done.
make[4]: Entering directory
`/usr/local/bin/gsatest/daapd-0.2.4a/libhttpd/src'
g++ -Wall -I../src -g -I../ -I/usr/local/include  -D_OS_UNIX -c
protocol.c
g++ -Wall -I../src -g -I../ -I/usr/local/include  -D_OS_UNIX -c api.c
g++ -Wall -I../src -g -I../ -I/usr/local/include  -D_OS_UNIX -c
version.c
g++ -Wall -I../src -g -I../ -I/usr/local/include  -D_OS_UNIX -c
ip_acl.c
g++ -Wall -I../src -g -I../ -I/usr/local/include  -D_OS_UNIX -c
select.c
ar rc libhttpd-persistent.a  protocol.o api.o version.o ip_acl.o
select.o
ranlib libhttpd-persistent.a
make[4]: Leaving directory
`/usr/local/bin/gsatest/daapd-0.2.4a/libhttpd/src'
make[3]: Leaving directory
`/usr/local/bin/gsatest/daapd-0.2.4a/libhttpd/src'
<-- [src] done
make[2]: Leaving directory
`/usr/local/bin/gsatest/daapd-0.2.4a/libhttpd'
make[1]: Leaving directory
`/usr/local/bin/gsatest/daapd-0.2.4a/libhttpd'
g++ -Wall -Wno-multichar -I. -I./daaplib/include -I./libhttpd/src
-I/usr/local/include -c daapd.cc
g++ -Wall -Wno-multichar -I. -I./daaplib/include -I./libhttpd/src
-I/usr/local/include -c db.cc
db.cc: In method `void Database::parsePls(Container &, bool = false)':
db.cc:535: no matching function for call to
`basic_string<char,string_char_traits<char>,__default_alloc_template<true,0>
>::compare (int, int, const char[5])'
/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/std/bastring.cc:398:
candidates are: int
basic_string<char,string_char_traits<char>,__default_alloc_template<true,0>
>::compare(const basic_string<char,string_char_traits<char>,__default_alloc_template<true,0> > &, unsigned int = 0, unsigned int = basic_string<charT,traits,Allocator>::npos) const
/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/std/bastring.cc:417:
                int
basic_string<char,string_char_traits<char>,__default_alloc_template<true,0>
>::compare(const char *, unsigned int, unsigned int) const
/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/std/bastring.h:398:
                int
basic_string<char,string_char_traits<char>,__default_alloc_template<true,0>
>::compare(const char *, unsigned int = 0) const
db.cc:543: no matching function for call to
`basic_string<char,string_char_traits<char>,__default_alloc_template<true,0>
>::compare (int, int, const char[8])'
/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/std/bastring.cc:398:
candidates are: int
basic_string<char,string_char_traits<char>,__default_alloc_template<true,0>
>::compare(const basic_string<char,string_char_traits<char>,__default_alloc_template<true,0> > &, unsigned int = 0, unsigned int = basic_string<charT,traits,Allocator>::npos) const
/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/std/bastring.cc:417:
                int
basic_string<char,string_char_traits<char>,__default_alloc_template<true,0>
>::compare(const char *, unsigned int, unsigned int) const
/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/std/bastring.h:398:
                int
basic_string<char,string_char_traits<char>,__default_alloc_template<true,0>
>::compare(const char *, unsigned int = 0) const
db.cc: In method `void Database::parseM3u(Container &, bool = false)':
db.cc:600: no matching function for call to
`basic_string<char,string_char_traits<char>,__default_alloc_template<true,0>
>::compare (int, int, const char[8])'
/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/std/bastring.cc:398:
candidates are: int
basic_string<char,string_char_traits<char>,__default_alloc_template<true,0>
>::compare(const basic_string<char,string_char_traits<char>,__default_alloc_template<true,0> > &, unsigned int = 0, unsigned int = basic_string<charT,traits,Allocator>::npos) const
/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/std/bastring.cc:417:
                int
basic_string<char,string_char_traits<char>,__default_alloc_template<true,0>
>::compare(const char *, unsigned int, unsigned int) const
/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/std/bastring.h:398:
                int
basic_string<char,string_char_traits<char>,__default_alloc_template<true,0>
>::compare(const char *, unsigned int = 0) const
make: *** [db.o] Error 1
root@martian:/usr/local/bin/gsatest/daapd-0.2.4a#



Reply to: