Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Jul 2011 00:12:46 -0500
From:      Scot Hetzel <swhetzel@gmail.com>
To:        Robert <traveling08@cox.net>
Cc:        "freebsd-ports@freebsd.org" <freebsd-ports@freebsd.org>
Subject:   Re: ICAL fails to build
Message-ID:  <CACdU%2Bf89_bK0jbXNqq0DRbJd6ENhNhYwT=ZLaWT9ksfgL51u_Q@mail.gmail.com>
In-Reply-To: <20110701161642.2dd6a743@dell64>
References:  <20110701161642.2dd6a743@dell64>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jul 1, 2011 at 6:16 PM, Robert <traveling08@cox.net> wrote:
> Greetings
>
> I am having trouble getting ICAL to build.
>
> uname -a
> FreeBSD dell64.shasta204.local 8.2-STABLE FreeBSD 8.2-STABLE #19: Fri
> Jul =A01 06:36:42 PDT 2011
> root@dell64.shasta204.local:/usr/obj/usr/src/sys/GENERIC =A0amd64
>
> I ran portsnap fetch update before starting. Here is what I have. Sorry
> about the length.
>
> [robert@dell64] /usr/ports/deskutils/ical> pkg_info | grep tcl
> tcl-8.5.10 =A0 =A0 =A0 =A0 =A0Tool Command Language
> tcl-modules-8.5.10 =A0Tcl common modules
> [robert@dell64] /usr/ports/deskutils/ical> sudo make
> =3D=3D=3D> =A0 ical-2.2_3 depends on shared library: tk84.1 - found
> =3D=3D=3D> =A0Configuring for ical-2.2_3
> loading cache ./config.cache
> checking for a BSD compatible install... /usr/bin/install -c -o root -g
> wheel checking for ranlib... ranlib
> checking whether ln -s works... yes
> checking for Mail... /usr/bin/Mail
> checking for c++... c++
> checking whether the C++ compiler (c++ -O2 -pipe -fno-strict-aliasing )
> works... yes checking whether the C++ compiler (c++ -O2 -pipe
> -fno-strict-aliasing ) is a cross-compiler... no checking whether we
> are using GNU C++... yes checking whether c++ accepts -g... yes
> checking for POSIXized ISC... no
> checking Tcl/Tk installation
> checking for tclsh... /usr/local/bin/tclsh8.4
> checking for tclConfig.sh... configure: error: I could not find
> tclConfig.sh.
>
> Please specify the directory that contains tclConfig.sh
> by running configure with the following option
> =A0 =A0 =A0 =A0--with-tclconfig=3D<path name of directory containing
> tclConfig.sh>
>

The port is only looking for tcl8.4.

> me: OK. I will find it.
>
> [robert@dell64] /usr/ports/deskutils/ical> sudo find /usr -name
> tclConfig.sh -print /usr/local/lib/tcl8.5/tclConfig.sh
> me: OK. That was easy
>
But you have tcl8.5 installed
>
> What am I doing wrong?
>

You need to either install tcl8.4 or change the ports Makefile from:

LIB_DEPENDS=3D	tk84.1:${PORTSDIR}/x11-toolkits/tk84

GNU_CONFIGURE=3D	yes
CONFIGURE_ARGS=3D	--with-tclconfig=3D${PREFIX}/lib/tcl8.4 \
		--with-tclhdir=3D${PREFIX}/include/tcl8.4 \
		--with-tclsh=3D${PREFIX}/bin/tclsh8.4 \
		--with-tkconfig=3D${PREFIX}/lib/tk8.4 \
		--with-tkhdir=3D${PREFIX}/include/tk8.4

to

USE_TK=3DYES

GNU_CONFIGURE=3D	yes
CONFIGURE_ARGS=3D	--with-tclconfig=3D${TCL_LIBDIR} \
		--with-tclhdir=3D${TCL_INCLUDEDIR} \
		--with-tclsh=3D${TCLSH} \
		--with-tkconfig=3D${TK_LIBDIR} \
		--with-tkhdir=3D${TK_INCLUDEDIR}

If this works, send a PR with a diff between the origninal and the
modified Makefile.

Scot



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACdU%2Bf89_bK0jbXNqq0DRbJd6ENhNhYwT=ZLaWT9ksfgL51u_Q>