Subject: audio/musicpd
To: None <>
From: Magnus Eriksson <>
List: tech-pkg
Date: 11/16/2004 18:13:57

  I'm getting strange errors related to libmikmod when trying to build
musicpd, but the logs are telling me everything should work just fine.

  cvs up'ed yesterday.  Versions of mikmod and libmikmod are the latest in
pkgsrc, as far as I can tell. (mikmod-3.1.6anb2, libmikmod-

Some output of "make configure":

checking for libmikmod-config... /usr/pkg/bin/libmikmod-config
checking for libmikmod - version >= 3.1.7... no
*** Could not run libmikmod test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means libmikmod was incorrectly installed
*** or that you have moved libmikmod since it was installed. In the latter case, you
*** may want to edit the libmikmod-config script:
configure: creating ./config.status


configure:25402: checking for libmikmod-config
configure:25420: found /usr/pkg/bin/libmikmod-config
configure:25433: result: /usr/pkg/bin/libmikmod-config
configure:25441: checking for libmikmod - version >= 3.1.7
configure:25570: gcc -o conftest -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include  -I/usr/pkg/include -I/usr/include -lossaudio -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib conftest.c -L/usr/pkg/lib -lmikmod -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -lm  >&5
conftest.c:47: mikmod.h: No such file or directory
configure:25573: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h.  */

[...a million #defines...]

| #include <mikmod.h>
| #include <stdio.h>
| #include <stdlib.h>


So mikmod.h could not be found eh?

$ pkg_info -L libmikmod
Information for libmikmod-


$ libmikmod-config --cflags

(Well, that is what gets inserted into the include path. Twice..)

$ ls -l /usr/pkg/include/mikmod.h
-r--r--r--  1 root  wheel  23877 Nov 16 17:24 /usr/pkg/include/mikmod.h

  ..and it's right there where it should be.

  It should work without libmikmod of course, but mod support would be
nice (and it just doesn't make sense to me).