Re: No packages 'gnome-utils' in snapshots and build from ports fails
On Sat, 4 Jun 2011, Stuart Henderson wrote: I noticed lsof installs in /usr/local/sbin, which is a no-no. apart from getting Tutti Frutti Summer Love stuck in my head again (thanks!) I don't see a problem here. AHAHAHAHA :-) This makes my day... -- Antoine
Re: No packages 'gnome-utils' in snapshots and build from ports fails
On Thu, Jun 2, 2011 at 7:14 PM, Antoine Jacoutot ajacou...@bsdfrog.org wrote: I guess you are not current enough to build lsof. dproc.c: In function 'process_text': dproc.c:539: error: 'struct vm_map' has no member named 'nentries' dproc.c:545: error: 'struct vm_map' has no member named 'header' dproc.c:547: error: 'struct vm_map_entry' has no member named 'next' *** Error code 1 I'm current (done a make build this morning) and I confirm lsof is broken due to vmmap. Ariane, please, can you help shedding some light? Ciao, David
Re: No packages 'gnome-utils' in snapshots and build from ports fails
On Fri, Jun 03, 2011 at 03:27:37PM +0200, David Coppa wrote: On Thu, Jun 2, 2011 at 7:14 PM, Antoine Jacoutot ajacou...@bsdfrog.org wrote: I guess you are not current enough to build lsof. dproc.c: In function 'process_text': dproc.c:539: error: 'struct vm_map' has no member named 'nentries' dproc.c:545: error: 'struct vm_map' has no member named 'header' dproc.c:547: error: 'struct vm_map_entry' has no member named 'next' *** Error code 1 I'm current (done a make build this morning) and I confirm lsof is broken due to vmmap. Ariane, please, can you help shedding some light? This is the same as procmap (from base) and libgtop (from ports) do. They traversed the map using a linked list (in the old allocator this list existed). The new allocator only has a tree. The easiest way to traverse a map from userspace is to recreate the tree in userspace, then use RB_FOREACH to traverse it. This is what is done to make libgtop2 work properly. See /usr/ports/devel/libgtop2/files/procmap.c for sample code; the load_vmmap_entries and unload_vmmap_entries code can be copied verbatim and adapted to lsofs idea of kvm_read. RB_INIT(root); nentries = load_vmmap_entries(server, (unsigned long) RB_ROOT(vmspace.vm_map.addr), RB_ROOT(root), NULL); if (nentries == -1) { unload_vmmap_entries(RB_ROOT(root)); glibtop_error_io_r (server, kvm_read (entry)); } RB_FOREACH(entry, uvm_map_addr, root) { /* * funky code goes here */ } unload_vmmap_entries(RB_ROOT(root)); The load_vmmap_entries function performs copy from kernel to userland. The unload_vmmap_entries is a recursive free() (and must be called if the copy fails). -- Ariane
Re: No packages 'gnome-utils' in snapshots and build from ports fails
In gmane.os.openbsd.misc, you wrote: On Fri, Jun 03, 2011 at 03:27:37PM +0200, David Coppa wrote: On Thu, Jun 2, 2011 at 7:14 PM, Antoine Jacoutot ajacou...@bsdfrog.org wrote: I guess you are not current enough to build lsof. dproc.c: In function 'process_text': dproc.c:539: error: 'struct vm_map' has no member named 'nentries' dproc.c:545: error: 'struct vm_map' has no member named 'header' dproc.c:547: error: 'struct vm_map_entry' has no member named 'next' *** Error code 1 I'm current (done a make build this morning) and I confirm lsof is broken due to vmmap. Ariane, please, can you help shedding some light? This is the same as procmap (from base) and libgtop (from ports) do. They traversed the map using a linked list (in the old allocator this list existed). The new allocator only has a tree. The easiest way to traverse a map from userspace is to recreate the tree in userspace, then use RB_FOREACH to traverse it. This is what is done to make libgtop2 work properly. See /usr/ports/devel/libgtop2/files/procmap.c for sample code; the load_vmmap_entries and unload_vmmap_entries code can be copied verbatim and adapted to lsofs idea of kvm_read. RB_INIT(root); nentries = load_vmmap_entries(server, (unsigned long) RB_ROOT(vmspace.vm_map.addr), RB_ROOT(root), NULL); if (nentries == -1) { unload_vmmap_entries(RB_ROOT(root)); glibtop_error_io_r (server, kvm_read (entry)); } RB_FOREACH(entry, uvm_map_addr, root) { /* * funky code goes here */ } unload_vmmap_entries(RB_ROOT(root)); The load_vmmap_entries function performs copy from kernel to userland. The unload_vmmap_entries is a recursive free() (and must be called if the copy fails). -- Ariane Trying the diff below but I'm getting this when linking. Any clues as to what I'm missing? ./lib/liblsof.a(dvch.o)(.text+0x4fe): In function `dcpath': : warning: strcpy() is almost always misused, please use strlcpy() dproc.o(.text+0x531): In function `gather_proc_info': : undefined reference to `uvm_map_addr_RB_MINMAX' dproc.o(.text+0x64e): In function `gather_proc_info': : undefined reference to `uvm_map_addr_RB_NEXT' collect2: ld returned 1 exit status *** Error code 1 $OpenBSD$ --- dialects/n+obsd/dproc.c.origWed May 11 13:54:00 2005 +++ dialects/n+obsd/dproc.c Fri Jun 3 18:35:26 2011 @@ -93,7 +93,88 @@ ckkv(d, er, ev, ea) } + /* + * Download vmmap_entries from the kernel into our address space. + * We fix up the addr tree while downloading. + * + * Returns: the size of the tree on succes, or -1 on failure. + * On failure, *rptr needs to be passed to unload_vmmap_entries to free + * the lot. + */ +ssize_t +load_vmmap_entries(unsigned long kptr, +struct vm_map_entry **rptr, struct vm_map_entry *parent) +{ + struct vm_map_entry *entry; + unsigned long left_kptr, right_kptr; + ssize_t left_sz; + ssize_t right_sz; + + if (kptr == 0) + return 0; + + /* Need space. */ + entry = malloc(sizeof(*entry)); + if (entry == NULL) + return -1; + + /* Download entry at kptr. */ + if (kvm_read (Kd, kptr, + (char *)entry, sizeof(*entry)) != sizeof(*entry)) { + free(entry); + return -1; + } + + /* +* Update addr pointers to have sane values in this address space. +* We save the kernel pointers in {left,right}_kptr, so we have them +* available to download children. +*/ + left_kptr = (unsigned long) RB_LEFT(entry, daddrs.addr_entry); + right_kptr = (unsigned long) RB_RIGHT(entry, daddrs.addr_entry); + RB_LEFT(entry, daddrs.addr_entry) = + RB_RIGHT(entry, daddrs.addr_entry) = NULL; + /* Fill in parent pointer. */ + RB_PARENT(entry, daddrs.addr_entry) = parent; + + /* +* Consistent state reached, fill in *rptr. +*/ + *rptr = entry; + + /* +* Download left, right. +* On failure, our map is in a state that can be handled by +* unload_vmmap_entries. +*/ + left_sz = load_vmmap_entries(left_kptr, + RB_LEFT(entry, daddrs.addr_entry), entry); + if (left_sz == -1) + return -1; + right_sz = load_vmmap_entries(right_kptr, + RB_RIGHT(entry, daddrs.addr_entry), entry); + if (right_sz == -1) + return -1; + + return 1 + left_sz + right_sz; +} + +/* + * Free the vmmap entries in the given tree. + */ +void +unload_vmmap_entries(struct vm_map_entry *entry) +{ + if (entry == NULL) + return; + + unload_vmmap_entries(RB_LEFT(entry, daddrs.addr_entry)); + unload_vmmap_entries(RB_RIGHT(entry, daddrs.addr_entry)); + free(entry); +} + +/* * enter_vn_text() - enter a vnode text
Re: No packages 'gnome-utils' in snapshots and build from ports fails
Hi, Needs an RB_GENERATE, see devel/libgtop2/files/procmap.c used this at end of file. Adding this builds, but I get a Seg fault when attempting running built lsof on amd64. /* * Don't implement address comparison. */ static __inline int no_impl(void *p, void *q) { abort(); /* Should not be called. */ return 0; } RB_GENERATE(uvm_map_addr, vm_map_entry, daddrs.addr_entry, no_impl); Regards Nigel Taylor On 06/03/11 18:41, Stuart Henderson wrote: In gmane.os.openbsd.misc, you wrote: On Fri, Jun 03, 2011 at 03:27:37PM +0200, David Coppa wrote: On Thu, Jun 2, 2011 at 7:14 PM, Antoine Jacoutot ajacou...@bsdfrog.org wrote: I guess you are not current enough to build lsof. dproc.c: In function 'process_text': dproc.c:539: error: 'struct vm_map' has no member named 'nentries' dproc.c:545: error: 'struct vm_map' has no member named 'header' dproc.c:547: error: 'struct vm_map_entry' has no member named 'next' *** Error code 1 I'm current (done a make build this morning) and I confirm lsof is broken due to vmmap. Ariane, please, can you help shedding some light? This is the same as procmap (from base) and libgtop (from ports) do. They traversed the map using a linked list (in the old allocator this list existed). The new allocator only has a tree. The easiest way to traverse a map from userspace is to recreate the tree in userspace, then use RB_FOREACH to traverse it. This is what is done to make libgtop2 work properly. See /usr/ports/devel/libgtop2/files/procmap.c for sample code; the load_vmmap_entries and unload_vmmap_entries code can be copied verbatim and adapted to lsofs idea of kvm_read. RB_INIT(root); nentries = load_vmmap_entries(server, (unsigned long) RB_ROOT(vmspace.vm_map.addr), RB_ROOT(root), NULL); if (nentries == -1) { unload_vmmap_entries(RB_ROOT(root)); glibtop_error_io_r (server, kvm_read (entry)); } RB_FOREACH(entry, uvm_map_addr, root) { /* * funky code goes here */ } unload_vmmap_entries(RB_ROOT(root)); The load_vmmap_entries function performs copy from kernel to userland. The unload_vmmap_entries is a recursive free() (and must be called if the copy fails). -- Ariane Trying the diff below but I'm getting this when linking. Any clues as to what I'm missing? ./lib/liblsof.a(dvch.o)(.text+0x4fe): In function `dcpath': : warning: strcpy() is almost always misused, please use strlcpy() dproc.o(.text+0x531): In function `gather_proc_info': : undefined reference to `uvm_map_addr_RB_MINMAX' dproc.o(.text+0x64e): In function `gather_proc_info': : undefined reference to `uvm_map_addr_RB_NEXT' collect2: ld returned 1 exit status *** Error code 1 $OpenBSD$ --- dialects/n+obsd/dproc.c.orig Wed May 11 13:54:00 2005 +++ dialects/n+obsd/dproc.c Fri Jun 3 18:35:26 2011 @@ -93,7 +93,88 @@ ckkv(d, er, ev, ea) } + /* + * Download vmmap_entries from the kernel into our address space. + * We fix up the addr tree while downloading. + * + * Returns: the size of the tree on succes, or -1 on failure. + * On failure, *rptr needs to be passed to unload_vmmap_entries to free + * the lot. + */ +ssize_t +load_vmmap_entries(unsigned long kptr, +struct vm_map_entry **rptr, struct vm_map_entry *parent) +{ + struct vm_map_entry *entry; + unsigned long left_kptr, right_kptr; + ssize_t left_sz; + ssize_t right_sz; + + if (kptr == 0) + return 0; + + /* Need space. */ + entry = malloc(sizeof(*entry)); + if (entry == NULL) + return -1; + + /* Download entry at kptr. */ + if (kvm_read (Kd, kptr, + (char *)entry, sizeof(*entry)) != sizeof(*entry)) { + free(entry); + return -1; + } + + /* + * Update addr pointers to have sane values in this address space. + * We save the kernel pointers in {left,right}_kptr, so we have them + * available to download children. + */ + left_kptr = (unsigned long) RB_LEFT(entry, daddrs.addr_entry); + right_kptr = (unsigned long) RB_RIGHT(entry, daddrs.addr_entry); + RB_LEFT(entry, daddrs.addr_entry) = + RB_RIGHT(entry, daddrs.addr_entry) = NULL; + /* Fill in parent pointer. */ + RB_PARENT(entry, daddrs.addr_entry) = parent; + + /* + * Consistent state reached, fill in *rptr. + */ + *rptr = entry; + + /* + * Download left, right. + * On failure, our map is in a state that can be handled by + * unload_vmmap_entries. + */ + left_sz = load_vmmap_entries(left_kptr, + RB_LEFT(entry, daddrs.addr_entry), entry); + if (left_sz == -1) + return -1; + right_sz = load_vmmap_entries(right_kptr, + RB_RIGHT(entry, daddrs.addr_entry), entry); + if
Re: No packages 'gnome-utils' in snapshots and build from ports fails
On Fri, Jun 3, 2011 at 5:09 PM, Nigel Taylor njtay...@asterisk.demon.co.uk wrote: Hi, Needs an RB_GENERATE, see devel/libgtop2/files/procmap.c used this at end of file. Adding this builds, but I get a Seg fault when attempting running built lsof on amd64. /* * Don't implement address comparison. */ static __inline int no_impl(void *p, void *q) { abort(); /* Should not be called. */ return 0; } RB_GENERATE(uvm_map_addr, vm_map_entry, daddrs.addr_entry, no_impl); Good catch! I also get the segfault. I tweaked the configure, which is kinda silly but here's Stuart's original patch + Nigel's diff + configure tweak all in one package. I packaged it so it will extract to folder lsof. I noticed lsof installs in /usr/local/sbin, which is a no-no. Didn't find it right off where its defined , sbin??? Thanks [demime 1.01d removed an attachment of type application/x-tar which had a name of lsof.tar]
Re: No packages 'gnome-utils' in snapshots and build from ports fails
On 2011/06/03 17:42, Amit Kulkarni wrote: On Fri, Jun 3, 2011 at 5:09 PM, Nigel Taylor njtay...@asterisk.demon.co.uk wrote: Hi, Needs an RB_GENERATE, see devel/libgtop2/files/procmap.c used this at end of file. Adding this builds, but I get a Seg fault when attempting running built lsof on amd64. /* * Don't implement address comparison. */ static __inline int no_impl(void *p, void *q) { abort(); /* Should not be called. */ return 0; } RB_GENERATE(uvm_map_addr, vm_map_entry, daddrs.addr_entry, no_impl); Good catch! I also get the segfault. I tweaked the configure, which is kinda silly but here's Stuart's original patch + Nigel's diff + configure tweak all in one package. I packaged it so it will extract to folder lsof. Thanks Any tweaks to configure will be a separate commit after the port is fixed, no need for the distraction for now. I'm not quite sure why you removed the XXX comment about the name cache either. btw inline diffs please, tars are only for new ports. I noticed lsof installs in /usr/local/sbin, which is a no-no. apart from getting Tutti Frutti Summer Love stuck in my head again (thanks!) I don't see a problem here.
No packages 'gnome-utils' in snapshots and build from ports fails
Hi, I installed the 5/31/11 i386 snapshot and am installing gnome from ports (downloaded ports file from same ftp://ftp.openbsd.org mirror on same date). I installed eog; gedit; gnome-session; gnome-audio; gnome-control-center; gnome-media; gnome-panel; gnome-terminal; and nautilus with no problem. Install of gnome-utils failed (error message below). So I tried to install it from ftp://ftp.openbsd.org/pub/OpenBSD/snapshots/packages/i386/ and it is not there. Also I tried a few other mirrors and they also do not have gnome-utils. Has this package been superseded by some other gnome- ? Brett. === Checking files for gnome-utils-2.32.0p3 `/usr/ports/distfiles/gnome/gnome-utils-2.32.0.tar.bz2' is up to date. (SHA256) gnome/gnome-utils-2.32.0.tar.bz2: OK === gnome-utils-2.32.0p3 depends on: libgtop2-* - not found === Verifying install for libgtop2-* in devel/libgtop2 === libgtop2-2.28.3p12 depends on: lsof-* - not found === Verifying install for lsof-* in sysutils/lsof === Building for lsof-4.83p4 (cd lib; make DEBUG=-O2 -pipe CFGF=-DOPENBSDV=4070 -DN_UNIXV=/dev/ksyms -DHASNFSPROTO -DHASIPv6 -DHAS9660FS=1 -DHASMSDOSFS=1 -DHASI_E2FS_PTR -DHASEXT2FS=2 -DHASEFFNLINK=i_effnlink -DHAS_DINODE_U -DHASI_FFS1 -DHAS_UM_UFS -DHASNCVPID -DUVM -DHAS_UVM_INCL -DHAS_SYS_PIPEH -DHASKVMGETPROC2 -DHAS_STRFTIME -DLSOF_VSTR=\4.9\) cc -DOPENBSDV=4070 -DN_UNIXV=/dev/ksyms -DHASNFSPROTO -DHASIPv6 -DHAS9660FS=1 -DHASMSDOSFS=1 -DHASI_E2FS_PTR -DHASEXT2FS=2 -DHASEFFNLINK=i_effnlink -DHAS_DINODE_U -DHASI_FFS1 -DHAS_UM_UFS -DHASNCVPID -DUVM -DHAS_UVM_INCL -DHAS_SYS_PIPEH -DHASKVMGETPROC2 -DHAS_STRFTIME -DLSOF_VSTR=\4.9\ -I/usr/include -I/sys -O2 -pipe -c dproc.c dproc.c: In function 'process_text': dproc.c:539: error: 'struct vm_map' has no member named 'nentries' dproc.c:545: error: 'struct vm_map' has no member named 'header' dproc.c:547: error: 'struct vm_map_entry' has no member named 'next' *** Error code 1 Stop in /usr/ports/pobj/lsof-4.83/lsof_4.83/lsof_4.83_src (line 92 of /usr/share/mk/sys.mk). *** Error code 1 Stop in /usr/ports/sysutils/lsof (line 2444 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/sysutils/lsof (line 1661 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/sysutils/lsof (line 2232 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/sysutils/lsof (line 2212 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/sysutils/lsof (line 1692 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/sysutils/lsof (line 2212 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/devel/libgtop2 (line 1850 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/devel/libgtop2 (line 1692 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/devel/libgtop2 (line 2212 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/x11/gnome/utils (line 1850 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/x11/gnome/utils (line 2264 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/x11/gnome/utils (line 1661 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/x11/gnome/utils (line 2232 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/x11/gnome/utils (line 2212 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/x11/gnome/utils (line 1692 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/x11/gnome/utils (line 2212 of /usr/ports/infrastructure/mk/bsd.port.mk).
Re: No packages 'gnome-utils' in snapshots and build from ports fails
On Thu, 2 Jun 2011, Brett Mahar wrote: Hi, I installed the 5/31/11 i386 snapshot and am installing gnome from ports (downloaded ports file from same ftp://ftp.openbsd.org mirror on same date). I guess you are not current enough to build lsof. I installed eog; gedit; gnome-session; gnome-audio; gnome-control-center; gnome-media; gnome-panel; gnome-terminal; and nautilus with no problem. Install of gnome-utils failed (error message below). So I tried to install it from ftp://ftp.openbsd.org/pub/OpenBSD/snapshots/packages/i386/ and it is not there. Also I tried a few other mirrors and they also do not have gnome-utils. Has this package been superseded by some other gnome- ? Brett. === Checking files for gnome-utils-2.32.0p3 `/usr/ports/distfiles/gnome/gnome-utils-2.32.0.tar.bz2' is up to date. (SHA256) gnome/gnome-utils-2.32.0.tar.bz2: OK === gnome-utils-2.32.0p3 depends on: libgtop2-* - not found === Verifying install for libgtop2-* in devel/libgtop2 === libgtop2-2.28.3p12 depends on: lsof-* - not found === Verifying install for lsof-* in sysutils/lsof === Building for lsof-4.83p4 (cd lib; make DEBUG=-O2 -pipe CFGF=-DOPENBSDV=4070 -DN_UNIXV=/dev/ksyms -DHASNFSPROTO -DHASIPv6 -DHAS9660FS=1 -DHASMSDOSFS=1 -DHASI_E2FS_PTR -DHASEXT2FS=2 -DHASEFFNLINK=i_effnlink -DHAS_DINODE_U -DHASI_FFS1 -DHAS_UM_UFS -DHASNCVPID -DUVM -DHAS_UVM_INCL -DHAS_SYS_PIPEH -DHASKVMGETPROC2 -DHAS_STRFTIME -DLSOF_VSTR=\4.9\) cc -DOPENBSDV=4070 -DN_UNIXV=/dev/ksyms -DHASNFSPROTO -DHASIPv6 -DHAS9660FS=1 -DHASMSDOSFS=1 -DHASI_E2FS_PTR -DHASEXT2FS=2 -DHASEFFNLINK=i_effnlink -DHAS_DINODE_U -DHASI_FFS1 -DHAS_UM_UFS -DHASNCVPID -DUVM -DHAS_UVM_INCL -DHAS_SYS_PIPEH -DHASKVMGETPROC2 -DHAS_STRFTIME -DLSOF_VSTR=\4.9\ -I/usr/include -I/sys -O2 -pipe -c dproc.c dproc.c: In function 'process_text': dproc.c:539: error: 'struct vm_map' has no member named 'nentries' dproc.c:545: error: 'struct vm_map' has no member named 'header' dproc.c:547: error: 'struct vm_map_entry' has no member named 'next' *** Error code 1 Stop in /usr/ports/pobj/lsof-4.83/lsof_4.83/lsof_4.83_src (line 92 of /usr/share/mk/sys.mk). *** Error code 1 Stop in /usr/ports/sysutils/lsof (line 2444 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/sysutils/lsof (line 1661 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/sysutils/lsof (line 2232 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/sysutils/lsof (line 2212 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/sysutils/lsof (line 1692 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/sysutils/lsof (line 2212 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/devel/libgtop2 (line 1850 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/devel/libgtop2 (line 1692 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/devel/libgtop2 (line 2212 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/x11/gnome/utils (line 1850 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/x11/gnome/utils (line 2264 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/x11/gnome/utils (line 1661 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/x11/gnome/utils (line 2232 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/x11/gnome/utils (line 2212 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/x11/gnome/utils (line 1692 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/x11/gnome/utils (line 2212 of /usr/ports/infrastructure/mk/bsd.port.mk). -- Antoine
Re: No packages 'gnome-utils' in snapshots and build from ports fails
Hi, sysutils/lsof doesn't build because of the changes to src/sys/uvm/uvm_map.h changed 24 May 2011. There has been no update to lsof since 14 May 2011, so lsof still needs fixing. Problems with a number of other packages on amd64 devel/jdk/1.5 build fails, lang/mono builds but crashes when run) so x11/mono-gtk2 build fails. see mail misc list thread - vmmap: bad software everywhere for an explanation. Regards Nigel Taylor On 06/02/11 18:14, Antoine Jacoutot wrote: On Thu, 2 Jun 2011, Brett Mahar wrote: Hi, I installed the 5/31/11 i386 snapshot and am installing gnome from ports (downloaded ports file from same ftp://ftp.openbsd.org mirror on same date). I guess you are not current enough to build lsof. I installed eog; gedit; gnome-session; gnome-audio; gnome-control-center; gnome-media; gnome-panel; gnome-terminal; and nautilus with no problem. Install of gnome-utils failed (error message below). So I tried to install it from ftp://ftp.openbsd.org/pub/OpenBSD/snapshots/packages/i386/ and it is not there. Also I tried a few other mirrors and they also do not have gnome-utils. Has this package been superseded by some other gnome- ? Brett. === Checking files for gnome-utils-2.32.0p3 `/usr/ports/distfiles/gnome/gnome-utils-2.32.0.tar.bz2' is up to date. (SHA256) gnome/gnome-utils-2.32.0.tar.bz2: OK === gnome-utils-2.32.0p3 depends on: libgtop2-* - not found === Verifying install for libgtop2-* in devel/libgtop2 === libgtop2-2.28.3p12 depends on: lsof-* - not found === Verifying install for lsof-* in sysutils/lsof === Building for lsof-4.83p4 (cd lib; make DEBUG=-O2 -pipe CFGF=-DOPENBSDV=4070 -DN_UNIXV=/dev/ksyms -DHASNFSPROTO -DHASIPv6 -DHAS9660FS=1 -DHASMSDOSFS=1 -DHASI_E2FS_PTR -DHASEXT2FS=2 -DHASEFFNLINK=i_effnlink -DHAS_DINODE_U -DHASI_FFS1 -DHAS_UM_UFS -DHASNCVPID -DUVM -DHAS_UVM_INCL -DHAS_SYS_PIPEH -DHASKVMGETPROC2 -DHAS_STRFTIME -DLSOF_VSTR=\4.9\) cc -DOPENBSDV=4070 -DN_UNIXV=/dev/ksyms -DHASNFSPROTO -DHASIPv6 -DHAS9660FS=1 -DHASMSDOSFS=1 -DHASI_E2FS_PTR -DHASEXT2FS=2 -DHASEFFNLINK=i_effnlink -DHAS_DINODE_U -DHASI_FFS1 -DHAS_UM_UFS -DHASNCVPID -DUVM -DHAS_UVM_INCL -DHAS_SYS_PIPEH -DHASKVMGETPROC2 -DHAS_STRFTIME -DLSOF_VSTR=\4.9\ -I/usr/include -I/sys -O2 -pipe -c dproc.c dproc.c: In function 'process_text': dproc.c:539: error: 'struct vm_map' has no member named 'nentries' dproc.c:545: error: 'struct vm_map' has no member named 'header' dproc.c:547: error: 'struct vm_map_entry' has no member named 'next' *** Error code 1 Stop in /usr/ports/pobj/lsof-4.83/lsof_4.83/lsof_4.83_src (line 92 of /usr/share/mk/sys.mk). *** Error code 1 Stop in /usr/ports/sysutils/lsof (line 2444 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/sysutils/lsof (line 1661 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/sysutils/lsof (line 2232 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/sysutils/lsof (line 2212 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/sysutils/lsof (line 1692 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/sysutils/lsof (line 2212 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/devel/libgtop2 (line 1850 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/devel/libgtop2 (line 1692 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/devel/libgtop2 (line 2212 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/x11/gnome/utils (line 1850 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/x11/gnome/utils (line 2264 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/x11/gnome/utils (line 1661 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/x11/gnome/utils (line 2232 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/x11/gnome/utils (line 2212 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/x11/gnome/utils (line 1692 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/x11/gnome/utils (line 2212 of /usr/ports/infrastructure/mk/bsd.port.mk).
Re: No packages 'gnome-utils' in snapshots and build from ports fails
On 06/02/11 11:31, Nigel Taylor wrote: Hi, sysutils/lsof doesn't build because of the changes to src/sys/uvm/uvm_map.h changed 24 May 2011. There has been no update to lsof since 14 May 2011, so lsof still needs fixing. see mail misc list thread - vmmap: bad software everywhere for an explanation. OK. I have been reading the vvmap thread, but did not know this was a related problem. In case anyone else wants to run a desktop environment on top of the current current (and knows as little as me about how to fix lsof), xfce is still working fine. Brett.