Subject: Re: --mode=compile??
To: Dan McMahill <mcmahill@MTL.MIT.EDU>
From: Alistair Crooks <azcb0@amdahl.com>
List: tech-pkg
Date: 09/16/1998 06:35:31
Hi Dan,

> I tried to build the tcl-8.0p2 package last night on my NetBSD/mac68k-1.3
> machine and got an error I've not seen before:
> 
> ===>  Building for tcl-8.0p2
> --mode=compile cc -c -O  -I./../generic -I.  -DHAVE_GETCWD=1
> -DNO_VALUES_H=1 -DHAVE_UNISTD_H=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1
> -DTIME_WITH_SYS_TIME=1 -DHAVE_TM_ZONE=1 -DHAVE_TM_GMTOFF=1
> -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -DNEED_MATHERR=1 -DHAVE_SIGNED_CHAR=1
> -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_FILIO_H=1        -DTCL_SHLIB_EXT=\".so\"
> ./../generic/panic.c
> --mode=compile: not found

You'll have that happen if LIBTOOL isn't defined. 

The current lang/tcl80/Makefile has:

> # let libtool deal with shared libraries
> USE_LIBTOOL=            yes
> CONFIGURE_ARGS+=        --disable-shared
> 
> test:
>         cd ${WRKSRC} && ${SETENV} LIBTOOL=${LIBTOOL} PREFIX=${PREFIX} ${MAKE} test

and the current mk/bsd.pkg.mk has:

> .if defined(USE_LIBTOOL)
> LIBTOOL=                ${LOCALBASE}/bin/libtool
> BUILD_DEPENDS+=         ${LIBTOOL}:../../devel/libtool
> CONFIGURE_ENV+=         LIBTOOL="${LIBTOOL} ${LIBTOOL_FLAGS}"
> MAKE_ENV+=              LIBTOOL="${LIBTOOL} ${LIBTOOL_FLAGS}"
> .endif

I'd check to see that you have these in your copy of pkgsrc.

Take care,
Alistair