Hi all,<br><br>I am working on embedded linux for SH platform (kernel 2.6.14).<br>I want to add printer support in it. I am trying to install CUPS but <br>facing some problems. I have some questions regarding CUPS<br>compilation.
<br><br>[CUPS-1.2.10]<br>1 >  I am using GCC lib-2.3.3 for sh-linux platform.<br>       And iniramfs with the bare minimum file system<br>       without library support.<br>       Below is the configuration setting I used for configuring cups.
<br><br># ./configure CC=sh3-linux LDFLAGS=--static --host=sh3-linux  --enable-static<br>   --disable-shared --prefix=/home/manish/cups_sh  --exec-prefix=/home/manish/cups_sh<br><br>  I seen no problem during configuration. CUPS perfectly detected my cross compiler tool chain.
<br><br>then,<br><br># make<br><br>but during compilation I got error related to crc32 and inflat. So I edited the config.h file in top level<br>directory. I commented the option <span style="background-color: rgb(255, 255, 255); color: rgb(255, 255, 255);">
#<span style="background-color: rgb(102, 102, 204);">define HAVE_LIBZ 1</span></span><span style="background-color: rgb(255, 255, 255);"> </span>and recompile.<br>Compilation was OK and i checked the header for lp and lpstat using readelf -h and 
<br>readelf -d. I seen no dynamic linkages, and also the size for each binary is increase(It is in MB).<br><br>I copied all the binaries on my USB stick and copied exec-prefix directory on platform. Edited <br>etc/init.d/cups file, and changed the path which was there when I did configuration to /mnt/usbfiles/
<br><br>Then I tried to run scheduler but it exited with error saying,<br><br>#/etc/init.d/cup start<br> Child exited with status 1!      <br> <br> This means my scheduler is not up.<br><br>Q: <br>   a )  Can it possible to compile cups statically( without shared library support by using LDFLAGS=--static) ??
<br>          If yes then why my shceduler is not running :( ?<br><br>    b ) If we can't run cups with static library then would it be possible to compile it with uclibc ?<br>         Can you please guide me through this ?
<br><br>Waiting for reply.<br>Thanks in advance!!!<br><br>Manish Rangankar<br><br><br><br><br><br><br>