Skip to content

Tag: linux

gcc linker (ld) can’t find shared libraries

I’ve trying to cross compile an app for iMX6 CPU using linaro-gcc and a dedicated rootfs. The app might be linked to OpenVG and the standard pthread libraries. It compiles fine but the linker failed to link to the OpenVG library so I added the linker switch -L/home/ae/Documents/toradex/col-imx6/colibri-…

DHClient override renewal time

My ubuntu machine is receiving a renewal time of 7000 seconds from the DNS server. I want to change this on the ubuntu machine to be longer via the dhclient.conf. I can’t change the dhcp sever. However all the examples I try don’t seem to be the correct syntax. For instance if I add at the top of …

‘pecl install ibm_db2’ can’t find library

I’m trying to install ibm_db2 through pecl: Then when it asks for an install dir, I have tried various places only to have the same result. It goes through a bunch of checks etc., then tries to ‘make’ and gets an error: It always looks there for the libraries. And they exist, because when I …

Docker cgroup.procs no space left on device

After some problem with Docker and my dedicated server with a Debian (the provider give some OS image without some features needed by Docker, so I recompiled Linux kernel yesterday and activate the features needed, I followed some instruction in blog). Now I was happy to have success with docker I tried to cr…

Why we call the signal function in the start of the linux c program?

The program is very simple, I have a handler function named fintr() and the program is: Can I put signal(SIGINT,fintr); at the end of the function main()? And why do we have to put it in the beginning of main()? Answer Putting it at the end means it will come after the while (1) … loop, so no, you can&#…

How to mount image using mount(2)

I cannot mount some IMAGE on the MacOSX 10.10 via C function mount(). I use following code And when I start the program I get the error “mount() is failed! Error(Operation not supported by device).” And image was mounted if I use the following command: Also, when I use mount() on the Linux –…