Subject: Re: icecast/ices
To: None <muc-lists-netbsd-help@moderators.muc.de>
From: Michael Core <520079546242-0001@t-online.de>
List: netbsd-help
Date: 03/04/2002 11:53:16
bharris@gaijin.com (Brandon Harris) wrote:

> 	There isn't a package for ices, near as I can see, so I

They have a rpm and IIRC there is a rpm-tool for NetBSD.

> 	was compiling from the source.  It dies in sections involving
> 	pthreads.  Getting it to pass configure with pthreads requires
> 	that you do this:
> 
> 		CC=/usr/pkg/pthreads/bin/pgcc ./configure

I don't have pgcc. What pthread-implementation have you installed? I use
ptl-2.1.8.

> 	gmake then dies here:

You run gmake? I have it installed, but I'd normally run make && make
install. Have you had any problems during ./configure?

> 	Making all in thread
> 	gmake[2]: Entering directory `/home/bharris/ices-0.2.2/thread'
> 	/usr/pkg/pthreads/bin/pgcc -DHAVE_CONFIG_H -I. -I. -I.. -I../avl
> 	-I../log-fno-strict-aliasing -I/usr/pkg/include
> 	-I/usr/pkg/lib/perl5/5.6.1/i386-netbsd/CORE   -g -O2 -Wall -c
> 	thread.c thread.c: In function `_start_routine':
> 	thread.c:540: warning: implicit declaration of function
> 	`pthread_setcancelstate'
> 	thread.c:540: `PTHREAD_CANCEL_ENABLE' undeclared (first use in
> 	this function)

This is a little strange because thread.c defines <pthread.h> (aslong as
you don't compile for WIN32), so PTHREAD_CANCEL_ENABLE _is_ declared. I
tried this:

cd thread

gcc -Wall -DHAVE_CONFIG_H -fno-strict-aliasing -I/usr/pkg/include \
-I/usr/pkg/lib/perl5/5.6.1/i386-netbsd/CORE   -g -O2 -I. -I. -I.. -I../avl
\-I../log -c thread.c

and got this:

thread.c:70: warning: `_next_mutex_id' defined but not used

Compiled.

Unfortunately, I cannot compile it yet, because ./configure failes when it
checks for pthreads, although I have it installed. Seems there is
something wrong with my installation.

BTW, did you notice that 0.2.2 is the developers (non-stable) version?

HTH