1

I am trying to cross compile CUPS for Ezsdk sitara linux 6.0,
I followed

source /home/shihab/ti-sdk-beagleboard-06.00.00.00/linux-devkit/environment-setup

./configure --host=i686 

make

But on make command it shows error. error part of the log :

Making all in cups...
Compiling adminutil.c...
In file included from cups-private.h:29:0,
                 from adminutil.c:33:
http-private.h:299:3: error: unknown type name ‘gss_OID’
http-private.h:300:3: error: unknown type name ‘gss_ctx_id_t’
http-private.h:301:3: error: unknown type name ‘gss_name_t’
cc1: warning: unrecognized command line option "-Wno-tautological-compare" [enabled by default]
make[1]: *** [adminutil.o] Error 1
make: *** [all] Error 1
[linux-devkit]:~/cups-1.7.0> 

What need to do for proceeding cross compilation?

1 Answer 1

1

Your invocation of the configure script is wrong. For cross-compilation, --host should be the prefix of your cross compiler. For instance:

 ./configure --host=arm-linux-gnueabi

Moreover, you probably need to pass some options to CUPS' configure script in order to disable some components. For instance, --disable-gssapi will disable support for Kerberos and probably fix your "gss" errors.

6
  • Thanks for your replay, --disable-gssapi fixed this error, but now it shows Generating localization strings... ./genstrings: 1: ./genstrings: Syntax error: word unexpected (expecting ")") make[1]: *** [genstrings] Error 2 make: *** [all] Error 1 --host will work same when we use source /home/shihab/ti-sdk-beagleboard-06.00.00.00/linux-devkit/environment-setup command. Ezsdk 6.0 uses arm-linux-gnueabihf toolchain
    – Shihab
    Oct 25, 2013 at 9:10
  • I tried with ./configure --host=arm-linux-gnueabihf --disable-gssapi It also shows Generating localization strings... ./genstrings: 1: ./genstrings: Syntax error: word unexpected (expecting ")") make[1]: *** [genstrings] Error 2 make: *** [all] Error 1
    – Shihab
    Oct 25, 2013 at 9:13
  • 1
    You should patch a Makefile so that mantohtml is built for the host. See git.buildroot.net/buildroot/tree/package/cups/… Oct 25, 2013 at 9:31
  • Thanks, now compilation shows succesful. I followed ./configure --host=arm-linux-gnueabihf --disable-gssapi --prefix=/media/rootfs make make install All cups related files are automatically saved in sd card , but it shows error on typing cupsd command cupsd: Child exited on signal 1. On checking /etc/cups/cupsd.conf, several paths in the configuration files are /media/rootfs/var/run/cups/cups.sock instead of /var/run/cups/cups.sock Any help regarding the problem? stackoverflow.com/questions/19829545/…
    – Shihab
    Nov 12, 2013 at 9:30
  • That's because you set the prefix to /media/rootfs. It is better to set the prefix to /usr and use DESTDIR to set the install path during make install. Nov 12, 2013 at 16:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.