From owner-freebsd-questions@FreeBSD.ORG Mon Feb 26 07:09:45 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 15B7216A401 for ; Mon, 26 Feb 2007 07:09:45 +0000 (UTC) (envelope-from ABabiy@shaw.ca) Received: from pd2mo1so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.freebsd.org (Postfix) with ESMTP id E158813C46B for ; Mon, 26 Feb 2007 07:09:44 +0000 (UTC) (envelope-from ABabiy@shaw.ca) Received: from pd3mr7so.prod.shaw.ca (pd3mr7so-qfe3.prod.shaw.ca [10.0.141.23]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0JE200GXV6HQKM90@l-daemon> for freebsd-questions@freebsd.org; Mon, 26 Feb 2007 00:08:14 -0700 (MST) Received: from pn2ml9so.prod.shaw.ca ([10.0.121.7]) by pd3mr7so.prod.shaw.ca (Sun Java System Messaging Server 6.2-2.05 (built Apr 28 2005)) with ESMTP id <0JE200LAE6HPJ001@pd3mr7so.prod.shaw.ca> for freebsd-questions@freebsd.org; Mon, 26 Feb 2007 00:08:14 -0700 (MST) Received: from s01060014bf5ee711.vs.shawcable.net ([70.71.14.48]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0JE200DSV6HPENF0@l-daemon> for freebsd-questions@freebsd.org; Mon, 26 Feb 2007 00:08:13 -0700 (MST) Date: Sun, 25 Feb 2007 23:08:24 -0800 From: Andriy Babiy In-reply-to: <20070225225007.GA92099@xs3.xs4all.nl> To: freebsd-questions@freebsd.org Message-id: <200702252308.25010.ABabiy@shaw.ca> Organization: home MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7bit Content-disposition: inline References: <200702251318.02997.ABabiy@shaw.ca> <20070225225007.GA92099@xs3.xs4all.nl> User-Agent: KMail/1.9.4 Cc: Martin Tournoij Subject: Re: ffmpeg build fails X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Feb 2007 07:09:45 -0000 On Sunday 25 February 2007 14:50, you wrote: > On Sun 25 Feb 2007 13:02, Andriy Babiy wrote: > > Hi all. > > > > Is anyone else experiencing this problem? What can I do to avoid it? > > Thank you very much in advance for advices. > > > > Andriy > > > > ==================== > > S01060014bf5ee711# uname -a > > FreeBSD S01060014bf5ee711 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Thu Feb > > 22 00:43:46 PST 2007 root@:/usr/obj/usr/src/sys/KRNSTABLE amd64 > > > > ================== > > gmake[1]: Entering directory > > `/usr/ports/multimedia/ffmpeg/work/ffmpeg-0.4.9-pre1/libavformat' > > cc -O3 -Wall -fPIC -DPIC -I/usr/local/include -I/usr/X11R6/include > > -fomit-frame-pointer -fno-unit-at-a-time -I.. > > -I/usr/ports/multimedia/ffmpeg/work/ffmpeg-0.4.9-pre1 > > -I/usr/ports/multimedia/ffmpeg/work/ffmpeg-0.4.9-pre1/libavcodec > > -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE > > -D_GNU_SOURCE -c -o audio.o audio.c > > audio.c:24:27: sys/soundcard.h: No such file or directory > > audio.c: In function `audio_open': > > audio.c:81: error: `SNDCTL_DSP_GETFMTS' undeclared (first use in this > > function) > > audio.c:81: error: (Each undeclared identifier is reported only once > > audio.c:81: error: for each function it appears in.) > > audio.c:92: error: `AFMT_S16_LE' undeclared (first use in this > > function) audio.c:94: error: `AFMT_S16_BE' undeclared (first use in > > this function) audio.c:113: error: `SNDCTL_DSP_SETFMT' undeclared > > (first use in this function) > > audio.c:120: error: `SNDCTL_DSP_STEREO' undeclared (first use in this > > function) > > audio.c:129: error: `SNDCTL_DSP_SPEED' undeclared (first use in this > > function) > > audio.c: In function `audio_read_packet': > > audio.c:243: error: storage size of 'abufi' isn't known > > audio.c:279: error: `SNDCTL_DSP_GETISPACE' undeclared (first use in > > this function) > > audio.c:243: warning: unused variable `abufi' > > gmake[1]: *** [audio.o] Error 1 > > gmake[1]: Leaving directory > > `/usr/ports/multimedia/ffmpeg/work/ffmpeg-0.4.9-pre1/libavformat' > > gmake: *** [lib] Error 2 > > *** Error code 2 > > > > Stop in /usr/ports/multimedia/ffmpeg. > > ffmpeg can't find /usr/include/sys/soundcard.h > Did you delete /usr/include? > > You can extract the 6.2 base tarball into annother directory (for > example /usr/base) and then copy /usr/base/usr/include to > /usr/include. > > Or you can copy the files from the freebsd source... Thanks Martin. I found the header file in /usr/src/sys/sys directory. Actually, the content of the folders looks the same. I'm not sure why the file was missing in the /usr/include/sys. Anyway, the problem has gone. Everything compiles just fine. Andriy