"Philip A. Prindeville" <philipp_subx@xxxxxxxxxxxxxxxxxxxxx> writes: > Ok, so I'm invoking the compiler as: > > $ /home/philipp/kernel/build_i586/staging_dir/bin/i586-linux-uclibc-gcc -Os -pipe -fomit-frame-pointer -march=k6-2 -fno-align-functions -fno-align-loops -fno-align-jumps -fno-align-labels --sysroot=/home/philipp/kernel/build_i586/staging_dir -isystem /usr/include -Wall -O2 -D_REENTRANT -fPIC -Isrc/include -I/usr/include/openssl -I- '-DPROXY_VERSION="NOVER"' '-DCDIR="/etc"' '-DCFILE="astmanproxy.conf"' '-DMDIR="/usr/lib/astmanproxy/modules"' '-DPDIR="/etc/asterisk"' '-DPFILE="astmanproxy.users"' -cb -o ssl.o src/ssl.c -v You explicitly passed -isystem /usr/include, so gcc searches /usr/include. As of gcc 4.3 you would -isystem =/usr/include to apply the sysroot to your -isystem parameter. Ian