[MacPorts] #21694: Pidgin-encryption 3.0 compilation error - build failure

MacPorts noreply at macports.org
Thu Jun 10 14:33:10 PDT 2010


#21694: Pidgin-encryption 3.0 compilation error - build failure
--------------------------------------+-------------------------------------
 Reporter:  robertr3d@…               |       Owner:  rsync@…                
     Type:  defect                    |      Status:  new                    
 Priority:  Normal                    |   Milestone:                         
Component:  ports                     |     Version:  1.8.1                  
 Keywords:                            |        Port:  pidgin-encryption      
--------------------------------------+-------------------------------------

Comment(by urs.rau@…):

 Replying to [ticket:21694 robertr3d@…]:
 > If I try to install Pidgin-encryption using[[BR]]
 >
 > sudo port install pidgin-encryption,[[BR]]
 >
 > the following error occurs (Mac OS X Snow Leopard 10.6):
 >
 > {{{
 > /bin/sh ./libtool --mode=compile /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I.
 -I. -I.  -DLOCALEDIR=\"/opt/local/share/locale\"
 -DLIBDIR=\"/opt/local/lib/pidgin/\"
 -DDATADIR=\"/opt/local/share\"
 -I/opt/local/include/pidgin -I/opt/local/include/gtk-2.0
 -I/opt/local/include/libpurple -I/opt/local/lib/gtk-2.0/include
 -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo
 -I/opt/local/include/pango-1.0 -I/opt/local/include
 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
 -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2
 -I/opt/local/include/libpng12
 -I/opt/local/include/libpurple -I/opt/local/include/glib-2.0
 -I/opt/local/lib/glib-2.0/include -I/opt/local/include
 -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include
 -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo
 -I/opt/local/include/pango-1.0 -I/opt/local/include
 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
 -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2
 -I/opt/local/include/libpng12   -I/opt/local/include
 -I/System/Library/Frameworks/CoreFoundation.framework/Headers -Wall -fno-
 strict-aliasing -O2 -arch x86_64 -c config_ui.c
 >  /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I. -I.
 -DLOCALEDIR=\"/opt/local/share/locale\"
 -DLIBDIR=\"/opt/local/lib/pidgin/\" -DDATADIR=\"/opt/local/share\"
 -I/opt/local/include/pidgin -I/opt/local/include/gtk-2.0
 -I/opt/local/include/libpurple -I/opt/local/lib/gtk-2.0/include
 -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo
 -I/opt/local/include/pango-1.0 -I/opt/local/include
 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
 -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2
 -I/opt/local/include/libpng12 -I/opt/local/include/libpurple
 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
 -I/opt/local/include -I/opt/local/include/gtk-2.0
 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0
 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0
 -I/opt/local/include -I/opt/local/include/glib-2.0
 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/pixman-1
 -I/opt/local/include/freetype2 -I/opt/local/include/libpng12
 -I/opt/local/include
 -I/System/Library/Frameworks/CoreFoundation.framework/Headers -Wall -fno-
 strict-aliasing -O2 -arch x86_64 -c config_ui.c  -fno-common -DPIC -o
 .libs/config_ui.o
 > In file included from cryptproto.h:23,
 >                  from config_ui.c:32:
 > rsa_nss.h:32:17: error: nss.h: No such file or directory
 > rsa_nss.h:33:19: error: keyhi.h: No such file or directory
 > In file included from cryptproto.h:23,
 >                  from config_ui.c:32:
 > rsa_nss.h:36: error: expected specifier-qualifier-list before
 'SECKEYPrivateKey'
 > config_ui.c: In function 'PE_populate_key_list_view':
 > config_ui.c:420: warning: too few arguments for format
 > make[2]: *** [config_ui.lo] Error 1
 > make[1]: *** [all-recursive] Error 1
 > make: *** [all-recursive-am] Error 2
 >
 > Error: Status 1 encountered during processing.
 > }}}


 I get same error on snow leopard 10.6.3 with a brand new macports 1.9 .

 I can fix the compile and complete and install the port manually,
 but am not familiar enough with configure and AC to automate this.

 somehow the configure.ac file fails to set two of the correct
 HAVE_INCLUDE-FILE_H  stanzas in pre-config.h

 I suspect something near these lines is going wrong

 AC_CHECK_HEADERS(nss.h ssl.h smime.h keyhi.h,
                                 [moz_nss_includes="yes"],
                                 [moz_nss_includes="no"])


 in the pre-config.h file two lines that configure.ac failed to set need to
 be added

 pre-config.h:

 #define HAVE_NSS_H 1

 #define HAVE_KEYHI_H 1


 and finally in the Makefile NSS_CFLAGS needs to point to the header files,
 which it would if configure had done it's task

 Makefile:

 NSS_CFLAGS =   -I/opt/local/include/nspr -I/opt/local/include/nss

-- 
Ticket URL: <http://trac.macports.org/ticket/21694#comment:3>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list