Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 1.6 will not compile on Solaris 10 8/11 (update 10) #4036

Closed
michaelrsweet opened this issue Mar 6, 2012 · 3 comments
Closed

Version 1.6 will not compile on Solaris 10 8/11 (update 10) #4036

michaelrsweet opened this issue Mar 6, 2012 · 3 comments

Comments

@michaelrsweet
Copy link
Collaborator

michaelrsweet commented Mar 6, 2012

Version: 1.5-current
CUPS.org User: rtdavis

I am compiling 1.6svn-r10310 on a Solaris 10u10 box that uses OpenSSL 9.7d with the most recent patch and Java updates released by Oracle in January and February. I successfully execute 'configure --enable-ssl --disable-gssapi --disable-ldap'. I then execute gmake and make and receive the following errors:

Executing gmake I get:

http.c: In function http_setup_ssl': http.c:3971: warning: implicit declaration of functionSSL_set_tlsext_host_name'

followed by:

Linking libcups.so.2...
Making all in test...
Compiling ippserver.c...
Linking ippserver...
Undefined first referenced
symbol in file
SSL_set_tlsext_host_name ../cups/libcups.a(http.o)
ld: fatal: symbol referencing errors. No output written to ippserver
collect2: ld returned 1 exit status
gmake[1]: *** [ippserver] Error 1
gmake: *** [all] Error 1

Executing make I get:

http.c: In function http_setup_ssl': http.c:3971: warning: implicit declaration of functionSSL_set_tlsext_host_name'

followed by:

Linking ippserver...
Undefined first referenced
symbol in file
SSL_set_tlsext_host_name ../cups/libcups.a(http.o)
ld: fatal: symbol referencing errors. No output written to ippserver
collect2: ld returned 1 exit status
*** Error code 1
The following command caused the error:
gcc -L../cgi-bin -L../cups -L../filter -L../ppdc -L../scheduler -fPIE -pie -Wall -Wno-format-y2k -Wunused -fPIC -Os -g -o ippserver ippserver.o ../cups/libcups.a
-lssl -lcrypto -lpthread -lresolv -lnsl -lsocket -lm -lz -lz
make: Fatal error: Command failed for target ippserver' Current working directory /h/dev/GCUPS/source/cups-1.6svn-r10310/test *** Error code 1 The following command caused the error: for dir in cups test filter backend berkeley cgi-bin monitor notifier ppdc scheduler systemv conf data desktop locale man doc examples templates; do\ echo Making all in $dir... ;\ (cd $dir ; make all ) || exit 1;\ done make: Fatal error: Command failed for targetall'

@michaelrsweet
Copy link
Collaborator Author

michaelrsweet commented Mar 21, 2012

CUPS.org User: mike

Fixed in Subversion repository.

@michaelrsweet
Copy link
Collaborator Author

michaelrsweet commented Apr 21, 2012

CUPS.org User: sbd

What does the 'str4036.patch' do, it adds an autoconf test and macro in
config.h.in, but nothing else (i.e. the macro isn't used anywhere).

Shouldn't the call to 'SSL_set_tlsext_host_name' be wrapped with an '#ifdef' etc.

@michaelrsweet
Copy link
Collaborator Author

michaelrsweet commented Apr 21, 2012

"str4036.patch":

Index: config-scripts/cups-ssl.m4

--- config-scripts/cups-ssl.m4 (revision 10362)
+++ config-scripts/cups-ssl.m4 (working copy)
@@ -3,7 +3,7 @@
dnl
dnl OpenSSL/GNUTLS stuff for CUPS.
dnl
-dnl Copyright 2007-2011 by Apple Inc.
+dnl Copyright 2007-2012 by Apple Inc.
dnl Copyright 1997-2007 by Easy Software Products, all rights reserved.
dnl
dnl These coded instructions, statements, and computer programs are the
@@ -136,9 +136,9 @@
dnl case the RSAREF libraries are needed.

    for libcrypto in \
  •       "-lcrypto" \
    
  •       "-lcrypto -lrsaref" \
    
  •       "-lcrypto -lRSAglue -lrsaref"
    
  •   "-lcrypto" \
    
  •   "-lcrypto -lrsaref" \
    
  •   "-lcrypto -lRSAglue -lrsaref"
    do
    AC_CHECK_LIB(ssl,SSL_new,
        [have_ssl=1
    

    @@ -149,6 +149,9 @@
    $libcrypto)

    if test "x${SSLLIBS}" != "x"; then
    
  •       LIBS="$SAVELIBS $SSLLIBS"
    
  •       AC_CHECK_FUNC(SSL_set_tlsext_host_name,
    
  •       AC_DEFINE(HAVE_SSL_SET_TLSEXT_HOST_NAME))
        break
    fi
    done
    

    @@ -173,7 +176,6 @@
    EXPORT_SSLLIBS="$SSLLIBS"
    AC_SUBST(EXPORT_SSLLIBS)

dnl
dnl End of "$Id$".
dnl

Index: config.h.in

--- config.h.in (revision 10362)
+++ config.h.in (working copy)
@@ -296,6 +296,13 @@

/*

  • * Do we have the SSL_set_tlsext_host_name function?
  • /
    +
    +#undef HAVE_SSL_SET_TLSEXT_HOST_NAME
    +
    +
    +/
    • What Security framework headers do we have?
      */

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant