On Mon, 02 Nov 2009, Jean Bréfort wrote:
> Le lundi 02 novembre 2009 à 17:48 +0800, bill lam a écrit :
> > On Mon, 02 Nov 2009, bill lam wrote:
> > > > - Please check in gnumeric-config.h that you do have the following line:
> > > > #define HAVE_GTK_RECENT_MANAGER_GET_DEFAULT 1
> > > > 
> > > 
> > > It is commented.  I re-run ./configure and noticed a line
> > > 
> > > checking for gtk_recent_manager_get_default... no
> > > 
> > > I use gtk 2.12.12 from lenny that has this function inside its include
> > > header file but ./configure tested it "no".
> > 
> > I manual add that #define after ./configure , and then rebuilt.  Now
> > the recent files appeared just above "full history" ;-)
> > 
> > Still I don't know why ./configure failed to detect.
> 
> May be config.log says why the test failed.

I attached the portion for the failure for your reference.

> 
> >   I also noticed
> > that the recent file list is updated immediately instead of after
> > closing the current documents.  This is an unexpected feature.
> 
> Why unexpected?

I expect "recent" to be files that edited in the past, and does not
include the file that currently open.

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
configure:18738: checking for gtk_recent_manager_get_default
configure:18794: gcc -o conftest -g -O2 -DG_DISABLE_DEPRECATED 
-DPANGO_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED 
-DGDK_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_DISABLE_DEPRECATED 
-DLIBGLADE_DISABLE_DEPRECATED -Wall -Wmissing-prototypes  -Wsign-compare 
-Wpointer-arith -Wnested-externs -Wchar-subscripts -Wwrite-strings 
-Wdeclaration-after-statement -Wnested-externs -Wmissing-noreturn 
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations 
-Wno-pointer-sign -Werror=format-security -D_REENTRANT -pthread 
-I/usr/include/libgoffice-0.8 -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include -I/usr/include/libgsf-1 -I/usr/include/libxml2 
-I/usr/include/gtk-2.0 -I/usr/include/libglade-2.0 -I/usr/include/cairo 
-I/usr/include/pango-1.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 
-I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 
-I/usr/include/pixman-1     conftest.c -Wl,--export-dynamic -pthread 
-lgoffice-0.8 -lgsf-1 -lgthread-2.0 -lrt -lglade-2.0 -lxml2 -lgtk-x11-2.0 
-lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 
-lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0    >&5
conftest.c:65: warning: function declaration isn't a prototype
conftest.c:75: warning: function declaration isn't a prototype
/usr/bin/../lib/libgio-2.0.so.0: undefined reference to `g_poll'
/usr/bin/../lib/libgio-2.0.so.0: undefined reference to `g_set_error_literal'
collect2: ld returned 1 exit status
configure:18801: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "gnumeric"
| #define PACKAGE_TARNAME "gnumeric"
| #define PACKAGE_VERSION "1.9.9"
| #define PACKAGE_STRING "gnumeric 1.9.9"
| #define PACKAGE_BUGREPORT 
"http://bugzilla.gnome.org/enter_bug.cgi?product=gnumeric";
| #define PACKAGE "gnumeric"
| #define VERSION "1.9.9"
| #define YYTEXT_POINTER 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define STDC_HEADERS 1
| #define GNM_WITH_GTK 1
| #define HAVE_GETTIMEOFDAY 1
| #define GNM_ENABLE_SOLVER 1
| #define GETTEXT_PACKAGE "gnumeric"
| #define HAVE_LOCALE_H 1
| #define HAVE_LC_MESSAGES 1
| #define HAVE_BIND_TEXTDOMAIN_CODESET 1
| #define HAVE_GETTEXT 1
| #define HAVE_DCGETTEXT 1
| #define ENABLE_NLS 1
| #define HAVE_IEEE754_H 1
| #define HAVE_MEMMOVE 1
| #define HAVE_MKDTEMP 1
| #define HAVE_UNAME 1
| #define HAVE_TIMES 1
| #define HAVE_SYSCONF 1
| #define HAVE_LANGINFO_H 1
| #define HAVE_SYS_RESOURCE_H 1
| /* end confdefs.h.  */
| /* Define gtk_recent_manager_get_default to an innocuous variant, in case 
<limits.h> declares gtk_recent_manager_get_default.
|    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
| #define gtk_recent_manager_get_default 
innocuous_gtk_recent_manager_get_default
|
| /* System header to define __stub macros and hopefully few prototypes,
|     which can conflict with char gtk_recent_manager_get_default (); below.
|     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|     <limits.h> exists even on freestanding compilers.  */
|
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|
| #undef gtk_recent_manager_get_default
|
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char gtk_recent_manager_get_default ();
| /* The GNU C library defines this for functions which it implements
|     to always fail with ENOSYS.  Some functions are actually named
|     something starting with __ and the normal name is an alias.  */
| #if defined __stub_gtk_recent_manager_get_default || defined 
__stub___gtk_recent_manager_get_default
| choke me
| #endif
|
| int
| main ()
| {
| return gtk_recent_manager_get_default ();
|   ;
|   return 0;
| }
configure:18823: result: no
_______________________________________________
gnumeric-list mailing list
gnumeric-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gnumeric-list

Reply via email to