Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Apr 2011 13:18:20 -0500
From:      "Larry Rosenman" <ler@lerctr.org>
To:        <gnixua@gmail.com>
Cc:        'freebsd-ports' <freebsd-ports@freebsd.org>
Subject:   RE: lsof doesn't install from ports [FreeBSD 8.2-STABLE]
Message-ID:  <000001cbff87$5a725020$0f56f060$@org>
In-Reply-To: <4DAF22C8.9050705@gmail.com>
References:  <4DAF1C96.1070907@gmail.com> <000301cbff83$b821e9a0$2865bce0$@org> <4DAF22C8.9050705@gmail.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
Not sure what's going on with the KINFO_PROC_SIZE define.

Please make sure that you have a matching world/kernel (I know you said it
does, but....).

I have no issues compiling lsof on 8.2-STABLE on amd64.


-- 
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 512-248-2683                 E-Mail: ler@lerctr.org
US Mail: 430 Valona Loop, Round Rock, TX 78681-3893

-----Original Message-----
From: Gritsuk Anton [mailto:gnixua@gmail.com] 
Sent: Wednesday, April 20, 2011 1:16 PM
To: Larry Rosenman
Cc: 'freebsd-ports'
Subject: Re: lsof doesn't install from ports [FreeBSD 8.2-STABLE]

On 20.04.2011 20:52, Larry Rosenman wrote:
> What flavor machine is this?  Does the kernel and world match the running
> system?
>
> This is troubling, from a system header:
> In file included from ../dlsof.h:412,
>                    from ../lsof.h:195,
>                    from ckkv.c:43:
> /usr/src/sys/sys/user.h:92:2: error: #error "Unknown architecture"
>
> What is in /etc/make.conf?
>
> What is on line 92 of your /usr/src/sys/sys/user.h?
>
>

Detail info:

# uname -a
FreeBSD gx.laptop.net 8.2-STABLE FreeBSD 8.2-STABLE #0 r219049: Sat Feb 
26 14:29:39 EET 2011     
root@gx.laptop.net:/usr/obj/usr/src/sys/GENERIC  i386

# grep -A 1 REVISION= /usr/src/sys/conf/newvers.sh
REVISION="8.2"
BRANCH="STABLE"

In  past I upgraded my system from 8.0-STABLE to 8.2-STABLE. Kernel was 
compiled with GENERIC config.


# egrep -v ^$ /etc/make.conf | grep -v "^#"
MASTER_SITE_OVERRIDE?= \
ftp://ftp6.ua.FreeBSD.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/ \
ftp://ftp.univ.kiev.ua/FreeBSD/distfiles/${DIST_SUBDIR}/ \
ftp://ftp6.ru.freebsd.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/ \
ftp://ftp.linux.kiev.ua/pub/Linux/Gentoo/distfiles/${DIST_SUBDIR}/ \
OVERRIDE_LINUX_BASE_PORT=f10
OVERRIDE_LINUX_NONBASE_PORTS=f10
PORTSDIR?= /usr/ports
.if ${.CURDIR} == ${PORTSDIR}/net/mtr
WITHOUT_X11=yes
.endif
DEFAULT_MYSQL_VER=51
.if ${.CURDIR} == ${PORTSDIR}/databases/mysql51-client
WITH_CHARSET=cp1251
WITH_COLLATION=cp1251_bin
BUILD_OPTIMIZED=yes
.endif
.if ${.CURDIR} == ${PORTSDIR}/databases/mysql51-server
WITH_CHARSET=cp1251
WITH_XCHARSET=all
WITH_COLLATION=cp1251_bin
WITHOUT_OPENSSL=yes
WITHOUT_LINUXTHREADS=yes
BUILD_OPTIMIZED=yes
BUILD_STATIC=yes
WITH_INNODB=yes
WITHOUT_NDB=yes
.endif
PERL_VERSION=5.10.1


# vim +92 /usr/src/sys/sys/user.h
      90 #ifndef _KERNEL
      91 #ifndef KINFO_PROC_SIZE
      92 #error "Unknown architecture"
      93 #endif
      94 #endif /* !_KERNEL */



I noticed that when i use pkg_add installation will be finished successful.


Thanks for response.

-- 
best regards,
Anton





Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?000001cbff87$5a725020$0f56f060$>