LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-26-2004, 12:57 PM   #1
mrvikki
LQ Newbie
 
Registered: Mar 2004
Posts: 21

Rep: Reputation: 15
EsounD 0.2.8 fails to compile...


Hi I am trying to install the latest version of EsounD (0.2.8)...
I downloaded the file and unzipped it into its own directory.
I typed ./configure and everything went fine
then I typed make and get the following output...

gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c -fPIC -DPIC esddsp.c -o esddsp.lo
esddsp.c: In function `open':
esddsp.c:172: error: `RTLD_NEXT' undeclared (first use in this function)
esddsp.c:172: error: (Each undeclared identifier is reported only once
esddsp.c:172: error: for each function it appears in.)
esddsp.c: In function `ioctl':
esddsp.c:373: error: `RTLD_NEXT' undeclared (first use in this function)
esddsp.c: In function `close':
esddsp.c:392: error: `RTLD_NEXT' undeclared (first use in this function)
make: *** [esddsp.lo] Error 1
bash-2.05b$


Any ideas how to fix? Thanks...
 
Old 09-02-2004, 10:01 AM   #2
ssokolow
LQ Newbie
 
Registered: Aug 2004
Location: Canada
Posts: 28

Rep: Reputation: 16
For some reason (I haven't looked into it yet) eSound does include dlfcn.h which is where RTLD_NEXT comes from, however it doesn't pick up RTLD_NEXT from it.

The temporary solution I found was to manually add the defnition line above the #define for REAL_LIBC before I compile it. (although this is probably too much of a hack to be added to the official source code)

Here's the relevant change from esddsp.c:
Code:
# --- The line below this one was copied from from /usr/include/dlfcn.h to esddsp.c
# define RTLD_NEXT      ((void *) -1l)

#define REAL_LIBC RTLD_NEXT
although, since esddsp is just a tool to redirect /dev/dsp through esound at your whim, you could also just edit the Makefile to prevent it from compiling. It's technically optional and it's only used to force binary-only programs to use eSound rather than OSS.
 
Old 02-20-2005, 02:30 PM   #3
whschimmel
Member
 
Registered: May 2004
Location: Netherlands
Distribution: OpenSUSE 11.1, KDE 3.5
Posts: 45

Rep: Reputation: 15
this one may be deleted by a moderator

Last edited by whschimmel; 02-20-2005 at 02:31 PM.
 
Old 03-05-2005, 05:17 AM   #4
davekok
LQ Newbie
 
Registered: Mar 2005
Location: The Netherlands
Distribution: Trustix
Posts: 1

Rep: Reputation: 0
EsounD

It apears you have to compile the code with the _GNU_SOURCE option e.g.:
export CFLAGS="-D_GNU_SOURCE"
./configure
make
make install

The header file features.h turns off all options and without the __USE_GNU option RTLD_NEXT will never be defined. Passing features.h the _GNU_SOURCE option will turn on the _USE_GNU option.

Last edited by davekok; 03-05-2005 at 05:18 AM.
 
  


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
iASL fails to compile Simon Bridge Programming 1 11-20-2005 01:27 AM
xorg 6.8.0 fails to compile stumbles Linux - Software 0 09-26-2004 08:26 PM
EsounD fails to start in Gnome and console... mrvikki Linux - Newbie 1 08-25-2004 07:56 PM
EsounD fails to start in Gnome or in console... mrvikki Linux - Software 1 08-23-2004 04:16 PM
Qt program fails to compile irfanhab Programming 2 05-21-2004 05:33 AM

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

All times are GMT -5. The time now is 01:16 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration