lsof on FreeBSD/arm

Ian Lepore ian at freebsd.org
Tue Dec 23 19:16:33 UTC 2014


On Tue, 2014-12-23 at 11:29 -0600, Larry Rosenman wrote:
> Greetings,
>      I'm the maintainer of the sysutils/lsof port for FreeBSD.  It's been 
> reported to me that the port doesn't compile on arm.  In investigating
> that, I found that some of the includes that lsof includes need a cpu 
> type defined in order to compile (machine/cpuconf.h).
> 
> Is there a reason that there is no "default" cpu defined either by the 
> compiler or environment?
> 
> Playing in a armv6 poudriere jail, I found I can get it to compile via:
> borg.lerctr.org /usr/local/etc/poudriere.d $ cat p110armv6-make.conf
> CFLAGS += -DCPU_ARM1136=1
> borg.lerctr.org /usr/local/etc/poudriere.d $
> 
> However, I'm not sure if that's kosher for a port to just define.
> 
> Can any of the arm experts help here?
> 
> 
> 

See if the attached patch helps.  The specific type of cpu shouldn't
really matter outside the kernel (or even inside it except in a couple
places), what usually matters is the architecture, which we've
simplified to v4 versus v6 for most purposes.

The attached patch will use the compiler's predefined values for arch to
set our old-school symbols, which we really need to do a big cleanup
pass on, but hopefully this little hack will get you going until that
gets done.  Let me know if this works and I'll commit it.

-- Ian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: cpuconf_arch_compat.diff
Type: text/x-patch
Size: 727 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20141223/fe6b1f67/attachment.bin>


More information about the freebsd-arm mailing list