My company is in the process of porting all of our business application servers and data mining products from Windows to Linux. I elected FPC for the chore, and Lazarus to have a debugger/IDE environment. Our products all 100% console/daemon.
Some of the problems I am running in to, I am sure others have too... and maybe someone could shed some light on resources to reduce my learning curve.
An embarrassing example: developed a daemon using my DXSock suite, and decided to implement it as a true Linux shell app (not a Daemon yet). When I found that I could not do a ForceDirectories('/var/log/myproject/') because I was not root. Instead of su and making the directory, I spent time researching setuid(0) and EPERM, to figure out after a while I either have to run the app as root, or make the directory manually and grant access to my user account. -- yeah, the obvious is understood... but are their any Linux developer books that (1) explains that you use setuid(0) to gain privileged access, so I know the function instead of hacking through apache source, (2) any FPC and/or LAZ examples that are truly LINUX oriented? ... as I had the same problem with my conf file in /etc... I now compile as my user, and run everything from a root based account. But wasted about 3 hours hacking around until I found setuid() in apache, then instantly figured out why it was not working.
Another question along this level of wanting to learn. Is there a way that I can find out if I am developing against the FPC's units compiled FPC_USE_LIBC or not? (referring to system unit specifically) - can I do it during design time, and during run-time?
And lastly, are there any Getting started quick with FPC/LAZ. Covering topics like reporting a bug (where and how), you installed everything but you want to do weekly svn checkouts (how to), when you have made core changes and want to contribute (how, who, etc).
Thank you kindly,
Ozz