bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: configure bug?


From: Geoffrey Lassner
Subject: Re: configure bug?
Date: Thu, 18 Jul 2002 10:07:06 -0600

> Geoffrey Lassner <address@hidden> writes:
> 
> > The configure script appears to assume that kpathsea includes and
> > libraries are in /usr/include and /usr/lib and does not find them
> > when installed in /usr/local/include and /usr/local/lib
> >
> > The configure script can not find gettext (libintl) which is also 
> > located in /usr/local/lib 
> 
> That's odd.  A quick test seems to to indicate that it works over
> here.  Does your compiler have /usr/local as a preferred prefix?  Try:
> 
>     echo '#include <foo>' > foo.c
>     cc -v -c foo.c
> 
> 
> You can always try configuring doing:
> 
>     CFLAGS='-I/usr/local/include' LDFLAGS='-L/usr/local/lib' ./configure
> 
> Jan.


Jan,

        I am not a compiling guru by any means but I do not believe
that /usr/local is preferred:

% cd /tmp
% echo '#include <foo>' > foo.c
% cc -v -c foo.c
Using builtin specs.
gcc version 2.95.3 20010315 (release) [FreeBSD]
 /usr/libexec/cpp0 -lang-c -v -D__GNUC__=2 -D__GNUC_MINOR__=95 -Di386 
-D__FreeBSD__=4 -D__FreeBSD_cc_version=440000 -Dunix -D__i386__ -D__FreeBSD__=4 
-D__FreeBSD_cc_version=440000 -D__unix__ -D__i386 -D__unix -Acpu(i386) 
-Amachine(i386) -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386) 
-Di386 -D__i386 -D__i386__ -D__ELF__ foo.c /tmp/ccIdlZNX.i
GNU CPP version 2.95.3 20010315 (release) [FreeBSD] (i386 FreeBSD/ELF)
#include "..." search starts here:
#include <...> search starts here:
 /usr/include
 /usr/include
End of search list.
The following default directories have been omitted from the search path:
 /usr/include/g++
End of omitted list.
foo.c:1: foo: No such file or directory
%


The solution below fixes everything except for python (although I do not
remember having to fix that one before): 

% sh
$ CFLAGS='-I/usr/local/include' LDFLAGS='-L/usr/local/lib' ./configure
loading cache ./config.cache
checking Package... LILYPOND
checking builddir... .
checking for stepmake... ./stepmake  (${prefix}/share/stepmake not found)
checking host system type... i386-unknown-freebsd4.6
checking for gmake... gmake
checking for find... find
checking for tar... tar
checking for bash... /usr/local/bin/bash
checking for python... python
checking for python... /usr/local/bin/python
checking for gcc... gcc
checking whether the C compiler (gcc -I/usr/local/include -L/usr/local/lib) 
works... yes
checking whether the C compiler (gcc -I/usr/local/include -L/usr/local/lib) is 
a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for IEEE-conformance compiler flags... none
checking gcc version... 2.95.3
checking for c++... c++
checking whether the C++ compiler (c++ -I/usr/local/include -L/usr/local/lib) 
works... yes
checking whether the C++ compiler (c++ -I/usr/local/include -L/usr/local/lib) 
is a cross-compiler... no
checking whether we are using GNU C++... yes
checking whether c++ accepts -g... yes
checking c++ version... 2.95.3
checking whether explicit instantiation is needed... no
checking for ar... ar
checking for ranlib... ranlib
checking for bison... bison -y
checking for bison... bison
checking bison version... 1.35
checking for flex... flex
checking how to run the C++ preprocessor... c++ -E
checking for FlexLexer.h... yes
checking language... English
checking for gettext in -lintl... yes
checking for gettext... yes
checking for msgfmt... msgfmt
checking for mf... mf
checking for inimf... inimf
checking for working metafont mode... ljfour
checking for kpsewhich... kpsewhich
checking for tfm path... /usr/local/share/texmf/fonts/tfm/public/cm 
/usr/local/share/texmf/fonts/tfm/ams/symbols
checking for guile-config... guile-config
checking guile-config version... 1.4
checking guile compile flags... -I/usr/local/include
checking guile link flags... -L/usr/local/lib -lguile -lqthreads -lm
checking for kpathsea/kpathsea.h... no
checking for kpse_find_file in -lkpathsea... yes
checking for kpse_find_file... yes
checking whether to use kpathsea... yes
checking for makeinfo... makeinfo
checking whether makeinfo can split html by @node... yes
checking for python2.2/Python.h... no
checking for python2.1/Python.h... no
checking for python2.0/Python.h... no
checking for python2/Python.h... no
checking for python/Python.h... no
checking for python1.5/Python.h... no
checking for Python.h... no
checking for assert.h... yes
checking for sys/stat.h... yes
checking for sstream... yes
checking whether stat file-mode macros are broken... no
checking for 8-bit clean memcmp... yes
checking for vprintf... yes
checking for memmem... no
checking for snprintf... yes
checking for vsnprintf... yes
checking for gettext... (cached) yes
checking for isinf... yes
checking for guile... guile
checking for guile... /usr/local/bin/guile
checking for perl... perl
checking for perl... /usr/bin/perl
checking for pktrace... no
checking for makeinfo... (cached) makeinfo
checking makeinfo version... 4.1
updating cache ./config.cache
creating ./config.status
creating config.make
creating config.h
configuring in stepmake
running /bin/sh ./configure  --cache-file=.././config.cache --srcdir=.
loading cache .././config.cache
checking Package... Stepmake package!
checking builddir... .
checking host system type... i386-unknown-freebsd4.6
checking for gmake... (cached) gmake
checking for find... (cached) find
checking for tar... (cached) tar
checking for bash... (cached) /usr/local/bin/bash
checking for python... (cached) python
checking for python... (cached) /usr/local/bin/python
checking language... English
checking for makeinfo... (cached) makeinfo
updating cache .././config.cache
creating ./config.status
creating config.make
creating config.h

WARNING: Please consider installing optional programs:  pktrace

ERROR: Please install required programs:  python.h (python-devel, python-dev or 
libpython-dev package)

See INSTALL.txt for more information on how to build LilyPond
Remove config.cache before rerunning ./configure
$ 



Of course if I link /usr/local/include/python2.1 into /usr/include it
works again:


$ ls -ld /usr/local/include/python2.1/Python.h
-r--r--r--  1 root  wheel  2747 Jul  1 13:59 
/usr/local/include/python2.1/Python.h
$ sudo ln -s /usr/local/include/python2.1 /usr/include
$ rm config.cache
$ CFLAGS='-I/usr/local/include' LDFLAGS='-L/usr/local/lib' ./configure
creating cache ./config.cache
checking Package... LILYPOND
checking builddir... .
checking for stepmake... ./stepmake  (${prefix}/share/stepmake not found)
checking host system type... i386-unknown-freebsd4.6
checking for gmake... gmake
checking for find... find
checking for tar... tar
checking for bash... /usr/local/bin/bash
checking for python... python
checking for python... /usr/local/bin/python
checking for gcc... gcc
checking whether the C compiler (gcc -I/usr/local/include -L/usr/local/lib) 
works... yes
checking whether the C compiler (gcc -I/usr/local/include -L/usr/local/lib) is 
a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for IEEE-conformance compiler flags... none
checking gcc version... 2.95.3
checking for c++... c++
checking whether the C++ compiler (c++ -I/usr/local/include -L/usr/local/lib) 
works... yes
checking whether the C++ compiler (c++ -I/usr/local/include -L/usr/local/lib) 
is a cross-compiler... no
checking whether we are using GNU C++... yes
checking whether c++ accepts -g... yes
checking c++ version... 2.95.3
checking whether explicit instantiation is needed... no
checking for ar... ar
checking for ranlib... ranlib
checking for bison... bison -y
checking for bison... bison
checking bison version... 1.35
checking for flex... flex
checking how to run the C++ preprocessor... c++ -E
checking for FlexLexer.h... yes
checking language... English
checking for gettext in -lintl... yes
checking for gettext... yes
checking for msgfmt... msgfmt
checking for mf... mf
checking for inimf... inimf
checking for working metafont mode... ljfour
checking for kpsewhich... kpsewhich
checking for tfm path... /usr/local/share/texmf/fonts/tfm/public/cm 
/usr/local/share/texmf/fonts/tfm/ams/symbols
checking for guile-config... guile-config
checking guile-config version... 1.4
checking guile compile flags... -I/usr/local/include
checking guile link flags... -L/usr/local/lib -lguile -lqthreads -lm
checking for kpathsea/kpathsea.h... no
checking for kpse_find_file in -lkpathsea... yes
checking for kpse_find_file... yes
checking whether to use kpathsea... yes
checking for makeinfo... makeinfo
checking whether makeinfo can split html by @node... yes
checking for python2.2/Python.h... no
checking for python2.1/Python.h... yes
checking for python2.0/Python.h... no
checking for python2/Python.h... no
checking for python/Python.h... no
checking for python1.5/Python.h... no
checking for Python.h... no
checking for assert.h... yes
checking for sys/stat.h... yes
checking for sstream... yes
checking whether stat file-mode macros are broken... no
checking for 8-bit clean memcmp... yes
checking for vprintf... yes
checking for memmem... no
checking for snprintf... yes
checking for vsnprintf... yes
checking for gettext... (cached) yes
checking for isinf... yes
checking for guile... guile
checking for guile... /usr/local/bin/guile
checking for perl... perl
checking for perl... /usr/bin/perl
checking for pktrace... no
checking for makeinfo... (cached) makeinfo
checking makeinfo version... 4.1
updating cache ./config.cache
creating ./config.status
creating config.make
creating config.h
configuring in stepmake
running /bin/sh ./configure  --cache-file=.././config.cache --srcdir=.
loading cache .././config.cache
checking Package... Stepmake package!
checking builddir... .
checking host system type... i386-unknown-freebsd4.6
checking for gmake... (cached) gmake
checking for find... (cached) find
checking for tar... (cached) tar
checking for bash... (cached) /usr/local/bin/bash
checking for python... (cached) python
checking for python... (cached) /usr/local/bin/python
checking language... English
checking for makeinfo... (cached) makeinfo
updating cache .././config.cache
creating ./config.status
creating config.make
creating config.h
config.h is unchanged

WARNING: Please consider installing optional programs:  pktrace

See INSTALL.txt for more information on how to build LilyPond
Remove config.cache before rerunning ./configure

Type:
    make all       to build LilyPond
    make install   to install LilyPond
    make help      to see all possible targets

Do not worry if ./Documentation or ./mutopia should not build.
$            



If it makes any difference; I am using the version of python out 
of the freebsd ports/packages collection:

$ pkg_info | grep python 
python-2.1.3        An interpreted object-oriented programming language
$


Also if it would help I could probably build a FreeBSD test machine 
that you could try some builds on (if you want).


Thanks,
Geoffrey



reply via email to

[Prev in Thread] Current Thread [Next in Thread]