[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-arm
Subject:    RE: Static zlib library
From:       "Project Trainees\(Embedded/Harita\)" <projecttrainees () harita ! com>
Date:       2005-11-30 13:28:14
Message-ID: 5507EEAB031AFF45A1AC6F3746D83AF50CF9DD () blrex01 ! tvse ! int
[Download RAW message or body]


Vinod,

Thanks am able to get shared zlib but it is open to security \
vulnerabilities.zlib1.2.3 overcomes security vulnerabilities right?? this is the \
output i have now..:(

Checking for shared library support...
Building shared library libz.so.1.2.3 with arm-linux-gcc.
Checking for unistd.h... No.
Checking whether to use vs[n]printf() or s[n]printf()... using s[n]printf()
Checking for snprintf() in stdio.h... No.
  WARNING: snprintf() not found, falling back to sprintf(). zlib
  can build but will be open to possible buffer-overflow security
  vulnerabilities.
Checking for return value of sprintf()... No.
  WARNING: apparently sprintf() does not return a value. zlib
  can build but will be open to possible string-format security
  vulnerabilities.
Checking for errno.h... No.
Checking for mmap support... No.



-----Original Message-----
From: Vinod Joseph [mailto:vinod.joe@gmail.com]
Sent: Wed 11/30/2005 6:09 PM
To: Project Trainees(Embedded/Harita)
Cc: linux-arm@lists.arm.linux.org.uk
Subject: Re: Static zlib library
 
Checking for gcc... arm-linux-gcc ( should be found ).
USE CC=your arm-linux-gcc location

I never had an issue with zlib for arm - either shared or static.

Try --disable-static also if you need...






On 11/30/05, Project Trainees(Embedded/Harita) <projecttrainees@harita.com>
wrote:
> 
> 
> 
> 
> -----Original Message-----
> From: Vinod Joseph [mailto:vinod.joe@gmail.com <vinod.joe@gmail.com>]
> Sent: Wed 11/30/2005 1:47 PM
> To: Project Trainees(Embedded/Harita)
> Cc:
> Subject: Re: Static zlib library
> 
> Dear Swapna
> 
> # CC=arm-linux-gcc \
> LDSHARED="arm-linux-gcc -shared -Wl,-soname,libz.so.1" \
> ./configure --shared --prefix=your_prefix
> 
> Also give other parameters as required....
> 
> Vinod
> 
> On 11/29/05, Project Trainees(Embedded/Harita) <projecttrainees@harita.com
> > 
> wrote:
> > 
> > 
> > Hi all,
> > 
> > I am using binutils version 2.11.2 for ARM based AccelentIDP board.I am
> > using zlib-1.2.3 as MTD utilities for the target. While cross-compiling
> > this is the command i had given as illustrated in a book;
> > 
> > # CROSS_COMPILE=arm-linux-gcc LDSHARED="arm-linux-ld -shared"
> ./configure
> > --shared
> > 
> > It is given in the book that by default, the zlib build process
> generates
> > a static library.To build zlib as a shared libabry, the LDSHARED
> variable
> > must be set and provided with '--shared' option when invoking
> 'configure'.
> > This is the ouput:
> > 
> > Checking for gcc...
> > Checking for shared library support...
> > No shared library support.
> > Building static library libz.a version 1.2.3 with gcc.
> > Checking for unistd.h... Yes.
> > Checking whether to use vs[n]printf() or s[n]printf()... using
> > vs[n]printf()
> > Checking for vsnprintf() in stdio.h... Yes.
> > Checking for return value of vsnprintf()... Yes.
> > Checking for errno.h... Yes.
> > Checking for mmap support... Yes.
> > 
> > 
> > It means that zlib has been build as a static library instead
> shared.Ichecked my binutils .It has 'arm-linux-ld' and nothing related to
> > 'arm-linux-ld -shared'. Will i be facing any problem because of zlib not
> > being shared? or is it ok .
> > 
> > Thanks in advance
> > Swapna
> > -------------------------------------------------------------------
> > List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
> > FAQ:        http://www.arm.linux.org.uk/mailinglists/faq.php
> > Etiquette:  http://www.arm.linux.org.uk/mailinglists/etiquette.php
> > 
> 
> 
> 
> --
> Vinod Cherian Joseph
> SISO
> 
> Hi Vinod,
> 
> I tried that with the options suggested by you..
> 
> #CROSS_COMPILE=arm-linux-gcc LDSHARED="arm-linux-gcc -shared -Wl,-soname,
> libz.so.6" ./configure --shared
> 
> it still says
> 
> Checking for gcc...
> Checking for shared library support...
> No shared library support.
> Building static library libz.a version 1.2.3 with gcc.
> Checking for unistd.h... Yes.
> Checking whether to use vs[n]printf() or s[n]printf()... using
> vs[n]printf()
> Checking for vsnprintf() in stdio.h... Yes.
> Checking for return value of vsnprintf()... Yes.
> Checking for errno.h... Yes.
> Checking for mmap support... Yes.
> 
> I think i should tell u my toolchain specifications first:
> 
> X-Scale-GCC-3.3.3 prebuilt toolchain with the following tools:
> bintils-2.11.2
> glibc-2.2.3
> glibc-linuxthreads-2.2.3
> kernel-2.6.4
> Its a prebuilt toolchain.
> My target is ARM.
> 
> Am not able to build MTD utilities.Please help me out.
> 
> 


--
Vinod Cherian Joseph
SISO

-------------------------------------------------------------------
List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
FAQ:        http://www.arm.linux.org.uk/mailinglists/faq.php
Etiquette:  http://www.arm.linux.org.uk/mailinglists/etiquette.php


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic