Opened 15 years ago

Closed 14 years ago

#21694 closed defect (fixed)

Pidgin-encryption 3.0 compilation error - build failure

Reported by: robertr3d@… Owned by: rsync@…
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: Cc: urs.rau@…, whcordis@…
Port: pidgin-encryption

Description

If I try to install Pidgin-encryption using

sudo port install pidgin-encryption,

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.

Change History (5)

comment:1 Changed 15 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to rsync@…
Port: pidgin-encryption added; Pidgin-encryption removed

comment:2 Changed 14 years ago by urs.rau@…

Cc: urs.rau@… added

Cc Me!

comment:3 in reply to:  description Changed 14 years ago by urs.rau@…

Replying to robertr3d@…:

If I try to install Pidgin-encryption using

sudo port install pidgin-encryption,

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

comment:4 Changed 14 years ago by whcordis@…

Cc: whcordis@… added

Cc Me!

comment:5 Changed 14 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.