How to deal with a port that uses /proc in FreeBSD 6.0?

Kris Kennaway kris at obsecurity.org
Tue Sep 27 10:27:53 PDT 2005


On Tue, Sep 27, 2005 at 11:28:24AM -0500, Phil Cryer wrote:
> Anyone have any idea on this?  Basically writing a port that uses /proc (since all the dev work is done in Linux) but doesn't debug properly since there is no /proc in FreeBDS 6.x+  
> 
> http://fak3r.com/articles/2005/09/26/deprecated-proc-and-c-debugging
> 
> Is there a way to use sysctl in place of it?  If so, how can you 'symlink' an app to use it instead of /proc?

There is /proc, it just doesn't get mounted by default.  If your
software really really needs it and you can't patch it to obtain the
information another way (it sounds like you aren't experienced enough
to do this, but maybe you could talk to the developers), you can look
at what other ports like valgrind do to check and report a missing
procfs.

Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20050927/addd7970/attachment.bin


More information about the freebsd-ports mailing list