On Fri, Jun 3, 2011 at 5:09 PM, Nigel Taylor <[email protected]> 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]

