I installed a cross-compiler for PowerPC 603e (OSELAS-Toolchain from Pengutronix) on an i686 machine with Fedora 24. All steps for compiling tinc (https://www.tinc-vpn.org/examples/cross-compiling-windows-binary/) worked successfully. After compiling I verified the file type (file tincd) obtaining: tincd: ELF 32-bit MSB shared object, PowerPC or cisco 4500, version 1 (SYSV), dynamically linked, interpreter /lib/ld.so.1, for GNU/Linux 3.0.0, not stripped Binary ($HOME/tinc/tinc-1.0.33/src/tincd) has been copied on my PowerPC (/usr/bin/tincd). But when I try to start tinc, tincd searches all configuration files into /usr/local/etc. (I don't know if it's correct, because others installations leave those configurations into /etc/tinc). I moved all configurations files (tinc.conf and scripts to tinc-up and down) into /usr/local/etc/tinc and after this I don't receive an error message when I start the process but it generates no PID and obviously no tunneling allowed. What did I do wrong? Thanks you so much for your assistance. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.tinc-vpn.org/pipermail/tinc-devel/attachments/20180418/093779a9/attachment.html>
On Wed, Apr 18, 2018 at 07:47:01AM +0000, Zapata Frank wrote:> Binary ($HOME/tinc/tinc-1.0.33/src/tincd) has been copied on my PowerPC (/usr/bin/tincd). > But when I try to start tinc, tincd searches all configuration files into /usr/local/etc. (I don't know if it's correct, because others installations leave those configurations into /etc/tinc).By default, when you run ./configure without any arguments, it will install everything in to /usr/local. The idea is that this ensures you will not overwrite any files from your operating system/distribution. To ensure tinc reads the config files from /etc and puts the pid file in /var/run, configure tinc like so: ./configure --sysconfdir=/etc --localstatedir=/var You can also override the compiled in paths at runtime using the --config and --pidfile options. -- Met vriendelijke groet / with kind regards, Guus Sliepen <guus at tinc-vpn.org> -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: <http://www.tinc-vpn.org/pipermail/tinc-devel/attachments/20180418/e47150c9/attachment.sig>