Subject: pkg/23919: audio/speex doesn't build on FreeBSD and propably other platforms; fix attached
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <dotz@irc.pl>
List: netbsd-bugs
Date: 12/28/2003 22:37:47
>Number:         23919
>Category:       pkg
>Synopsis:       audio/speex doesn't build on FreeBSD and propably other platforms; fix attached
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 28 22:38:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Michal Pasternak
>Release:        N/A
>Organization:
>Environment:
FreeBSD mainframe.w.lub.pl 4.9-STABLE FreeBSD 4.9-STABLE #0: Thu Dec 25 12:02:15 CET 2003     doc@mainframe.w.lub.pl:/usr/obj/usr/src/sys/MP-UX  i386

>Description:

Making all in src
cc -DHAVE_DLFCN_H=1 -DHAVE_SYS_SOUNDCARD_H=1 -DHAVE_LIBOGG=1 -DHAVE_LIBM=1 -DVERSION=\"1.0.3\"  -I. -I. -I../libspeex -I/usr/pkg/include  -I/usr/pkg/include  -O2 -I/usr/pkg/include -c speexenc.c
speexenc.c:35: getopt.h: No such file or directory
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/audio/speex/work/speex-1.0.3/src
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/audio/speex/work/speex-1.0.3
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/audio/speex
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/audio/speex

>How-To-Repeat:
Obvious.
>Fix:

*** Warning: this PR depends on PR/23880

Even if I used "unistd.h" instead of "getopt.h", this package still 
needs struct option and getopt_long, which are absent in FreeBSD-STABLE, 
so I had to force the use of devel/libgetopt.

Patch is at:

     http://doc.safenet.pl/speex-freebsd.diff
>Release-Note:
>Audit-Trail:
>Unformatted: