After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 142032 - Error on "./configure --with-python"
Error on "./configure --with-python"
Status: RESOLVED FIXED
Product: dia
Classification: Other
Component: general
0.93
Other Linux
: Normal normal
: ---
Assigned To: Dia maintainers
Dia maintainers
: 141575 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-05-06 20:00 UTC by Roland Stigge
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
output of autogen.sh from 2004-05-21 CVS snapshot (1.20 KB, text/plain)
2004-05-22 01:30 UTC, Andrew Ross
Details

Description Roland Stigge 2004-05-06 20:00:17 UTC
With everything in place, I get:

========================================================================
ernie@atari:~/temp/dia-0.93$ ./configure --with-python
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether to enable maintainer-specific portions of Makefiles...
no
checking build system type... i686-pc-linux
checking host system type... i686-pc-linux
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared
libraries... yes
checking whether -lc should be explicitly linked in... no
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared
libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared
libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for g77 option to produce PIC... -fPIC
checking if g77 PIC flag -fPIC works... yes
checking if g77 supports -c -o file.o... yes
checking whether the g77 linker (/usr/bin/ld) supports shared
libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking whether build environment is sane... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for strerror in -lcposix... no
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for ANSI C header files... (cached) yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for unistd.h... (cached) yes
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking for an ANSI C-conforming const... yes
checking for select... yes
checking for strcspn... yes
checking for strdup... yes
checking for strtol... yes
checking for snprintf... yes
checking for intltool >= 0.21... 0.27.2 found
checking for perl... /usr/bin/perl
checking for pkg-config... /usr/bin/pkg-config
checking for GLIB - version >= 2.0.0... yes (version 2.2.3)
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for GTK+ - version >= 2.0.0... yes (version 2.2.4)
checking for pango >= 1.1.5... yes
checking PANGOVERSION_CFLAGS... -I/usr/include/pango-1.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  
checking PANGOVERSION_LIBS... -Wl,--export-dynamic -lpango-1.0
-lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0  
checking for pangoft2... yes
checking PANGOFT2_CFLAGS... -I/usr/include/pango-1.0
-I/usr/include/freetype2 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include  
checking PANGOFT2_LIBS... -Wl,--export-dynamic -lpangoft2-1.0
-lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0  
checking for FT_Init_FreeType in -lfreetype... yes
checking if FreeType version is 2.0.9 or higher... yes
checking for libart-2.0... yes
checking LIBART_CFLAGS... -I/usr/include/libart-2.0  
checking LIBART_LIBS... -lart_lgpl_2  
checking whether GNOME specific code should be used... no
checking for gtk+-2.0 libxml-2.0 gdk-pixbuf-2.0 pangoft2 libart-2.0...
yes
checking GTK_CFLAGS... -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/include/freetype2
-I/usr/X11R6/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/libxml2 -I/usr/include/libart-2.0  
checking GTK_LIBS... -Wl,--export-dynamic -lgtk-x11-2.0 -lgdk-x11-2.0
-latk-1.0 -lpangoxft-1.0 -lpangox-1.0 -lxml2 -lpthread -lz
-lgdk_pixbuf-2.0 -lm -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0
-lgmodule-2.0 -ldl -lglib-2.0 -lart_lgpl_2  
checking for libxslt... yes
checking XSLT_CFLAGS... -I/usr/include/libxml2  
checking XSLT_LIBS... -lxslt -lxml2 -lpthread -lz -lm  
checking for poptSetOtherOptionHelp in -lpopt... yes
checking popt.h usability... yes
checking popt.h presence... yes
checking for popt.h... yes
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking for png_read_info in -lpng... yes
checking for png_structp in png.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for dgettext in libc... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... /usr/bin/msgfmt
checking for dcgettext... yes
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for catalogs to be installed...  am az be ca cs da de el en_CA
en_GB es fi fr ga hr hu is it ja ko mk mn ml ms nl nn no pl pt pt_BR ro
ru sk sl sq sr sr@Latn sv tr uk vi zh_CN zh_TW
checking for xml2-config... xml2-config
checking for libxml >= 2.3.9... found
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for gzread in -lz... yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking for isinf in -lm... yes
checking if C compiler accepts -Wall... yes
checking if C compiler accepts -Wunused... yes
checking if C compiler accepts -Wmissing-prototypes... yes
checking if C compiler accepts -Wmissing-declarations... yes
checking if C compiler accepts -finline-functions... yes
checking if C compiler accepts -fstrict-aliasing... yes
checking for db2html... /usr/bin/db2html
checking for python... /usr/bin/python
checking if Python version >= 1.5.2... okay
checking local Python configuration... checking for  script directory...
NONE/lib/python2.3/site-packages
checking for  extension module directory...
NONE/lib/python2.3/site-packages
looks good
checking for python module gtk... yes
checking for headers required to compile python extensions... found
checking for libpython2.3.a... not found
ernie@atari:~/temp/dia-0.93$
========================================================================

This worked with 0.92.2.

I'm using Debian unstable.

Note the 4 lines before "looks good": Each of them doesn't look good. Either
they print a "NONE" where something else should be, or something is just missing
(two spaces, respectively).
Comment 1 Roland Stigge 2004-05-07 10:35:47 UTC
It seems that this can be worked around with ./configure --exec-prefix=/usr
although this should default to PREFIX.

A similar issue is the fact that "make install" doesn't accept just "prefix=..."
but I also need to specify "exec_prefix=...".
Comment 2 Andrew Ross 2004-05-14 13:48:28 UTC
I identified a possible cause for this problem and posted to the mailing list.
The archived copy if at
http://mail.gnome.org/archives/dia-list/2004-May/msg00023.html 
Comment 3 Hans Breuer 2004-05-17 20:22:42 UTC
*** Bug 141575 has been marked as a duplicate of this bug. ***
Comment 4 Hans Breuer 2004-05-20 19:27:33 UTC
The above mention workaround breaks with --prefix=/opt;
the patch appears to do the right thing - but in the 
wrong file (configure is generated from configure.in).
So I checked in the following change - not claiming it
to be correct - but works for me (tm) :

2004-05-20  Hans Breuer  <hans@breuer.org>
 
        * acinclude.m4 : disable setting of PYTHON_PREFIX
	and PYTHON_EXEC_PREFIX from prefix and exec_prefix
	as workaround for bug #142032 (the real fix would 
	involve some auto* knowledge which I don't have
	either;)
Comment 5 Andrew Ross 2004-05-22 01:20:46 UTC
What patch is that, Hans?

Anyway, I just wanted to report that --with-python still doesn't work for me
(using the 2004-05-21 CVS snapshot). The configure output is slightly different
now (no more "NONE" entries):

checking for python... /usr/bin/python
checking if Python version >= 1.5.2... okay
checking local Python configuration... checking for  script directory...
lib/python2.3/site-packages
checking for  extension module directory... lib/python2.3/site-packages
looks good
checking for python module gtk... yes
checking for headers required to compile python extensions... found
checking for libpython2.3.a... not found
configure: error: could not find files required to build python plugin

Do I need to do anythign special when building from a snapshot?
Comment 6 Andrew Ross 2004-05-22 01:30:03 UTC
Created attachment 27923 [details]
output of autogen.sh from 2004-05-21 CVS snapshot
Comment 7 Hans Breuer 2004-05-23 21:33:26 UTC
Just commited another try :

2004-05-23  Hans Breuer  <hans@breuer.org>
 
        * acinclude.m4 : another attempt to fix 
	bug #142032 (still not sure it's the right one,
	but works for me(tm), which the other does not ;)
Comment 8 Andrew Ross 2004-05-25 10:13:33 UTC
Thanks, Hans.

I just tried the 2004-05-25 CVS snapshot and configure --with-python works fine
for me too :-)
Comment 9 Hans Breuer 2004-10-30 16:29:48 UTC
Yeah! Closing as fixed ;-)