Subject: pkg/24184: current pkgsrc/mail/dovecot/Makefile broken
To: None <gnats-bugs@gnats.netbsd.org>
From: None <dhs@city.ac.uk>
List: netbsd-bugs
Date: 01/21/2004 16:14:08
>Number:         24184
>Category:       pkg
>Synopsis:       current pkgsrc/mail/dovecot/Makefile broken
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 21 16:15:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.6.1
>Organization:

DHS
-- 
D.H.Sheryn@city.ac.uk		City University Computing Services
>Environment:
System: NetBSD shoreditch 1.6.1 NetBSD 1.6.1 (_SUN4M_) #4: Tue Jun 17 11:16:06 BST 2003 netcomm@ns4.city.ac.uk:/usr/src/sys/arch/sparc/compile/_SUN4M_ sparc
Architecture: sparc
Machine: sparc
>Description:
	The current (as obtained by cvs) version of dovecot will not compile.
	Problem appears to be in the NetBSD build environment, NOT the application.

	---8<-----
	# pwd
	/opt/vol1/pkgsrc/mail/dovecot
	# make
	make
	===> Configuring for dovecot-0.99.10.4
	configure: WARNING: If you wanted to set the --build type, don't use --host.
	    If a cross compiler is detected then cross compile mode will be used.
	    checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
	    checking whether build environment is sane... yes
	    checking whether make sets $(MAKE)... yes
	    checking for working aclocal-1.4... missing
	    checking for working autoconf... found
	    checking for working automake-1.4... missing
	    checking for working autoheader... found
	    checking for working makeinfo... found
	    checking whether to enable maintainer-specific portions of Makefiles... no
	    checking for sparc--netbsdelf-gcc... cc
	    checking for C compiler default output file name... configure: error: C compiler cannot create executables
	    See `config.log' for more details.
	    *** Error code 77

	    Stop.
	    make: stopped in /opt/vol1/pkgsrc/mail/dovecot
	    *** Error code 1

	    Stop.
	    make: stopped in /usr/pkgsrc/mail/dovecot

	---8<-----
	# cat ./work/dovecot-0.99.10.4/config.log

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.58.  Invocation command line was

  $ ./configure --sysconfdir=/usr/pkg/etc --localstatedir=/var --with-ssldir= --host=sparc--netbsdelf --prefix=/usr/pkg

## --------- ##
## Platform. ##
## --------- ##

hostname = shoreditch
uname -m = sparc
uname -r = 1.6.1
uname -s = NetBSD
uname -v = NetBSD 1.6.1 (_SUN4M_) #4: Tue Jun 17 11:16:06 BST 2003     netcomm@ns4.city.ac.uk:/usr/src/sys/arch/sparc/compile/_SUN4M_

/usr/bin/uname -p = sparc
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
hostinfo               = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /opt/vol1/pkgsrc/mail/dovecot/work/.buildlink/bin
PATH: /usr/pkg/bin
PATH: /usr/pkg/sbin
PATH: /usr/pkg/pthreads/bin
PATH: /sbin
PATH: /usr/sbin
PATH: /bin
PATH: /usr/bin
PATH: /usr/X11R6/bin
PATH: /usr/local/scripts
PATH: /usr/local/bin
PATH: /usr/local/sbin
PATH: /root/bin
PATH: /opt/exim/sbin
PATH: /usr/pkg/bin
PATH: /usr/X11R6/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1567: checking for a BSD-compatible install
configure:1622: result: /usr/bin/install -c -o root -g wheel
configure:1633: checking whether build environment is sane
configure:1676: result: yes
configure:1691: checking whether make sets $(MAKE)
configure:1711: result: yes
configure:1743: checking for working aclocal-1.4
configure:1754: result: missing
configure:1758: checking for working autoconf
configure:1765: result: found
configure:1773: checking for working automake-1.4
configure:1784: result: missing
configure:1788: checking for working autoheader
configure:1795: result: found
configure:1803: checking for working makeinfo
configure:1810: result: found
configure:1820: checking whether to enable maintainer-specific portions of Makefiles
configure:1829: result: no
configure:1852: checking for sparc--netbsdelf-gcc
configure:1878: result: cc
configure:2160: checking for C compiler version
configure:2163: cc --version </dev/null >&5
/opt/vol1/pkgsrc/mail/dovecot/work/.buildlink/bin/cc: cannot create : directory nonexistent
configure:2166: $? = 2
configure:2168: cc -v </dev/null >&5
/opt/vol1/pkgsrc/mail/dovecot/work/.buildlink/bin/cc: cannot create : directory nonexistent
configure:2171: $? = 2
configure:2173: cc -V </dev/null >&5
/opt/vol1/pkgsrc/mail/dovecot/work/.buildlink/bin/cc: cannot create : directory nonexistent
configure:2176: $? = 2
configure:2199: checking for C compiler default output file name
configure:2202: cc -O2 -I/usr/pkg/include   -I/usr/pkg/include  -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,/usr/pkg/lib conftest.c  >&5
/opt/vol1/pkgsrc/mail/dovecot/work/.buildlink/bin/cc: cannot create : directory nonexistent
configure:2205: $? = 2
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "dovecot"
| #define VERSION "0.99.10.4"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:2243: error: C compiler cannot create executables
See `config.log' for more details.

Needless to say this package used to complile OK, and other packages which haven't
been updated also (re)complile OK...

---8<-----

>How-To-Repeat:
	cvs update dovecot, cd & make...
>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted: