| Summary: | gnucash port configure failure not detected | ||
|---|---|---|---|
| Product: | Ports & Packages | Reporter: | Vivek Khera <khera> |
| Component: | Individual Port(s) | Assignee: | Ade Lovett <ade> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Latest | ||
| Hardware: | Any | ||
| OS: | Any | ||
Responsible Changed From-To: gnats-admin->obrien Over to maintainer I think I've found the problem: If gnomeprint is installed, gnucash-1.3.4/configure detects it and adds -lgnomeprint to $LIBS, but does _not_ add the supporting -Ls and -ls needed to link against gnomeprint. gnucash-1.3.4/lib/g-wrap/configure then uses this value of $LIBS when linking test programs, which causes the links to fail. A (perhaps not the best) fix is to add to the patches directory: --- configure.orig^IWed Jun 21 02:43:13 2000 +++ configure^IWed Jun 21 02:43:28 2000 @@ -4170,7 +4170,7 @@ #define $ac_tr_lib 1 EOF - LIBS="-lgnomeprint $LIBS" + LIBS="-lgnomeprint $EXTRALIBS $LIBS" else echo "$ac_t""no" 1>&6 (^I represents a tab char). Hope this is useful, -spc State Changed From-To: open->closed deskutils/gnucash was updated to 1.4.4 this morning, please re-cvsup your ports tree and try again. Responsible Changed From-To: obrien->ade I became the victim^Wmaintainer |
The "configure" step in building the GNUCASH port fails, yet the build continues. That is, failure of configure is not detected. Also, the configure doesn't believe that the compiler works: [root@onceler]# make configure ===> Configuring for gnucash-1.3.4 creating cache ./config.cache checking for a BSD compatible install... /usr/bin/install -c -o root -g wheel checking whether build environment is sane... yes checking whether gmake sets ${MAKE}... yes checking for working aclocal... found checking for working autoconf... found checking for working automake... found checking for working autoheader... found checking for working makeinfo... found checking for a BSD compatible install... /usr/bin/install -c -o root -g wheel checking for ranlib... ranlib checking for gcc... cc checking whether the C compiler (cc -O -m486 -pipe ) works... yes checking whether the C compiler (cc -O -m486 -pipe ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether cc accepts -g... yes checking for POSIXized ISC... no checking whether byte ordering is bigendian... no checking whether gmake sets ${MAKE}... (cached) yes checking for stpcpy... no checking how to run the C preprocessor... cc -E checking for locale.h... yes checking for LC_MESSAGES... yes checking whether NLS is requested... yes checking whether included gettext is requested... no checking for libintl.h... yes checking for gettext in libc... no checking for bindtextdomain in -lintl... yes checking for gettext in libintl... checking for gettext in -lintl... yes yes checking for msgfmt... /usr/local/bin/msgfmt checking for dcgettext... no checking for gmsgfmt... /usr/local/bin/msgfmt checking for msgmerge... /usr/local/bin/msgmerge checking for xgettext... /usr/local/bin/xgettext checking for catalogs to be installed... fr de en_GB sv checking for perl... /usr/local/bin/perl checking for eperl... /usr/local/bin/eperl checking for swig... /usr/local/bin/swig checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include checking for dnet_ntoa in -ldnet... no checking for dnet_ntoa in -ldnet_stub... no checking for gethostbyname... yes checking for connect... yes checking for remove... yes checking for shmat... yes checking for IceConnectionNumber in -lICE... yes checking for deflateEnd in -lz... yes checking for jpeg_read_scanlines in -ljpeg... yes checking for png_read_image in -lpng... yes checking for XpmReadFileToXpmImage in -lXpm... yes checking for XmHTMLTextScrollToLine in -lXmHTML... no checking gtk-xmhtml/gtk-xmhtml.h... yes checking for readline in -lreadline... yes checking for gtk_xmhtml_new in -lgtkxmhtml... yes checking for gnome_print_context_new in -lgnomeprint... yes checking for guile-config... /usr/local/bin/guile-config checking for guile... /usr/local/bin/guile updating cache ./config.cache creating ./config.status creating Makefile creating Makefile.init creating src/Makefile creating src/engine/Makefile creating src/guile/Makefile creating src/guile/i18n.h creating src/scm/Makefile creating src/g-wrap/Makefile creating src/gnome/Makefile creating src/motif/Makefile creating src/qt/Makefile creating src/register/Makefile creating src/register/gnome/Makefile creating src/reports/Makefile creating src/reports/pathconfig.h creating src/swig/Makefile creating src/swig/perl5/Makefile creating po/Makefile.in creating po/extract-macros.perl creating include/messages_i18n.h creating lib/Makefile creating lib/Xbae-4.6.2-linas/Makefile creating lib/Xbae-4.6.2-linas/src/Makefile creating lib/ComboBox-1.33/Makefile creating config.h config.h is unchanged perl -p \ -e "s|\@GNC_RUNTIME_SHAREDIR\@|/usr/local/share/gnucash|o;" \ -e "s|\@GNC_RUNTIME_CONFIGDIR\@|/usr/local/share/gnucash|o" \ < src/scm/bootstrap.scm.in > src/scm/bootstrap.scm perl -p \ -e "s|\@GNC_RUNTIME_SHAREDIR\@|/usr/local/share/gnucash|o;" \ -e "s|\@GNC_RUNTIME_CONFIGDIR\@|/usr/local/share/gnucash|o" \ < src/guile/gnucash.h.in > src/guile/gnucash.h cd lib/g-wrap && \ ./configure --prefix=/u/onceler1/usr/ports/deskutils/gnucash/work/gnucash-1.3.4/lib/g-wrap-install loading cache ./config.cache checking for a BSD compatible install... /usr/bin/install -c -o root -g wheel checking whether build environment is sane... yes checking whether gmake sets ${MAKE}... yes checking for working aclocal... found checking for working autoconf... found checking for working automake... found checking for working autoheader... found checking for working makeinfo... found checking for gcc... cc checking whether the C compiler (cc -O -m486 -pipe ) works... no configure: error: installation or configuration problem: C compiler cannot create executables. gmake: *** [all] Error 1 /usr/bin/perl -pi.orig -e 's:/usr/lib/gnucash:/usr/local/lib/gnucash:g' /u/onceler1/usr/ports/deskutils/gnucash/work/gnucash-1.3.4/src/quotes/gnc-prices [root@onceler]# Fix: Don't know. How-To-Repeat: cd /usr/ports/deskutils/gnucash make configure the post-configure step is run. if you just type "make" it tries to do the compile yet fails because configure did not complete.