java/jdk12 fails to build: gcc -O -pipe -mcpu=pentiumpro -W -Wall -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wno-unused -Wno-p arentheses -pipe -fPIC -DX_PLATFORM=X_SOLARIS -DJAVA_SOUND -DJAVA_THREAD -Di386 -DHAVE_ALIGNED_LONGLONGS -DHAVE_ALIGNE D_DOUBLES -DARCH='"i386"' -DRELEASE='"1.2.2"' -DFULL_VERSION='"jdk1.2.2-p11:root:2003/01/31-15:03"' -DHAVE_POLL -D_REENT RANT -I. -ICClassHeaders -I../../../../src/bsd/javavm/export -I../../../../src/share/javavm/export -I../../../../src/sha re/native/common -I../../../../src/bsd/native/common -I../../../../src/share/native/sun/audio -I../../../../src/bsd/na tive/sun/audio -c -o obj/i386/HAE_API_bsd.o ../../../../src/bsd/native/sun/audio/HAE_API_bsd.c ../../../../src/bsd/native/sun/audio/HAE_API_bsd.c:54:31: machine/soundcard.h: No such file or directory ../../../../src/bsd/native/sun/audio/HAE_API_bsd.c: In function `HAE_Setup': ../../../../src/bsd/native/sun/audio/HAE_API_bsd.c:157: `SNDCTL_DSP_GETFMTS' undeclared (first use in this function) ../../../../src/bsd/native/sun/audio/HAE_API_bsd.c:157: (Each undeclared identifier is reported only once ../../../../src/bsd/native/sun/audio/HAE_API_bsd.c:157: for each function it appears in.) ../../../../src/bsd/native/sun/audio/HAE_API_bsd.c:163: `AFMT_U8' undeclared (first use in this function) ../../../../src/bsd/native/sun/audio/HAE_API_bsd.c:163: `AFMT_S8' undeclared (first use in this function) ../../../../src/bsd/native/sun/audio/HAE_API_bsd.c:164: `AFMT_U16_LE' undeclared (first use in this function) ../../../../src/bsd/native/sun/audio/HAE_API_bsd.c:164: `AFMT_S16_LE' undeclared (first use in this function) ../../../../src/bsd/native/sun/audio/HAE_API_bsd.c:168: `SOUND_PCM_READ_CHANNELS' undeclared (first use in this function ) ../../../../src/bsd/native/sun/audio/HAE_API_bsd.c:175: `SOUND_PCM_WRITE_CHANNELS' undeclared (first use in this functio n) ../../../../src/bsd/native/sun/audio/HAE_API_bsd.c: In function `HAE_GetHardwareVolume': ../../../../src/bsd/native/sun/audio/HAE_API_bsd.c:322: `SOUND_MIXER_READ_VOLUME' undeclared (first use in this function ) ../../../../src/bsd/native/sun/audio/HAE_API_bsd.c: In function `HAE_SetHardwareVolume': ../../../../src/bsd/native/sun/audio/HAE_API_bsd.c:333: `SOUND_MIXER_WRITE_VOLUME' undeclared (first use in this functio n) ../../../../src/bsd/native/sun/audio/HAE_API_bsd.c: In function `PV_AudioWaveOutFrameThread': ../../../../src/bsd/native/sun/audio/HAE_API_bsd.c:524: syntax error before "audio_info" ../../../../src/bsd/native/sun/audio/HAE_API_bsd.c:527: `SNDCTL_DSP_GETOPTR' undeclared (first use in this function) ../../../../src/bsd/native/sun/audio/HAE_API_bsd.c:527: `audio_info' undeclared (first use in this function) ../../../../src/bsd/native/sun/audio/HAE_API_bsd.c: In function `HAE_AquireAudioCard': ../../../../src/bsd/native/sun/audio/HAE_API_bsd.c:680: `AFMT_MU_LAW' undeclared (first use in this function) ../../../../src/bsd/native/sun/audio/HAE_API_bsd.c:691: `AFMT_S16_LE' undeclared (first use in this function) ../../../../src/bsd/native/sun/audio/HAE_API_bsd.c:701: `SNDCTL_DSP_SETFMT' undeclared (first use in this function) ../../../../src/bsd/native/sun/audio/HAE_API_bsd.c:708: `SNDCTL_DSP_STEREO' undeclared (first use in this function) ../../../../src/bsd/native/sun/audio/HAE_API_bsd.c:719: `SNDCTL_DSP_SPEED' undeclared (first use in this function) ../../../../src/bsd/native/sun/audio/HAE_API_bsd.c: In function `HAE_GetDeviceSamplesPlayedPosition': ../../../../src/bsd/native/sun/audio/HAE_API_bsd.c:813: syntax error before "audio_info" ../../../../src/bsd/native/sun/audio/HAE_API_bsd.c:814: `SNDCTL_DSP_GETOPTR' undeclared (first use in this function) ../../../../src/bsd/native/sun/audio/HAE_API_bsd.c:814: `audio_info' undeclared (first use in this function) gmake[3]: *** [obj/i386/HAE_API_bsd.o] Error 1 gmake[3]: Leaving directory `/src/FreeBSD/ports/java/jdk12/work/build/bsd/sun/audio' Fix: I'm a little puzzled with this. This is the second bug I've found in this port today, and the ports tree is freshly updates. On the other hand, the bugs look pretty straightforward, so I can't see that I'm doing anything wrong.--tU2UjCnSHOVxd7FIYLteZ2ybC9KpVIyRaN5eNm9bj03QkoPH Content-Type: text/plain; name="file.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="file.diff" --- src/bsd/native/sun/audio//HAE_API_bsd.c Fri Jan 31 17:37:21 2003 +++ src/bsd/native/sun/audio//HAE_API_bsd.c.new Fri Jan 31 17:48:49 2003 @@ -51,7 +51,7 @@ #include <sys/wait.h> #include <errno.h> #ifdef __FreeBSD__ -#include <sys/soundcard.h> +#include <machine/soundcard.h> #elif __OpenBSD__ #include <soundcard.h> #endif Comments: How-To-Repeat: Fix PR 47699 cd /usr/ports/java/jdk12 make
Responsible Changed From-To: freebsd-ports-bugs->glewis Over to maintainer.
Responsible Changed From-To: freebsd-ports-bugs->glewis Over to maintainer/.
State Changed From-To: open->closed Fix committed, thanks! In response to the comment, the 1.2.2 port isn't used that often (1.3.1 is preferred by most at the moment) and its primary testing is done on 4.x, not 5.x. So its not surprising to me that there could be 5.x specific problems.