ICAL fails to build

Scot Hetzel swhetzel at gmail.com
Sat Jul 2 05:12:48 UTC 2011


On Fri, Jul 1, 2011 at 6:16 PM, Robert <traveling08 at 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  1 06:36:42 PDT 2011
> root at dell64.shasta204.local:/usr/obj/usr/src/sys/GENERIC  amd64
>
> I ran portsnap fetch update before starting. Here is what I have. Sorry
> about the length.
>
> [robert at dell64] /usr/ports/deskutils/ical> pkg_info | grep tcl
> tcl-8.5.10          Tool Command Language
> tcl-modules-8.5.10  Tcl common modules
> [robert at dell64] /usr/ports/deskutils/ical> sudo make
> ===>   ical-2.2_3 depends on shared library: tk84.1 - found
> ===>  Configuring 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
>        --with-tclconfig=<path name of directory containing
> tclConfig.sh>
>

The port is only looking for tcl8.4.

> me: OK. I will find it.
>
> [robert at 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=	tk84.1:${PORTSDIR}/x11-toolkits/tk84

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

to

USE_TK=YES

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

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

Scot


More information about the freebsd-ports mailing list