LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-28-2017, 05:15 PM   #1
maschelsea
Member
 
Registered: Dec 2016
Distribution: Slackware 64bit 14.2
Posts: 468

Rep: Reputation: Disabled
timidity++ won't build


I am trying to build timidity++ on my Slackware system. I downloaded the archive and the source code manually (not using sbopkg) from www.slackbuilds.com. The build fails during the configure phase.

Code:
patching file autoconf/libOggFLAC.m4
patching file autoconf/Makefile.am
patching file configure.in
patching file timidity/Makefile.am
patching file interface/Makefile.am
patching file interface/tk_c.c
patching file interface/tkpanel.tcl
patching file configure.in
Hunk #3 succeeded at 2269 (offset -18 lines).
patching file interface/Makefile.am
patching file interface/tclIndex
patching file interface/tk_c.c
Hunk #1 succeeded at 941 (offset 28 lines).
autoreconf: Entering directory `.'
autoreconf: configure.in: not using Gettext
autoreconf: running: aclocal --force -I autoconf
aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
autoreconf: configure.in: tracing
autoreconf: configure.in: not using Libtool
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'
configure.in:166: installing 'autoconf/compile'
interface/Makefile.am:25: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'
libarc/Makefile.am:21: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
libunimod/Makefile.am:21: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
timidity/Makefile.am:21: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
utils/Makefile.am:21: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
windrv/Makefile.am:23: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
autoreconf: Leaving directory `.'
checking build system type... x86_64-slackware-linux-gnu
checking host system type... x86_64-slackware-linux-gnu
checking target system type... x86_64-slackware-linux-gnu
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether grep returns status... yes
checking if --enable-debug option specified... no
checking for emacs... emacs
checking where .elc files should go... ${datadir}/emacs/site-lisp
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
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 ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking whether gcc needs -traditional... no
checking for gawk... (cached) gawk
checking for ranlib... ranlib
checking whether ln -s works... yes
checking whether -rdynamic option is recognized... yes
checking for sqrt in -lm... yes
checking for socket in -lsocket... no
checking for dlopen in -ldl... yes
checking for NSLinkModule in -lobjc... no
checking for setlocale in -lxpg4... no
checking for gethostbyname... yes
checking for X... libraries , headers 
checking for gethostbyname... (cached) yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for XOpenDisplay in -lX11... yes
checking X11 version 6... 6 or newer
checking for XShapeCombineMask in -lXext... yes
checking for IceConnectionNumber in -lICE... (cached) yes
checking for SmcOpenConnection in -lSM... yes
checking for XtVaAppInitialize in -lXt... yes
checking for XmuInternAtom in -lXmu... yes
checking for XmuRegisterExternalAgent... yes
checking for XawInitializeWidgetSet in -lXaw... yes
checking for XmCreateForm in -lXm... yes
checking for XShmCreatePixmap... yes
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking whether time.h and sys/time.h may both be included... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking glob.h usability... yes
checking glob.h presence... yes
checking for glob.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking inttypes.h usability... yes
checking inttypes.h presence... yes
checking for inttypes.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking machine/endian.h usability... no
checking machine/endian.h presence... no
checking for machine/endian.h... no
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking memory.h usability... yes
checking memory.h presence... yes
checking for memory.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking nlist.h usability... yes
checking nlist.h presence... yes
checking for nlist.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking stdlib.h usability... yes
checking stdlib.h presence... yes
checking for stdlib.h... yes
checking stdint.h usability... yes
checking stdint.h presence... yes
checking for stdint.h... yes
checking string.h usability... yes
checking string.h presence... yes
checking for string.h... yes
checking strings.h usability... yes
checking strings.h presence... yes
checking for strings.h... yes
checking stropts.h usability... yes
checking stropts.h presence... yes
checking for stropts.h... yes
checking soundcard.h usability... no
checking soundcard.h presence... no
checking for soundcard.h... no
checking alsa/asoundlib.h usability... yes
checking alsa/asoundlib.h presence... yes
checking for alsa/asoundlib.h... yes
checking sys/asoundlib.h usability... yes
checking sys/asoundlib.h presence... yes
checking for sys/asoundlib.h... yes
checking sys/audioio.h usability... no
checking sys/audioio.h presence... no
checking for sys/audioio.h... no
checking sys/awe_voice.h usability... no
checking sys/awe_voice.h presence... no
checking for sys/awe_voice.h... no
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/ipc.h usability... yes
checking sys/ipc.h presence... yes
checking for sys/ipc.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/shm.h usability... yes
checking sys/shm.h presence... yes
checking for sys/shm.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/soundcard.h usability... yes
checking sys/soundcard.h presence... yes
checking for sys/soundcard.h... yes
checking for sys/param.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/types.h usability... yes
checking sys/types.h presence... yes
checking for sys/types.h... yes
checking sys/stat.h usability... yes
checking sys/stat.h presence... yes
checking for sys/stat.h... yes
checking sys/sysctl.h usability... yes
checking sys/sysctl.h presence... yes
checking for sys/sysctl.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking X11/Xlib.h usability... yes
checking X11/Xlib.h presence... yes
checking for X11/Xlib.h... yes
checking unistd.h usability... yes
checking unistd.h presence... yes
checking for unistd.h... yes
checking for X11/extensions/XShm.h... yes
checking for X11/Xmu/ExtAgent.h... yes
checking for string.h... (cached) yes
checking whether byte ordering is bigendian... no
checking whether char is unsigned... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for working volatile... yes
checking for preprocessor stringizing operator... yes
checking for function prototypes... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for size_t... yes
checking for off_t... yes
checking for pid_t... yes
checking volatile declaration... yes
checking union semun declaration... no
checking for error_at_line... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for working memcmp... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking return type of signal handlers... void
checking for vprintf... yes
checking for _doprnt... no
checking for alarm... yes
checking for dup2... yes
checking for floor... yes
checking for getcwd... yes
checking for gethostbyname... (cached) yes
checking for getopt... yes
checking for gettimeofday... yes
checking for getwd... yes
checking for isatty... yes
checking for memchr... yes
checking for memmove... yes
checking for memset... yes
checking for mkstemp... yes
checking for modf... yes
checking for munmap... yes
checking for popen... yes
checking for pow... yes
checking for select... yes
checking for signal... yes
checking for socket... yes
checking for sleep... yes
checking for vsnprintf... yes
checking for snprintf... yes
checking for sqrt... yes
checking for strchr... yes
checking for strdup... yes
checking for strstr... yes
checking for strerror... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for strrchr... yes
checking for strstr... (cached) yes
checking for strtol... yes
checking for strlcat... no
checking for strlcpy... no
checking for usleep... yes
checking for getopt_long... yes
checking for open_memstream... yes
checking for an implementation of va_copy()... yes
checking for an implementation of __va_copy()... yes
checking whether va_lists can be copied by value... no
checking enable_audio=oss... yes - <sys/soundcard.h>
checking for open in -lossaudio... no
checking enable_audio=sun... no
checking enable_audio=hpux... no
checking enable_audio=irix... no
checking enable_audio=mme... no
checking enable_audio=sb_dsp... no
checking enable_audio=w32... no
checking enable_audio=darwin... no
checking enable_audio=alsa... yes, configuring alsa
checking for ALSA CFLAGS... 
checking for ALSA LDFLAGS...  -lasound -lm -ldl -lpthread
checking for libasound headers version >= 0.1.1... found.
checking for snd_ctl_open in -lasound... yes
checking for snd_seq_port_info_set_timestamping... yes
checking enable_audio=alib... no
checking enable_audio=nas... no
checking enable_audio=arts... no
checking enable_audio=esd... yes, configuring esd
checking for esd-config... /usr/bin/esd-config
checking for ESD - version >= 0.2.7... yes
checking enable_audio=portaudio... no
checking enable_audio=npipe... no
checking enable_audio=jack... no
checking enable_audio=ao... yes, configuring ao
checking for dlopen... yes
checking for ao... yes
checking enable_audio=vorbis... yes, configuring vorbis
checking for Ogg... yes
checking for Vorbis... yes
checking enable_audio=flac... yes, configuring flac
checking for libFLAC... yes
checking enable_audio=speex... no
checking enable_audio=gogo... no
checking default output mode... alsa/s
checking for LoadLibrary... no
checking for shl_load... no
checking for NSLinkModule... no
checking dynamic link method... use dl_dlopen.c
checking whether your dlsym() needs a leading underscore... no
checking ncurses.h usability... yes
checking ncurses.h presence... yes
checking for ncurses.h... yes
checking ncurses/curses.h usability... yes
checking ncurses/curses.h presence... yes
checking for ncurses/curses.h... yes
checking curses.h usability... yes
checking curses.h presence... yes
checking for curses.h... yes
checking for initscr in -lncurses... yes
checking for Tcl_Init in -ltcl... yes
checking for Tk_Init in -ltk... yes
checking for pkg-config... /usr/bin/pkg-config
checking for GTK+ - version >= 2.0.0... yes (version 2.24.31)
checking for sys/soundcard.h... (cached) yes
checking for ALSA CFLAGS... 
checking for ALSA LDFLAGS...  -lasound -lm -ldl -lpthread -lasound -lm -ldl -lpthread
checking for libasound headers version >= 0.1.1... found.
checking for snd_ctl_open in -lasound... (cached) yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
gawk: error while loading shared libraries: libreadline.so.7: cannot open shared object file: No such file or directory
config.status: error: could not create Makefile
root@caitlyn:~/TiMidity++#
I don't know where to get this libreadline.so.7 it gripes about. I tried soft-linking it to /usr/lib64/libreadline.so and running the build again, but it didn't work, so I deleted the symlink. Any clues to what's going on here?
 
Old 05-30-2017, 02:02 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,499
Blog Entries: 19

Rep: Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410
Quote:
Originally Posted by maschelsea View Post
I don't know where to get this libreadline.so.7 it gripes about. I tried soft-linking it to /usr/lib64/libreadline.so and running the build again, but it didn't work, so I deleted the symlink. Any clues to what's going on here?
It should be the other way around. libreadline.so should be a symlink to libreadline.so.7, which is normally found in /lib or /lib64. Please post the output of:
Code:
ls /lib64|grep readline
readlink /usr/lib64/libreadline.so
Also, as it seems to be gawk that is giving you the error, it would be worth checking its linkage:
Code:
ldd /usr/bin/gawk

Last edited by hazel; 05-30-2017 at 02:03 AM.
 
Old 05-30-2017, 08:57 AM   #3
maschelsea
Member
 
Registered: Dec 2016
Distribution: Slackware 64bit 14.2
Posts: 468

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hazel View Post
It should be the other way around. libreadline.so should be a symlink to libreadline.so.7, which is normally found in /lib or /lib64. Please post the output of:
Code:
ls /lib64|grep readline
readlink /usr/lib64/libreadline.so
Also, as it seems to be gawk that is giving you the error, it would be worth checking its linkage:
Code:

Code:
root@caitlyn:~# ls /lib64|grep readline
You have new mail in /var/spool/mail/root
root@caitlyn:~# readlink /usr/lib64/libreadline.so
libreadline.so.6
root@caitlyn:~# 
root@caitlyn:~# ldd /usr/bin/gawk
	linux-vdso.so.1 (0x00007ffe5aac5000)
	libsigsegv.so.2 => /usr/lib64/libsigsegv.so.2 (0x00007f2c06850000)
	libc.so.6 => /lib64/libc.so.6 (0x00007f2c0648a000)
	libreadline.so.7 => not found
	libmpfr.so.4 => /usr/lib64/libmpfr.so.4 (0x00007f2c06229000)
	libgmp.so.10 => /usr/lib64/libgmp.so.10 (0x00007f2c05fb3000)
	libdl.so.2 => /lib64/libdl.so.2 (0x00007f2c05dad000)
	libm.so.6 => /lib64/libm.so.6 (0x00007f2c05aa4000)
	/lib64/ld-linux-x86-64.so.2 (0x000056244c9a9000)
Where do I get libreadline? I checked slackpkg and found nothing. I checked sbopkg and found something that looked java-ish, so I didn't think that was it either. I installed it anyway, and the error still persists. When I manually soft-link libreadline.so to libreadline.so.7, the error changes, but still persists. Is there a tool on slackware analogous to gentoo's equery? I think that's what I need.

Last edited by maschelsea; 05-30-2017 at 09:00 AM.
 
Old 05-30-2017, 10:52 AM   #4
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,499
Blog Entries: 19

Rep: Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410
You have the wrong version of the readline package. Gawk was built against version 7 so it can't link to version 6. Unfortunately you can't cure this kind of problem by cheating with symlinks; that just stores up trouble for later.

I just checked on one of the Slackware mirrors. Slackware 14.2 uses readline-6. Slackware Current uses readline-7. You don't say which version you are using but you seem to have mixed up packages from the two.

If you are on Slackware 14.2, you will need to reinstall gawk from there, so that it will link correctly with your version of libreadline. If it's Slackware Current, you will need to upgrade readline to version 7.

PS: I think it's gawk that is wrong. If you had the wrong version of readline, bash wouldn't work either.

Last edited by hazel; 05-30-2017 at 10:54 AM. Reason: Added PS
 
Old 05-30-2017, 11:14 AM   #5
maschelsea
Member
 
Registered: Dec 2016
Distribution: Slackware 64bit 14.2
Posts: 468

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hazel View Post
You have the wrong version of the readline package. Gawk was built against version 7 so it can't link to version 6. Unfortunately you can't cure this kind of problem by cheating with symlinks; that just stores up trouble for later.

I just checked on one of the Slackware mirrors. Slackware 14.2 uses readline-6. Slackware Current uses readline-7. You don't say which version you are using but you seem to have mixed up packages from the two.

If you are on Slackware 14.2, you will need to reinstall gawk from there, so that it will link correctly with your version of libreadline. If it's Slackware Current, you will need to upgrade readline to version 7.

PS: I think it's gawk that is wrong. If you had the wrong version of readline, bash wouldn't work either.
I am having some trouble adjusting to Slackware. I've used Gentoo from 2005 till 2015. On Gentoo, I set my profile ONCE and it stays set. With Slackware, I choose the mirror I want, and it changes from time to time. The only mirror I have uncommented in /etc/slackpkg/mirrors is ftp://mirrors.easynews.com/linux/sla...ckware64-14.2/. Is this the correct one for Slackware stable 14.2? I have run into problems in the past related to mixing 14.2 and -current. I seem to be having one such problem right now.

I wanted to make sure that gawk was correct, so I sought to reinstall it:
Code:
root@caitlyn:~# slackpkg search gawk

awk: error while loading shared libraries: libreadline.so.7: cannot open shared object file: No such file or directory
Looking for gawk in package list. Please wait... awk: error while loading shared libraries: libreadline.so.7: cannot open shared object file: No such file or directory
DONE

The list below shows all packages with name matching "gawk".

awk: error while loading shared libraries: libreadline.so.7: cannot open shared object file: No such file or directory

You can search specific files using "slackpkg file-search file".


root@caitlyn:~#
How do I reinstall gawk for slackware 14.2?
 
Old 05-30-2017, 01:51 PM   #6
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,499
Blog Entries: 19

Rep: Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410
I would avoid using slackpkg right now. Complex tools don't work well when you have incompatible packages. Go to your local mirror with your browser and download the correct gawk from Slackware14.2 by hand. Then use the low-level Slackware installation tool to do a reverse upgrade. I think it's called something like installpkg or upgradepkg. If you're not used to using these simpler tools, read up on them first.
 
Old 05-30-2017, 03:58 PM   #7
maschelsea
Member
 
Registered: Dec 2016
Distribution: Slackware 64bit 14.2
Posts: 468

Original Poster
Rep: Reputation: Disabled
OK. I grabbed the gawk archive in my browser and downloaded it, and then installed it with installpkg. My TiMidity slackbuild completed building successfully. So I guess this one is [SOLVED]. Thank you for your help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Portsentry won't build horizn Slackware 4 12-03-2016 08:33 PM
timidity++ timidity.cfg icecubeflower Linux - Software 0 11-18-2009 08:04 AM
Midi files won't play, timidity won't start FibonacciPrower Linux - Software 0 06-10-2006 03:00 PM
FSViewer won't build? Bonzodog Slackware 1 09-04-2005 04:44 AM
Why won't kdebase-3.3.0 build? craigs1987 Linux - Software 1 10-01-2004 05:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration