Date: Sun, 22 Jun 2003 13:50:07 -0700 (PDT) From: "The Anarcat" <anarcat@anarcat.ath.cx> To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/50858: compile of ecasound-2.2.2 fails with undeclared functions Message-ID: <200306222050.h5MKo7KP034367@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/50858; it has been noted by GNATS. From: "The Anarcat" <anarcat@anarcat.ath.cx> To: Tilman Linneweh <arved@FreeBSD.org> Cc: freebsd-gnats-submit@FreeBSD.org, jimd@siu.edu Subject: Re: ports/50858: compile of ecasound-2.2.2 fails with undeclared functions Date: Sun, 22 Jun 2003 16:48:52 -0400 --raC6veAxrt5nqIoY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun Jun 22, 2003 at 10:11:19PM +0200, Tilman Linneweh wrote: > * The Anarcat [Sun, 22 Jun 2003 15:30:20 -0400]: >=20 > > Well no... I don't regen configure since I haven't setup the port to > > use autoconf, but I guess I should...=20 > >=20 > > Maybe it would "just work" by adding USE_AUTOCONF in there... >=20 > USE_AUTOMAKE implies USE_AUTOCONF Yet another attempt... This time, without the configure patch, and with a -N diff. :) Note that the two extra patches I'm throwing in there come from ecasound's CVS so they will have to be removed on next release. I just tested this on 5.x again and it works as well as without the configure patch. A. diff -Nru /usr/ports/audio/ecasound/Makefile ./Makefile --- /usr/ports/audio/ecasound/Makefile Tue May 6 03:02:47 2003 +++ ./Makefile Sun Jun 22 16:16:59 2003 @@ -6,21 +6,18 @@ # =20 PORTNAME=3D ecasound -PORTVERSION=3D 2.2.2 +PORTVERSION=3D 2.2.3 CATEGORIES=3D audio MASTER_SITES=3D http://ecasound.seul.org/download/ =20 MAINTAINER=3D anarcat@anarcat.ath.cx COMMENT=3D Multitrack audio processing software =20 -BROKEN=3D "Does not compile" - USE_GMAKE=3D yes USE_AUTOMAKE_VER=3D14 USE_LIBTOOL=3D yes INSTALLS_SHLIB=3D yes =20 -CONFIGURE_ARGS+=3D --enable-sys-readline MAKE_ENV+=3D ${CONFIGURE_ENV} =20 .if defined(WITH_MPG123) diff -Nru /usr/ports/audio/ecasound/distinfo ./distinfo --- /usr/ports/audio/ecasound/distinfo Sat Apr 5 19:04:59 2003 +++ ./distinfo Sun Jun 22 16:19:46 2003 @@ -1 +1 @@ -MD5 (ecasound-2.2.2.tar.gz) =3D f40a2ea2cabf8b0cbd3663d522f74918 +MD5 (ecasound-2.2.3.tar.gz) =3D 40a3f0213c30b18e1b4e7879faa6b454 diff -Nru /usr/ports/audio/ecasound/files/patch-configure.in ./files/patch-= configure.in --- /usr/ports/audio/ecasound/files/patch-configure.in Wed Dec 31 19:00:00 = 1969 +++ ./files/patch-configure.in Sun Jun 22 16:18:47 2003 @@ -0,0 +1,237 @@ +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D +RCS file: /home/cvspsrv/cvsroot/sound/ecasound/configure.in,v +retrieving revision 1.152 +retrieving revision 1.158 +diff -u -r1.152 -r1.158 +--- configure.in 2003/04/02 20:14:10 1.152 ++++ configure.in 2003/05/30 19:28:47 1.158 +@@ -1,6 +1,6 @@ + dnl --- + dnl configure.in for ecasound +-dnl last modified: 20030402-14 ++dnl last modified: 20030530-20 + dnl=20 + dnl Many of the tests and macros in this file have been borrowed from=20 + dnl other GPL-lisenced packages (Alsaplayer, ALSA, SIP, PyQt,=20 +@@ -23,7 +23,7 @@ + dnl --- + dnl Init automake + dnl --- +-AM_INIT_AUTOMAKE(ecasound, 2.2.3) ++AM_INIT_AUTOMAKE(ecasound, 2.2.4) + AM_CONFIG_HEADER(config.h) +=20 + dnl --- +@@ -32,15 +32,17 @@ + dnl defines: LIBECASOUND_VERSION, LIBECASOUNDC_VERSION, LIBKVUTILS_VERSION + dnl --- +=20 +-LIBECASOUND_VERSION=3D10 +-LIBECASOUND_VERSION_AGE=3D1 ++LIBECASOUND_VERSION=3D11 ++LIBECASOUND_VERSION_AGE=3D2 + LIBECASOUNDC_VERSION=3D1 +-LIBKVUTILS_VERSION=3D5 +-LIBKVUTILS_VERSION_AGE=3D1 ++LIBECASOUNDC_VERSION_AGE=3D0 ++LIBKVUTILS_VERSION=3D6 ++LIBKVUTILS_VERSION_AGE=3D2 +=20 + AC_SUBST(LIBECASOUND_VERSION) + AC_SUBST(LIBECASOUND_VERSION_AGE) + AC_SUBST(LIBECASOUNDC_VERSION) ++AC_SUBST(LIBECASOUNDC_VERSION_AGE) + AC_SUBST(LIBKVUTILS_VERSION) + AC_SUBST(LIBKVUTILS_VERSION_AGE) +=20 +@@ -432,39 +434,46 @@ + dnl Checks for pyecasound + dnl + dnl defines: ECA_S_PYTHON_INCLUDES, ECA_S_PYTHON_DLMODULES,=20 +-dnl ECA_AM_COMPILE_PYECASOUND, ECA_AM_HAVE_PYTHON ++dnl ECA_AM_PYECASOUND_CEXT, ECA_AM_PYECASOUND_INSTALL + dnl -- +=20 +-compile_pyecasound=3Dno ++pyecasound_support=3Dpython +=20 + AC_ARG_ENABLE(pyecasound, +- [ --enable-pyecasound Enable compilation of pyecasound (defaul= t =3D no)], ++ [ --enable-pyecasound Enable compilation of pyecasound (defaul= t =3D python)], + [ + case "$enableval" in + y | yes) +- AC_MSG_RESULT(yes) +- compile_pyecasound=3Dyes ++ pyecasound_support=3Dc + ;; +=20 +- n | no) +- AC_MSG_RESULT(no) +- compile_pyecasound=3Dno ++ n | no | none) ++ pyecasound_support=3Dnone ++ ;; ++ ++ python) ++ pyecasound_support=3Dpython ++ ;; ++ ++ c) ++ pyecasound_support=3Dc + ;; + =20 + *) +- AC_MSG_ERROR([Invalid parameter value for --enable-pyecasound: $enabl= eval]) ++ pyecasound_support=3Dpython + ;; + esac + ]) +=20 + dnl -- +-dnl Python interpreter ++dnl Python interpreter and installation prefix +=20 + AC_PATH_PROG(PYTHONPATH,python,none) + if test x$PYTHONPATH =3D xnone; then +- python_support=3Dno ++ pyecasound_support=3Dnone ++ python_install_prefix=3D"" + else +- python_support=3Dyes ++ python_install_prefix=3D`python -c "import sys; print (sys.prefix)"` + fi +=20 + dnl -- +@@ -497,7 +506,10 @@ + if test "X$ECA_S_PYTHON_INCLUDES" =3D "X" + then + AC_MSG_WARN([Python.h not found]) +- compile_pyecasound=3Dno ++ if test x${pyecasound_support} =3D xc; then ++ dnl -- No python headers found, cannot compile C extension ++ pyecasound_support=3Dpython ++ fi + else + AC_MSG_RESULT($ECA_S_PYTHON_INCLUDES) + fi +@@ -511,14 +523,35 @@ +=20 + if test "X$with_python_modules" =3D "X" + then +- pymoddirs=3D"/usr/local/lib /usr/lib" +- dnl -- Double-brackets to espace the real brackets +- pymoddirsmore=3D`python -c "import sys; print (sys.prefix + '/lib/pyt= hon' + sys.version[[:3]])"` +- pymoddirs=3D"$pymoddirs $pymoddirsmore" ++ if test x${python_install_prefix} !=3D x${ecaprefix} -a \ ++ x${ecaprefix} !=3D x/usr -a \ ++ x${ecaprefix} !=3D x/usr/local ; then ++ pyecasound_support=3Dnone ++ AC_MSG_RESULT([none]) ++ if test x$PYTHONPATH !=3D xnone; then ++ python_prefix_tmp=3D`python -c "import sys; print (sys.prefix + '/li= b/python' + sys.version[[:3]])"` ++ else ++ python_prefix_tmp=3D"DIR" ++ fi ++ AC_MSG_WARN([ ++ *** ++ *** Python modules won't be installed as the module install prefix does ++ *** not match ecasound's build prefix! To override, set python ++ *** module directory explicitly (for example=20 ++ *** "--with-python-modules=3D${python_prefix_tmp}"). ++ *** ++ ]) ++ else ++ pymoddirs=3D"/usr/local/lib /usr/lib" ++ dnl -- Double-brackets to espace the real brackets ++ pymoddirsmore=3D`python -c "import sys; print (sys.prefix + '/lib= /python' + sys.version[[:3]])"` ++ pymoddirs=3D"$pymoddirs $pymoddirsmore" ++ AC_MSG_RESULT($pymoddirs) ++ fi + else + pymoddirs=3D$with_python_modules ++ AC_MSG_RESULT($pymoddirs) + fi +-AC_MSG_RESULT($pymoddirs) +=20 + dnl --- + dnl a hack to support broken debian python installs +@@ -555,9 +588,9 @@ + AC_SUBST(ECA_S_PYTHON_MODULES) + AC_SUBST(ECA_S_PYTHON_DLMODULES) +=20 +-dnl if test x$disable_pyecasound =3D xyes ; then compile_pyecasound=3Dno = ; fi +-AM_CONDITIONAL(ECA_AM_COMPILE_PYECASOUND, test x$compile_pyecasound =3D x= yes) +-AM_CONDITIONAL(ECA_AM_HAVE_PYTHON, test x$python_support =3D xyes) ++dnl if test x$disable_pyecasound =3D xyes ; then pyecasound_support=3Dno = ; fi ++AM_CONDITIONAL(ECA_AM_PYECASOUND_CEXT, test x$pyecasound_support =3D xc) ++AM_CONDITIONAL(ECA_AM_PYECASOUND_INSTALL, test x$pyecasound_support !=3D = xnone) +=20 + dnl ------------------------------------------------------------------ +=20 +@@ -621,12 +654,12 @@ + case "$enableval" in + y | yes) + AC_MSG_RESULT(yes) +- termcap_library=3Dyes ++ termcap_library=3Dncurses + ;; +=20 + n | no) + AC_MSG_RESULT(no) +- termcap_library=3Dno ++ termcap_library=3Dnone + ;; + =20 + *) +@@ -788,8 +821,14 @@ + [AC_CHECK_HEADER(readline/history.h,, + AC_MSG_ERROR([*** readline history headers not installed ***]))]) +=20 +- AC_CHECK_LIB(readline, main,, AC_MSG_ERROR([*** readline support not in= stalled ***])) +- AC_CHECK_LIB(history, main,, AC_MSG_ERROR([*** readline history support= not installed ***])) ++ if test x${termcap_library} =3D xnone; then ++ readline_extra_libs=3D""; ++ else ++ readline_extra_libs=3D"-l${termcap_library}" ++ fi ++ ++ AC_CHECK_LIB(readline, main, readline_library=3D"-lreadline", AC_MSG_ER= ROR([*** readline support not installed ***]), ${readline_extra_libs}) ++ AC_CHECK_LIB(history, main, readline_library=3D"${readline_library} -lh= istory", AC_MSG_ERROR([*** readline history support not installed ***]), ${= readline_extra_libs}) + AC_SUBST(ECA_S_READLINE_INCLUDES) + else + AC_CONFIG_SUBDIRS(readline-4.0) +@@ -865,6 +904,9 @@ + AC_CHECK_FUNCS(sched_getparam) + AC_CHECK_FUNCS(sched_getscheduler) + AC_CHECK_FUNCS(sched_setscheduler) ++AC_CHECK_FUNCS(pthread_self) ++AC_CHECK_FUNCS(pthread_getschedparam) ++AC_CHECK_FUNCS(pthread_setschedparam) + AC_CHECK_FUNCS(sigprocmask) + AC_CHECK_FUNCS(sigwait) +=20 +@@ -943,8 +985,12 @@ + echo "Following packages are now configured:" + echo "ecasound: yes (ecasound,libecasound,libecasoundc)" + echo "ecatools: yes" +-if test x$compile_pyecasound =3D xyes ; then +- echo "pyecasound: yes" ++if test x$pyecasound_support !=3D xnone ; then ++ if test x$pyecasound_support =3D xc ; then ++ echo "pyecasound: yes (as Python C extension module)" ++ else ++ echo "pyecasound: yes (as native Python module)" ++ fi + else + echo "pyecasound: no" + fi +@@ -1011,7 +1057,7 @@ + echo "-----------------------------------------------------------------" + echo "Following directories are used:" + echo "Directory prefix: "$ECA_S_PREFIX +-if test x$compile_pyecasound =3D xyes ; then ++if test x$pyecasound_support !=3D xnone ; then + echo "Python include dir: "$ECA_S_PYTHON_INCLUDES + echo "Python module dir: "$ECA_S_PYTHON_MODULES + fi diff -Nru /usr/ports/audio/ecasound/files/patch-ecasound::eca-curses.cpp ./= files/patch-ecasound::eca-curses.cpp --- /usr/ports/audio/ecasound/files/patch-ecasound::eca-curses.cpp Sat Apr = 5 19:04:59 2003 +++ ./files/patch-ecasound::eca-curses.cpp Wed Dec 31 19:00:00 1969 @@ -1,26 +0,0 @@ ---- ecasound/eca-curses.cpp.orig Thu Apr 3 19:52:32 2003 -+++ ecasound/eca-curses.cpp Thu Apr 3 19:54:32 2003 -@@ -114,11 +114,7 @@ - rl_readline_name =3D "ecasound"; -=20 - /* we want to attempt completion first */ --#if RL_READLINE_VERSION >=3D 0x0402 - rl_attempted_completion_function =3D (rl_completion_func_t*)ecasound_co= mpletion; --#else --=20 Advertisers, not governments, are the primary censors of media content=20 in the United States today. - C. Edwin Baker http://www.ad-mad.co.uk/quotes/freespeech.htm --raC6veAxrt5nqIoY Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE+9hYzttcWHAnWiGcRAhKdAKCRcz0Yn4btSZwKqhDiNuXvKa3vHgCfQ2vg 9iOX4hFzD5q8YmV4wSABihU= =+HqB -----END PGP SIGNATURE----- --raC6veAxrt5nqIoY--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200306222050.h5MKo7KP034367>