Bug 228469 - audio/madplay: fails to build: file not found #include <audiofile.h>
Summary: audio/madplay: fails to build: file not found #include <audiofile.h>
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Tobias Kortkamp
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-24 18:39 UTC by Walter Schwarzenfeld
Modified: 2018-05-24 19:52 UTC (History)
0 users

See Also:


Attachments
svn-diff-audiio-madplay (539 bytes, patch)
2018-05-24 18:41 UTC, Walter Schwarzenfeld
no flags Details | Diff
svn-diff-audio-madplay_v2 (503 bytes, patch)
2018-05-24 18:53 UTC, Walter Schwarzenfeld
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Walter Schwarzenfeld 2018-05-24 18:39:07 UTC
madplay fails to build with:

In file included from audio_esd.c:30:
/usr/local/include/esd.h:3:10: fatal error: 'audiofile.h' file not found
#include <audiofile.h>

It build if I add to the  Makefile:

LIB_DEPENDS+= 	libaudiofile.so:audio/libaudiofile
Comment 1 Walter Schwarzenfeld 2018-05-24 18:41:48 UTC
Created attachment 193667 [details]
svn-diff-audiio-madplay
Comment 2 Tobias Kortkamp freebsd_committer freebsd_triage 2018-05-24 18:44:21 UTC
Try with

CONFIGURE_ARGS=        --without-esd

instead.
Comment 3 Walter Schwarzenfeld 2018-05-24 18:53:34 UTC
Created attachment 193668 [details]
svn-diff-audio-madplay_v2

Thanks! This explains another error I got with libesd.la (but I thought this was a error from my system).
Comment 4 commit-hook freebsd_committer freebsd_triage 2018-05-24 19:02:29 UTC
A commit references this bug:

Author: tobik
Date: Thu May 24 19:01:32 UTC 2018
New revision: 470803
URL: https://svnweb.freebsd.org/changeset/ports/470803

Log:
  audio/madplay: Avoid accidentally building with esound backend

  In ports r465358 we removed the ESOUND option but forgot to add an
  explicit --without-esd to CONFIGURE_ARGS.

  PR:		228469
  Reported by:	w.schwarzenfeld@utanet.at

Changes:
  head/audio/madplay/Makefile
Comment 5 Tobias Kortkamp freebsd_committer freebsd_triage 2018-05-24 19:05:30 UTC
(In reply to w.schwarzenfeld from comment #3)
Committed. Thanks!

I think there still might be something not ok with your system.

The only way I could replicate the build failure from comment #0 was by force
uninstalling libaudiofile which normally is a dependency of audio/esound
so it should be installed and audiofile.h should be there.
Comment 6 Walter Schwarzenfeld 2018-05-24 19:52:05 UTC
I had a file named
-rwxr-xr-x  1 root  wheel  0 12 Mär 02:22 /usr/local/lib/libesd.la

size 0.  Seems a leftover from the past.