Author Topic: lilypond-2.14.2 update and build for 64 bit  (Read 324 times)

Online gseaman

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3881
lilypond-2.14.2 update and build for 64 bit
« on: May 01, 2012, 04:08:07 PM »
I've successfully built lilypond for 64-bit, but there are some errors that don't seem to interfere with the program, but I'm not sure:

Code: [Select]
Warning: unused libraries in /usr/lib64/lilypond/2.14.2/python/midi.so: libstdc++.so.6
 libm.so.6
 libgcc_s.so.1

Warning: unused libraries in /usr/bin/lilypond: libdl.so.2
 libltdl.so.7
 libgmp.so.10
 libcrypt.so.1

Warning: undefined symbols in /usr/lib64/lilypond/2.14.2/python/midi.so: PyDict_SetItemString Py_InitModule4_64 PyArg_ParseTuple PyString_FromString PyInt_FromLong PyModule_GetDict Py_BuildValue PyList_Append PyErr_SetString PyList_New

It seems to be a linking problem. I've tried all of the tricks for library problems, but have had no effect. It may be that I am running ./configure directly instead of the %configure macro. But it causes complete failure, so I changed it. Here is the spec:
Code: [Select]
%define name    lilypond
%define version 2.14.2
%define release %mkrel 1
#define _disable_ld_no_undefined 1
#define __libtoolize /bin/true

Name:           %{name}
Version:        %{version}
Release:        %{release}
Summary:        Program for printing sheet music
License:        GPL
Group:          Publishing
URL:            http://www.lilypond.org/
Source0:        http://download.linuxaudio.org/lilypond/sources/v2.14/%{name}-%{version}.tar.xz

# building lilypond 2.14.2
BuildRequires:  bison
BuildRequires:  dblatex
BuildRequires:  flex
#(Fontforge 20100501 or newer is recommended; must be compiled with ‘--enable-double’.)
BuildRequires:  fontforge >= 1.0-0.20110222
BuildRequires:  gettext
BuildRequires:  %{_lib}guile-devel
BuildRequires:  %{_lib}fontconfig-devel
BuildRequires:  %{_lib}freetype6-devel
BuildRequires:  %{_lib}pango1.0-devel
BuildRequires:  %{_lib}python2.6-devel
BuildRequires:  %{_lib}ltdl7
BuildRequires:  perl
BuildRequires:  texinfo
# MetaFont (mf-nowin) and MetaPost (mpost) packaged with texlive.
BuildRequires:  texlive

# running lilypond 2.14.2
Requires: fonts-ttf-dejavu
Requires: fontconfig
Requires: %{_lib}freetype6
Requires: ghostscript
Requires: guile
Requires: %{_lib}pango1.0_0
Requires: python

BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
LilyPond is a music typesetter.  It produces beautiful sheet music using a
high level description file as input.  LilyPond is part of the GNU project.

%prep
%setup -q

%build
#autoreconf -fi
./configure --prefix=%_prefix \
    --libdir=%_libdir \
    --enable-documentation=no
#     --with-python-include=%_includedir/python2.6 \
#     --with-python-lib=%_libdir/python2.6

%make

%install
%{__rm} -rf %{buildroot}
make install DESTDIR=%{buildroot}

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root)
%doc COPYING README.txt DEDICATION NEWS.txt AUTHORS.txt THANKS
%{_bindir}/*
%{_libdir}/%{name}/%{version}/python/*.so
#{_mandir}/man?/*
#{_infodir}/*.info*
%{_datadir}/%{name}/%{version}/*
%{_datadir}/emacs/site-lisp/lilypond*
%{_datadir}/locale/*


%changelog
* Fri Apr 27 2012 Galen Seaman <gseaman@clear.net> 2.14.2-1pclos2012
- 2.14.2

* Sun Nov 15 2009 Galen Seaman <gseaman2186@comcast.net> 2.13.6-1pclos2010
- update for PCLinuxOS

I've read the Mandriva wiki on overlinking and underlinking, but it didn't help me find the problem. (I've left in comment out lines of things that I've already tried.)

Galen