Say I unzipped the apr source in ~/software/unZipped/apr-1.3.3 Then the compilation fails if I try to build it in another directory such as ~/software/compileHere/apr-1.3.3 . The make.log is
> cat make.log nohup: ignoring input make[1]: Entering directory `/home/kkusuman/software/compileHere/apr-1.3.3' /bin/ksh /home/kkusuman/software/compileHere/apr-1.3.3/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DSOLARIS2=8 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE -I/home/kkusuman/software/myroot/include -I./include -I/home/kkusuman/software/unZipped/apr-1.3.3/include/arch/unix -I./include/arch/unix -I/home/kkusuman/software/unZipped/apr-1.3.3/include/arch/unix -I/home/kkusuman/software/unZipped/apr-1.3.3/include -o passwd/apr_getpass.lo -c ../../unZipped/apr-1.3.3/passwd/apr_getpass.c && touch passwd/apr_getpass.lo /home/kkusuman/software/compileHere/apr-1.3.3/libtool[1280]: passwd/apr_getpass.loT: cannot create mkdir: cannot create directory `passwd/.libs': No such file or directory make[1]: *** [passwd/apr_getpass.lo] Error 1 make[1]: Leaving directory `/home/kkusuman/software/compileHere/apr-1.3.3' make: *** [all-recursive] Error 1 The code compiles fine if the source directory is same as the build directory. hth raju