Menu

#28 libsidutils-1.0.1 configure script fails

closed-fixed
None
5
2001-12-23
2001-12-19
LaLa
No

The libsidutils-1.0.1 configure script is unable to
find the libsidplay2 library:

e05099-imre> configure --prefix=/home/imre/local
--with-libsidplay2=/home/imre/local

...

checking whether to build shared libraries... yes
checking whether to build static libraries... yes
creating libtool
updating cache ./config.cache
loading cache ./config.cache
checking for working SIDPlay2 library and headers... no
configure: error:
libsidplay2 library and/or header files not found.
Please check your installation!

This despite the fact that:

e05099-imre> ls -l /home/imre/local/lib
...
-rw-r--r-- 1 imre sw 305908 Dec 18 16:11
libresid.a
-rwxr-xr-x 1 imre sw 711 Dec 18 16:11
libresid.la
lrwxrwxrwx 1 imre sw 17 Dec 18 16:11
libresid.so -> libresid.so.2.0.0
lrwxrwxrwx 1 imre sw 17 Dec 18 16:11
libresid.so.2 -> libresid.so.2.0.0
-rwxr-xr-x 1 imre sw 295300 Dec 18 16:11
libresid.so.2.0.0
-rw-r--r-- 1 imre sw 877592 Dec 18 15:38
libsidplay.a
-rwxr-xr-x 1 imre sw 725 Dec 18 15:38
libsidplay.la
lrwxrwxrwx 1 imre sw 19 Dec 18 15:38
libsidplay.so -> libsidplay.so.1.0.1
lrwxrwxrwx 1 imre sw 19 Dec 18 15:38
libsidplay.so.1 -> libsidplay.so.1.0.1
-rwxr-xr-x 1 imre sw 826220 Jul 23 16:56
libsidplay.so.1.0.0
-rwxr-xr-x 1 imre sw 847060 Dec 18 15:38
libsidplay.so.1.0.1
-rw-r--r-- 1 imre sw 791736 Dec 19 09:59
libsidplay2.a
-rwxr-xr-x 1 imre sw 730 Dec 19 09:59
libsidplay2.la
lrwxrwxrwx 1 imre sw 20 Dec 19 09:59
libsidplay2.so -> libsidplay2.so.0.0.7
lrwxrwxrwx 1 imre sw 20 Dec 19 09:59
libsidplay2.so.0 -> libsidplay2.so.0.0.7
-rwxr-xr-x 1 imre sw 573492 Dec 19 09:59
libsidplay2.so.0.0.7

and:

e05099-imre> ls -l /home/imre/local/include/resid
total 128
-rw-r--r-- 1 imre sw 8900 Dec 18 16:11
envelope.h
-rw-r--r-- 1 imre sw 5281 Dec 18 16:11
extfilt.h
-rw-r--r-- 1 imre sw 13312 Dec 18 16:11
filter.h
-rw-r--r-- 1 imre sw 1164 Dec 18 16:11
pot.h
-rw-r--r-- 1 imre sw 3615 Dec 18 16:11
sid.h
-rw-r--r-- 1 imre sw 2501 Dec 18 16:11
siddefs.h
-rw-r--r-- 1 imre sw 8718 Dec 18 16:11
spline.h
-rw-r--r-- 1 imre sw 2342 Dec 18 16:11
voice.h
-rw-r--r-- 1 imre sw 15236 Dec 18 16:11
wave.h
e05099-imre> ls -l /home/imre/local/include/sidplay
total 176
-rw-r--r-- 1 imre sw 2170 Dec 19 10:12
Buffer.h
-rw-r--r-- 1 imre sw 12128 Dec 19 10:12
SidTune.h
-rw-r--r-- 1 imre sw 3234 Dec 19 10:12
SmartPtr.h
-rw-r--r-- 1 imre sw 1397 Dec 18 15:38
compconf.h
-rw-r--r-- 1 imre sw 4778 Jan 18 2000
config.h
-rw-r--r-- 1 imre sw 10795 Dec 18 15:38
emucfg.h
-rw-r--r-- 1 imre sw 1924 Dec 18 15:38
fformat.h
-rw-r--r-- 1 imre sw 5964 Dec 18 15:38
fixpoint.h
-rw-r--r-- 1 imre sw 2439 Dec 18 15:38
libcfg.h
-rw-r--r-- 1 imre sw 4181 Dec 18 15:38
myendian.h
-rw-r--r-- 1 imre sw 1041 Dec 18 15:38
mytypes.h
-rw-r--r-- 1 imre sw 261 Dec 18 15:38
player.h
-rw-r--r-- 1 imre sw 1010 Dec 19 10:12
sidconfig.h
-rw-r--r-- 1 imre sw 11624 Dec 19 10:12
sidendian.h
-rw-r--r-- 1 imre sw 3583 Dec 19 10:12
sidplay2.h
-rw-r--r-- 1 imre sw 10304 Dec 18 15:38
sidtune.h
-rw-r--r-- 1 imre sw 2931 Dec 19 10:12
sidtypes.h
-rw-r--r-- 1 imre sw 190 Dec 18 15:38
version.h

Discussion

  • Michael Schwendt

    Logged In: YES
    user_id=62241

    I'm not familiar with the macros found in libsidutils
    acinclude.m4, but here's a patch for what I think is an error:

    diff -Naur libsidutils-1.0.1-orig/acinclude.m4
    libsidutils-1.0.1/acinclude.m4
    --- libsidutils-1.0.1-orig/acinclude.m4 Tue Apr 3 23:32:37 2001
    +++ libsidutils-1.0.1/acinclude.m4 Thu Dec 20 08:54:33 2001
    @@ -103,11 +103,11 @@
    sid_libsidplay2_library=NO
    sid_libsidplay2_includes=NO

    - AC_ARG_WITH(sidplay2,
    + AC_ARG_WITH(libsidplay2,
    [ --with-libsidplay2=DIR
    where the sidplay2 library is located],
    - [sid_libsidplay2_includes="$withval"
    - sid_libsidplay2_library="$withval"
    + [sid_libsidplay2_includes="$withval/include"
    + sid_libsidplay2_library="$withval/lib"
    ]
    )

     
  • LaLa

    LaLa - 2001-12-20

    Logged In: YES
    user_id=75931

    Michael,

    Good guess, but not good enough. I still get the same error.
    I even fixed a similar problem in the configure script
    itself (lines 1860-1861) - still the same error.

    But that definitely looks like a bug, and I think you're in
    the right direction because this has worked for me:

    configure --prefix=/home/imre/local
    --with-libsidplay2-includes=/home/imre/local/include
    --with-libsidplay2-library=/home/imre/local/lib

     
  • LaLa

    LaLa - 2001-12-20

    Logged In: YES
    user_id=75931

    BTW, sidplay-2.0.7 has the exact same problem, both with the
    libsidplay2 and the libsidutils includes.

    It would be nice if I didn't have to specify anything else
    than --prefix! The script should be smart enough to look for
    the libsidplay2 and libdisutils libraries and includes below
    the dir specified with --prefix, too.

     
  • Michael Schwendt

    Logged In: YES
    user_id=62241

    > Good guess, but not good enough. I still get the same
    > error. I even fixed a similar problem in the configure
    > script itself (lines 1860-1861) - still the same error.

    I suspect you haven't rebuilt the "configure" script after
    you had applied the patch. Run

    $ aclocal ; automake ; autoconf
    $ rm -f config.cache

    to be sure you're up-to-date, then re-run your configure
    --with-libsidplay2=/foo/bar line.

    If that still fails, please attach the config.log.

     
  • LaLa

    LaLa - 2001-12-20

    Logged In: YES
    user_id=75931

    Yep, that was it! Thanks!

     
  • Simon White

    Simon White - 2001-12-23
    • assigned_to: nobody --> s_a_white
     
  • Simon White

    Simon White - 2001-12-23

    Logged In: YES
    user_id=59929

    Sorry I've only just seen these bug reports. Mike suggested fix is only partially correct. It will work
    correctly if you use --with-sidplay2 instead of --with-libsidplay2. The actual fix is just:

    - AC_ARG_WITH(sidplay2,
    + AC_ARG_WITH(libsidplay2,

    I'll make sure this gets fixed in CVS if it hasn't been already. As for checking the prefix directory by default
    it's been in the CVS versions for ages and therefore the next release.

     
  • Simon White

    Simon White - 2001-12-23
    • status: open --> closed-fixed
     
  • Simon White

    Simon White - 2001-12-23

    Logged In: YES
    user_id=59929

    CVS uses --with-sidplay2, --with-sidplay2-includes, etc and the descriptions correctly reflect those names.
    This is the same style as sidplay1 and xsidplay which use:

    --with-sidplay and not --with-libsidplay

    Consider this problem to be fixed.

     

Log in to post a comment.