Subject: audio/musicpd
To: None <tech-pkg@netbsd.org>
From: Magnus Eriksson <magetoo@fastmail.fm>
List: tech-pkg
Date: 11/16/2004 18:13:57
Hi.


  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-3.1.11.1nb1)


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:
/usr/pkg/bin/libmikmod-config
configure: creating ./config.status
[...]


config.log:

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-3.1.11.1nb1:

Files:
/usr/pkg/info/mikmod.info
/usr/pkg/bin/libmikmod-config
/usr/pkg/include/mikmod.h
/usr/pkg/lib/libmikmod.a
/usr/pkg/lib/libmikmod.so
/usr/pkg/lib/libmikmod.so.2
/usr/pkg/lib/libmikmod.so.2.0.4
/usr/pkg/lib/libmikmod.la
/usr/pkg/man/man1/libmikmod-config.1
/usr/pkg/share/aclocal/libmikmod.m4


$ libmikmod-config --cflags
-I/usr/pkg/include

(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).


Magnus