Problems Compiling on SUSE 8.2

Help
2004-01-21
2004-01-27
  • Victor Gregorio

    Victor Gregorio - 2004-01-21

    Hello.  I am having some problems compiling Gaim .75 with SSL.  Here is what I am attempting....

    ~/source/gaim-0.75$ export PKG_CONFIG_PATH=/usr/local/pkg/gtkspell-2.0.4/lib/pkgconfig/:/usr/local/pkg/mozilla-cvs/lib/pkgconfig/
    ~/source/gaim-0.75$ LIBS=-pthread INCLUDES="-I/usr/include/openssl" ./configure --prefix=/usr/local/pkg/gaim-0.75

    [snip]
    checking for ld used by GCC... /usr/i486-suse-linux/bin/ld
    checking if the linker (/usr/i486-suse-linux/bin/ld) is GNU ld... yes
    checking for shared library run path origin... ./config.rpath: ./config.rpath: No such file or directory
    done
    [snip]
    checking for GNUTLS libraries... no
    checking for mozilla-nss... yes
    checking NSS_CFLAGS... -I/usr/local/pkg/mozilla-cvs//include/mozilla-1.7a/nss -I/usr/local/pkg/mozilla-cvs//include/mozilla-1.7a/ns
    pr
    checking NSS_LIBS... -L/usr/local/pkg/mozilla-cvs//lib/mozilla-1.7a -lnss3 -lsmime3 -lssl3 -lsoftokn3 -lplds4 -lplc4 -lnspr4 -lpthr
    ead -ldl
    checking for tclConfig.sh... no
    checking for gtkspell-2.0 >= 2.0.2... yes
    checking GTKSPELL_CFLAGS... -I/usr/local/pkg/gtkspell-2.0.4/include/gtkspell-2.0 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
    -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/gl
    ib-2.0/include
    checking GTKSPELL_LIBS... -Wl,--export-dynamic -L/usr/local/pkg/gtkspell-2.0.4/lib -lgtkspell -laspell -lgtk-x11-2.0 -lgdk-x11-2.0
    -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
    [snip]
    config.status: creating po/Makefile

    gaim 0.75

    Build Protocol Plugins........ : yes
    Protocols to link statically.. :
    Protocols to build dynamically : gg irc jabber msn napster oscar toc yahoo zephyr

    UI Library.................... : GTK 2.x
    SSL Library/Libraries......... : Mozilla NSS

    Build with Plugin support..... : yes
    Build with Perl support....... : yes
    Build with Tcl support........ : no
    Build with Tk support......... : no
    Build with Audio support...... : yes
    Build with NAS support........ : no
    Build with GtkSpell support... : yes

    Use XScreenSaver Extension.... : yes
    Use X Session Management...... : yes
    Use startup notification.......: yes

    Print debugging messages...... : no
    [snip]

    ~/source/gaim-0.75$ make
    [snip]
    Making all in ssl
    make[3]: Entering directory `/home/victor/source/gaim-0.75/plugins/ssl'
    source='ssl-nss.c' object='ssl-nss.lo' libtool=yes \ depfile='.deps/ssl-nss.Plo' tmpdepfile='.deps/ssl-nss.TPlo' \ depmode=gcc3 /bin/sh ../../depcomp \ /bin/sh ../../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../..  -DDATADIR=\"/usr/local/pkg/gaim-0.75/share\" -DLIBDIR=\"/usr/local/pkg/gaim-0.75/lib/gaim/\" -I../../src  -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include    -I/usr/local/pkg/mozilla-cvs//include/mozilla-1.7a/nss -I/usr/local/pkg/mozilla-cvs//include/mozilla-1.7a/nspr      -g -O2 -Wall -g3 -c -o ssl-nss.lo `test -f 'ssl-nss.c' || echo './'`ssl-nss.c
    ssl-nss.c:34:22: pk11func.h: No such file or directory
    ssl-nss.c:36:20: secerr.h: No such file or directory
    ssl-nss.c:37:20: secmod.h: No such file or directory
    ssl-nss.c:38:17: ssl.h: No such file or directory
    ssl-nss.c:39:20: sslerr.h: No such file or directory
    ssl-nss.c:40:22: sslproto.h: No such file or directory
    ssl-nss.c: In function `ssl_nss_init_nss':
    ssl-nss.c:58: warning: implicit declaration of function `NSS_NoDB_Init'
    ssl-nss.c:61: warning: implicit declaration of function `SECMOD_AddNewModule'
    ssl-nss.c:68: warning: implicit declaration of function `NSS_SetDomesticPolicy'
    ssl-nss.c: At top level:
    ssl-nss.c:75: error: parse error before "ssl_auth_cert"
    ssl-nss.c:77: warning: return type defaults to `int'
    ssl-nss.c: In function `ssl_auth_cert':
    ssl-nss.c:78: error: `SECSuccess' undeclared (first use in this function)
    ssl-nss.c:78: error: (Each undeclared identifier is reported only once
    ssl-nss.c:78: error: for each function it appears in.)
    ssl-nss.c: At top level:
    ssl-nss.c:103: error: parse error before "ssl_bad_cert"
    ssl-nss.c:104: warning: return type defaults to `int'
    ssl-nss.c: In function `ssl_bad_cert':
    ssl-nss.c:105: error: `SECStatus' undeclared (first use in this function)
    ssl-nss.c:105: error: parse error before "status"
    ssl-nss.c:109: error: `status' undeclared (first use in this function)
    ssl-nss.c:111: warning: implicit declaration of function `PORT_GetError'
    ssl-nss.c:115: error: `SEC_ERROR_INVALID_AVA' undeclared (first use in this function)
    ssl-nss.c:116: error: `SEC_ERROR_INVALID_TIME' undeclared (first use in this function)
    ssl-nss.c:117: error: `SEC_ERROR_BAD_SIGNATURE' undeclared (first use in this function)
    ssl-nss.c:118: error: `SEC_ERROR_EXPIRED_CERTIFICATE' undeclared (first use in this function)
    ssl-nss.c:119: error: `SEC_ERROR_UNKNOWN_ISSUER' undeclared (first use in this function)
    ssl-nss.c:120: error: `SEC_ERROR_UNTRUSTED_CERT' undeclared (first use in this function)
    ssl-nss.c:121: error: `SEC_ERROR_CERT_VALID' undeclared (first use in this function)
    ssl-nss.c:122: error: `SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE' undeclared (first use in this function)
    ssl-nss.c:123: error: `SEC_ERROR_CRL_EXPIRED' undeclared (first use in this function)
    ssl-nss.c:124: error: `SEC_ERROR_CRL_BAD_SIGNATURE' undeclared (first use in this function)
    ssl-nss.c:125: error: `SEC_ERROR_EXTENSION_VALUE_INVALID' undeclared (first use in this function)
    ssl-nss.c:126: error: `SEC_ERROR_CA_CERT_INVALID' undeclared (first use in this function)
    ssl-nss.c:127: error: `SEC_ERROR_CERT_USAGES_INVALID' undeclared (first use in this function)
    ssl-nss.c:128: error: `SEC_ERROR_UNKNOWN_CRITICAL_EXTENSION' undeclared (first use in this function)
    ssl-nss.c:129: error: `SECSuccess' undeclared (first use in this function)
    ssl-nss.c:133: error: `SECFailure' undeclared (first use in this function)
    ssl-nss.c: In function `ssl_nss_connect_cb':
    ssl-nss.c:183: warning: implicit declaration of function `SSL_ImportFD'
    ssl-nss.c:183: warning: assignment makes pointer from integer without a cast
    ssl-nss.c:194: warning: implicit declaration of function `SSL_OptionSet'
    ssl-nss.c:194: error: `SSL_SECURITY' undeclared (first use in this function)
    ssl-nss.c:195: error: `SSL_HANDSHAKE_AS_CLIENT' undeclared (first use in this function)
    ssl-nss.c:197: warning: implicit declaration of function `SSL_AuthCertificateHook'
    ssl-nss.c:198: error: `SSLAuthCertificate' undeclared (first use in this function)
    ssl-nss.c:198: error: parse error before "ssl_auth_cert"
    ssl-nss.c:200: warning: implicit declaration of function `SSL_BadCertHook'
    ssl-nss.c:200: error: `SSLBadCertHandler' undeclared (first use in this function)
    ssl-nss.c:200: error: parse error before "ssl_bad_cert"
    ssl-nss.c:203: warning: implicit declaration of function `SSL_SetURL'
    ssl-nss.c:205: warning: implicit declaration of function `SSL_ResetHandshake'
    ssl-nss.c:207: warning: implicit declaration of function `SSL_ForceHandshake'
    make[3]: *** [ssl-nss.lo] Error 1
    make[3]: Leaving directory `/home/victor/source/gaim-0.75/plugins/ssl'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/home/victor/source/gaim-0.75/plugins'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/victor/source/gaim-0.75'
    make: *** [all] Error 2
    ~/source/gaim-0.75$

    I seam to be missing some header files.  Even if I install the default SUSE rpms for mozilla and mozilla-devel, which provide some headerfiles listed above (i.e. pk11func.h), I still get the same "[ssl-nss.lo] Error 1".  Any advice is appreciated.  Thanks, Victor.

     
    • Victor Gregorio

      Victor Gregorio - 2004-01-27

      I was able to get this working and wanted to post how.  http://gaim.sourceforge.net/faq-ssl.php warns of breakage with Mozilla 1.5 and suggested using the SuSE 8.2 rpm for mozilla-devel as well as an upgraded Pango.  Both these suggestions helped fixed my problem. 

      The missing header files Gaim needed were provided in /opt/mozilla/include/nss and /opt/mozilla/include/nspr after installing the default SuSE 8.2 mozilla and mozilla-devel rpms.

      The only thing I could not do was use /opt/mozilla/lib for NSS.  Gaim needed the PKG_CONFIG_PATH of my installed Mozilla in /usr/local/ in order to see the NSS libs. 

      Here is what I did:

      $ export PKG_CONFIG_PATH=/usr/local/pkg/pango-1.2.5/lib/pkgconfig/:/usr/local/pkg/gtkspell-2.0.4/lib/pkgconfig/:/usr/local/pkg/mozilla-cvs/lib/pkgconfig/
      $ export CPPFLAGS="-I/opt/mozilla/include/nss -I/opt/mozilla/include/nspr"
      $ ./configure --prefix=/usr/local/pkg/gaim-0.75
      $ make
      $ sudo make install

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks