[icecast] Compiling Darkice

Matthew Mencel Matt at cmitech.com
Mon Aug 26 14:14:44 UTC 2002



>Fromthe config.log file created by ./configure

configure:3326: checking for sys/types.h
configure:3339: gcc -c -g -O2  conftest.c >&5
configure:3342: $? = 0
configure:3345: test -s conftest.o
configure:3348: $? = 0
configure:3358: result: yes

configure:3627: checking sys/socket.h usability
configure:3636: gcc -c -g -O2  conftest.c >&5
configure:3639: $? = 0
configure:3642: test -s conftest.o
configure:3645: $? = 0
configure:3654: result: yes
configure:3658: checking sys/socket.h presence
configure:3665: gcc -E  conftest.c
configure:3671: $? = 0
configure:3689: result: yes
configure:3707: checking for sys/socket.h
configure:3714: result: yes

man 2 send results

NAME
     send, sendto, sendmsg - send a message from a socket

LIBRARY
     Standard C Library (libc, -lc)

SYNOPSIS
     #include <sys/types.h>
     #include <sys/socket.h>

     ssize_t
     send(int s, const void *msg, size_t len, int flags);

     ssize_t
     sendto(int s, const void *msg, size_t len, int flags,
             const struct sockaddr *to, socklen_t tolen);

     ssize_t
     sendmsg(int s, const struct msghdr *msg, int flags);

<p>>>> darkeye at tyrell.hu 8/26/02 8:57:39 AM >>>
Matthew Mencel wrote:
> I'm compiling Darkice on a FreeBSD 4.6.2 box.
> 
> Everything works up to this point after I type "make"...then I get this error.  Any ideas?
> 
> Thanks,
> Matt
> 
> teststream# make
> make  all-recursive
> Making all in src
> source='TcpSocket.cpp' object='TcpSocket.o' libtool=no  depfile='.deps/TcpSocket.Po' tmpdepfile='.deps/TcpSocket.TPo'  depmode=gcc /bin/sh ../depcomp  g++ -DHAVE_CONFIG_H -I. -I. -I..      -O2 -pedantic -Wall -c -o TcpSocket.o `test -f 'TcpSocket.cpp' || echo './'`TcpSocket.cpp
> TcpSocket.cpp: In method `unsigned int TcpSocket::write(const void *, unsigned int)':
> TcpSocket.cpp:316: `MSG_NOSIGNAL' undeclared (first use this function)
> TcpSocket.cpp:316: (Each undeclared identifier is reported only once
> TcpSocket.cpp:316: for each function it appears in.)
> TcpSocket.cpp:309: warning: `int ret' might be used uninitialized in this function
> *** Error code 1

can you see if the configure script finds the following include files:

ys/types.h
sys/socket.h

also, can you take a look at the man page for the send() function, e.g.:

man 2 send

and what include files it says to include for using send()?

The problem is that for some reason the include file is not included 
which is defining constant MSG_NOSIGNAL, which is related to the send() 
function. Unfortunately I don't have a FreeBSD box myself, I can't test 
this porting issue :(

<p>Akos

--- >8 ----
List archives:  http://www.xiph.org/archives/ 
icecast project homepage: http://www.icecast.org/ 
To unsubscribe from this list, send a message to 'icecast-request at xiph.org' 
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.

--- >8 ----
List archives:  http://www.xiph.org/archives/
icecast project homepage: http://www.icecast.org/
To unsubscribe from this list, send a message to 'icecast-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Icecast mailing list