This is a commented log of my try to install lilypond. Maybe it can be
useful to help me install it (already have manuals printed... but
without the software it is hard to write music :-).

My linux box is an old Slackware 8.0 updated with:
 gcc 3.3
 glibc 2.3.2
 and many more software like perl, make, python and so on... 

Trying to configure (crossing my thumbs):

./configure

[...]

ERROR: Please install required programs: kpathsea (libkpathsea-dev,
kpathsea-devel or tetex-devel package). Else, please specify the
location of your kpathsea using --with-kpathsea-include and
--with-kpathsea-lib options. You should install kpathsea; see
INSTALL.txt. Rerun ./configure --without-kpathsea only if kpathsea is
not available for your platform.

OK! In fact they are somewhere in a weird place. Let specify it:

./configure --with-kpathsea-include=/usr/share/texmf/include/ \
            --with-kpathsea-lib=/usr/share/texmf/lib/

[...]

ERROR: Please install required programs: kpathsea (libkpathsea-dev,
kpathsea-devel or tetex-devel package). Else, please specify the
location of your kpathsea using --with-kpathsea-include and
--with-kpathsea-lib options. You should install kpathsea; see
INSTALL.txt. Rerun ./configure --without-kpathsea only if kpathsea is
not available for your platform.


As this is not working in a clean way, let us look into the config.log
file:

configure:6335: checking for kpathsea/kpathsea.h
configure:6342: result: yes
configure:6356: checking for kpse_find_file in -lkpathsea
configure:6387: g++ -o conftest  -O2 -finline-functions -g  
-I/usr/share/texmf/include/   -L/usr/share/texmf/lib/ conftest.cc
-lkpathsea   >&5
configure:6371:1: warning: "PACKAGE_NAME" redefined
configure:6365:1: warning: this is the location of the previous
definition
/usr/share/texmf/lib//libkpathsea.a(cnf.o)(.text+0x1b): In function
`do_line':
: undefined reference to `__ctype_b'
/usr/share/texmf/lib//libkpathsea.a(cnf.o)(.text+0x58): In function
`do_line':
: undefined reference to `__ctype_b'
/usr/share/texmf/lib//libkpathsea.a(cnf.o)(.text+0xb4): In function
`do_line':
: undefined reference to `__ctype_b'
/usr/share/texmf/lib//libkpathsea.a(cnf.o)(.text+0xe8): In function
`do_line':
: undefined reference to `__ctype_b'
/usr/share/texmf/lib//libkpathsea.a(cnf.o)(.text+0x129): In function
`do_line':
: undefined reference to `__ctype_b'
/usr/share/texmf/lib//libkpathsea.a(cnf.o)(.text+0x165): more undefined
references to `__ctype_b' follow
/usr/share/texmf/lib//libkpathsea.a(uppercasify.o)(.text+0x2e): In
function `uppercasify':
: undefined reference to `__ctype_toupper'
/usr/share/texmf/lib//libkpathsea.a(variable.o)(.text+0x303): In
function `kpse_var_expand':
: undefined reference to `__ctype_b'
/usr/share/texmf/lib//libkpathsea.a(variable.o)(.text+0x316): In
function `kpse_var_expand':
: undefined reference to `__ctype_b'
collect2: ld returned 1 exit status

Then, where should be __ctype_b defined?  Took the config cc file used
to test kpathsea, and commented almost everything resulting in:

#ifdef __cplusplus
extern "C"
#endif

char kpse_find_file ()
int
main ()
{
kpse_find_file ();
  ;
  return 0;
}

giving the same error. Commenting first three lines, I get:

[EMAIL PROTECTED] _]$ g++ -o _  -O2 -finline-functions -g  
-I/usr/share/texmf/include/   -L/usr/share/texmf/lib/ _.cc -lkpathsea
/tmp/ccdQYEVm.o(.text+0xa): In function `main':
/opt/MISC/_/lilypond-1.8.1/_/_.cc:50: undefined reference to
`kpse_find_file()'
collect2: ld returned 1 exit status
[EMAIL PROTECTED] _]$

which means my libkpathsea does not have a kpse_find_file
implementation?
But if I run

[EMAIL PROTECTED] _]$ nm /usr/share/texmf/lib/libkpathsea.a |grep
kpse_find_file
00001418 T kpse_find_file

I'am not sure what this means... but if I add an implementation for
that function to the test C code it compiles.

I don't know if this is a too old kpathsea or if there is some other
reason.

Thanks for any help,
Alberto
-- 
Alberto Manuel Brandão Simões <[EMAIL PROTECTED]>
Departamento de Informática - Universidade do Minho



_______________________________________________
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user

Reply via email to