Date: Mon, 1 Feb 2010 10:12:13 -0200 From: Vinicius Abrahao <vinnix.bsd@gmail.com> To: gremlin@portal-to-web.de, freebsd-current <freebsd-current@freebsd.org> Subject: Port build error on -current Message-ID: <1e31c7981002010412r2bc00d9bof3693fe5c0bfce@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hi folks,
I'm getting this error when I try to recompile this port
(security/pam_mkhomedir):
-------------------------------
=> SHA256 Checksum OK for pam_mkhomedir-0.1.tar.gz.
===> Patching for pam_mkhomedir-0.1
===> Configuring for pam_mkhomedir-0.1
===> Building for pam_mkhomedir-0.1
"/usr/share/mk/bsd.compat.mk", line 35: warning: NOINSTALLLIB is
deprecated in favour of NO_INSTALLLIB
"/usr/share/mk/bsd.compat.mk", line 35: warning: NOPROFILE is
deprecated in favour of NO_PROFILE
Warning: Object directory not changed from original
/usr/ports/security/pam_mkhomedir/work/pam_mkhomedir-0.1
cc -march=native -mtune=native -O2 -march=nocona -std=gnu99
-fstack-protector -c pam_mkhomedir.c
In file included from pam_mkhomedir.c:61:
/usr/include/utmp.h:2:2: error: #error "<utmp.h> has been replaced by <utmpx.h>"
*** Error code 1
Stop in /usr/ports/security/pam_mkhomedir/work/pam_mkhomedir-0.1.
*** Error code 1
Stop in /usr/ports/security/pam_mkhomedir.
** Command failed [exit code 1]: /usr/bin/script -qa
/tmp/portupgrade20100201-84816-5snl0x-0 env UPGRADE_TOOL=portupgrade
UPGRADE_PORT=pam_mkhomedir-0.1 UPGRADE_PORT_VER=0.1 make
** Fix the problem and try again.
** Listing the failed packages (-:ignored / *:skipped / !:failed)
! security/pam_mkhomedir (pam_mkhomedir-0.1) (unknown build error)
-------------------------------
The simple substitution on pam_mkhomedir.c solve the problem.
-------------------------------
*** pam_mkhomedir.c.orig Mon Feb 1 10:06:32 2010
--- pam_mkhomedir.c Mon Feb 1 10:06:48 2010
***************
*** 60,62 ****
#include <unistd.h>
! #include <utmp.h>
#include <err.h>
--- 60,62 ----
#include <unistd.h>
! #include <utmpx.h>
#include <err.h>
This problem does NOT occurs on 8-stable.
Thanks for your attention,
Vinicius Schmidt
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1e31c7981002010412r2bc00d9bof3693fe5c0bfce>
