I am very new to linux and openSSH ,, i am trying to compile openssh for jungo openrg IXP45. but while configuring i am getting following error,, hecking for libgen.h... yes checking for getspnam... yes checking for library containing basename... none required checking for deflate in -lz... no configure: error: *** zlib missing - please install first or check config.log *** if anybody will me then it would be realy appriciated,, i used to give path of zlib also,, but i dont know what is going wrong,, can anybody tell me how to set -lz with libz.a and config.log file showing like below,, (IN CONFIG.LOG file) | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. */ | #ifdef __cplusplus | extern "C" | #endif | char deflate (); | int | main () | { | return deflate (); | ; | return 0; | } configure:10140: result: no configure:10189: /usr/local/openrg/armv5b-jungo-linux-gnu/bin/armv5b-jungo-linux-gnu-gcc -o conftest -g -O2 -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -std=gnu99 -I/usr/local/include -I/usr/local/openrg/openrg/pkg/zlib/ -L/usr/local/lib -L/usr/local/openrg/openrg/pkg/zlib/ conftest.c -lnsl -lz >&5 /usr/local/openrg/armv5b-jungo-linux-gnu/lib/gcc-lib/armv5b-jungo-linux-gnu/3.3.2/../../../../armv5b-jungo-linux-gnu/bin/ld: skipping incompatible /usr/local/lib/libz.a when searching for -lz /tmp/ccysCctu.o(.text+0x4): In function `main': /usr/local/openrg/openrg/pkg/openssh/conftest.c:83: undefined reference to `deflate' collect2: ld returned 1 exit status configure:10195: $? = 1 configure: failed program was: | /* confdefs.h. */ thanks --------------------------------- Ahhh...imagining that irresistible "new car" smell? Check outnew cars at Yahoo! Autos.
On Thu, Apr 19, 2007 at 03:48:55AM -0700, hfgj ghgj wrote:> checking for deflate in -lz... no > configure: error: *** zlib missing - please install first or check config.log ***[..]> if anybody will me then it would be realy appriciated,, i used to > give path of zlib also,, but i dont know what is going wrong,, > > can anybody tell me how to set -lz with libz.aYou did this the correct way, but..> /usr/local/openrg/armv5b-jungo-linux-gnu/lib/gcc-lib/armv5b-jungo-linux-gnu/3.3.2/../../../../armv5b-jungo-linux-gnu/bin/ld: skipping incompatible /usr/local/lib/libz.a when searching for -lz..the libz.a you specified is not usable on this platform it seems. The easiest would probably be to re-install zlib from source on your target system. //Peter
I tried to reinstall zlib from the source, but then also it showing like that only,, is there any way to to link libz.a to liker of arm5-gcc compiler ? It would be appriciated if anybody give solution. Peter Stuge <stuge-openssh-unix-dev at cdy.org> wrote: On Thu, Apr 19, 2007 at 03:48:55AM -0700, hfgj ghgj wrote:> checking for deflate in -lz... no > configure: error: *** zlib missing - please install first or check config.log ***[..]> if anybody will me then it would be realy appriciated,, i used to > give path of zlib also,, but i dont know what is going wrong,, > > can anybody tell me how to set -lz with libz.aYou did this the correct way, but..> /usr/local/openrg/armv5b-jungo-linux-gnu/lib/gcc-lib/armv5b-jungo-linux-gnu/3.3.2/../../../../armv5b-jungo-linux-gnu/bin/ld: skipping incompatible /usr/local/lib/libz.a when searching for -lz..the libz.a you specified is not usable on this platform it seems. The easiest would probably be to re-install zlib from source on your target system. //Peter _______________________________________________ openssh-unix-dev mailing list openssh-unix-dev at mindrot.org http://lists.mindrot.org/mailman/listinfo/openssh-unix-dev --------------------------------- Ahhh...imagining that irresistible "new car" smell? Check outnew cars at Yahoo! Autos.