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

Phil Cryer phil at cryer.us
Tue Sep 27 13:42:11 PDT 2005


 
>> 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
Thanks, currently I just manually mount /proc with:

echo "proc /proc procfs rw 0 0" >> /etc/fstab; mount /proc

anytime I need to debug some code, and that works, I was just wondering if there was any sort of better/long term solution.  A current open source project I'm working is written in C, and there's plenty to debug since they devel on Linux only, so I have to run gdb and the like rather often.  Just wondering if this is the best way to deal with this or if there's some "official" way that I don't know about.

Thanks again.

P


Kris


"You teach best what you most need to learn." - Richard Bach


More information about the freebsd-ports mailing list