Anybody there was able to compile darkice on OpenBSD 4.8 or -current ?

On Tue, Mar 29, 2011 at 4:47 PM, Evgeniy Sudyr <eject.in...@gmail.com>wrote:

> I got source from anoncvs and then added include to .cpp files
>
> #include "/usr/src/usr.sbin/nsd/compat/pselect.c"
>
> now I'm getting next error:
>
>
> /usr/include/g++/i386-unknown-openbsd4.9/bits/ctype_base.h: At global
> scope:
> /usr/include/g++/i386-unknown-openbsd4.9/bits/ctype_base.h:55: warning:
> overflow in implicit constant conversion
> mv -f .deps/main.Tpo .deps/main.Po
> g++ -DHAVE_CONFIG_H -I. -I/usr/local/include    -O2 -pedantic -Wall
> -pthread -g -O2 -MT aflibDebug.o -MD -MP -MF .deps/aflibDebug.Tpo -c -o
> aflibDebug.o aflibDebug.cc
> mv -f .deps/aflibDebug.Tpo .deps/aflibDebug.Po
> g++ -DHAVE_CONFIG_H -I. -I/usr/local/include    -O2 -pedantic -Wall
> -pthread -g -O2 -MT aflibConverter.o -MD -MP -MF .deps/aflibConverter.Tpo
-c
> -o aflibConverter.o aflibConverter.cc
> aflibConverter.cc: In member function 'int
> aflibConverter::resampleFast(int&, int, short int*, short int*)':
> aflibConverter.cc:525: warning: deprecated conversion from string constant
> to 'char*'
> aflibConverter.cc: In member function 'int
> aflibConverter::resampleWithFilter(int&, int, short int*, short int*, short
> int*, short int*, short unsigned int, short unsigned int, short unsigned
> int)':
> aflibConverter.cc:571: warning: deprecated conversion from string constant
> to 'char*'
> aflibConverter.cc:639: warning: deprecated conversion from string constant
> to 'char*'
> mv -f .deps/aflibConverter.Tpo .deps/aflibConverter.Po
> g++ -O2 -pedantic -Wall  -pthread -g -O2    -o darkice AudioSource.o
> BufferedSink.o  CastSink.o FileSink.o Connector.o  MultiThreadedConnector.o
> DarkIce.o  Exception.o IceCast.o IceCast2.o  ShoutCast.o FileCast.o
> LameLibEncoder.o TwoLameLibEncoder.o  VorbisLibEncoder.o FaacEncoder.o
> aacPlusEncoder.o OssDspSource.o  SerialUlaw.o SolarisDspSource.o
> TcpSocket.o Util.o ConfigSection.o  DarkIceConfig.o Reporter.o
> AlsaDspSource.o JackDspSource.o main.o  aflibDebug.o  aflibConverter.o
> -L/usr/local/lib -lmp3lame
> SolarisDspSource.o(.text+0x160): In function `pselect(int, fd_set*,
> fd_set*, fd_set*, timespec const*, unsigned int const*)':
> /usr/src/usr.sbin/nsd/compat/pselect.c:23: multiple definition of
> `pselect(int, fd_set*, fd_set*, fd_set*, timespec const*, unsigned int
> const*)'
> FileSink.o(.text+0x240):/usr/src/usr.sbin/nsd/compat/pselect.c:23: first
> defined here
> TcpSocket.o(.text+0x190): In function `pselect(int, fd_set*, fd_set*,
> fd_set*, timespec const*, unsigned int const*)':
> /usr/src/usr.sbin/nsd/compat/pselect.c:23: multiple definition of
> `pselect(int, fd_set*, fd_set*, fd_set*, timespec const*, unsigned int
> const*)'
> FileSink.o(.text+0x240):/usr/src/usr.sbin/nsd/compat/pselect.c:23: first
> defined here
> Util.o(.text+0x260): In function `pselect(int, fd_set*, fd_set*, fd_set*,
> timespec const*, unsigned int const*)':
> /usr/src/usr.sbin/nsd/compat/pselect.c:23: multiple definition of
> `pselect(int, fd_set*, fd_set*, fd_set*, timespec const*, unsigned int
> const*)'
> FileSink.o(.text+0x240):/usr/src/usr.sbin/nsd/compat/pselect.c:23: first
> defined here
> aflibDebug.o(.text+0x3bf): In function `aflibDebug::debug(char const*,
> ...)':
> /usr/src/darkice-1.0/src/aflibDebug.cc:218: warning: vsprintf() is often
> misused, please use vsnprintf()
> Util.o(.text+0x1f1): In function `Util::strCpy(char*, char const*)':
> /usr/src/darkice-1.0/src/Util.cpp:144: warning: strcpy() is almost always
> misused, please use strlcpy()
> IceCast.o(.text+0x23f): In function `IceCast::sendLogin()':
> /usr/src/darkice-1.0/src/Referable.h:144: warning: sprintf() is often
> misused, please use snprintf()
> Exception.o(.text+0x1f9): In function `Exception::Exception(char const*,
> unsigned int, char const*, char const*, char const*, int)':
> /usr/src/darkice-1.0/src/Exception.cpp:128: warning: strcat() is almost
> always misused, please use strlcat()
> collect2: ld returned 1 exit status
> *** Error code 1
>
>
>
>
> On Tue, Mar 29, 2011 at 12:58 AM, Adrian Pardini <adr...@tangopardo.com.ar
> > wrote:
>
>> On Monday 28 March 2011 17:32:25 Ckos MarC3y wrote:
>> > On 28/03/11 22:03, Evgeniy Sudyr wrote:
>> > > Hi Akos,
>> > >
>> > > there is select.h manual from OpenBSD project
>> > >
>> > >
>> http://www.openbsd.org/cgi-bin/man.cgi?query=select&apropos=0&sektion=0&m
>> > >anpath=OpenBSD+Current&arch=i386&format=html
>> >
>> > thanks for the link.
>> >
>> > it seems like openbsd doesn't have pselect(), only select()
>> >
>> > how good are you with coding? :)
>>
>> Hi all, here is an pselect implementation for OpenBSD:
>>
>> ftp://ftp.fr.openbsd.org/pub/OpenBSD/src/usr.sbin/nsd/compat/pselect.c
>>
>> right now I don't have at hand an OpenBSD box to try it but I hope you can
>> work it out. Except for the race condition warning the code looks fine.
>>
>>
>> --
>> Adrian.
>> http://elesquinazotango.com.ar
>> http://ovejafm.com
>>
>>
>
>
> --
> --
> With regards,
> Eugene Sudyr
>
>


--
--
With regards,
Eugene Sudyr

Reply via email to