LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 02-02-2003, 11:10 AM   #1
Obi Perrin
Member
 
Registered: Nov 2002
Posts: 136

Rep: Reputation: 15
smpeg compile failure


I wanted to get tuxracer working, so read the hint on hints.linuxfromscratch.org, followed that through up to the smpeg part - which fails during compile with the following error:

gcc -g -O2 -I/usr/include/SDL -D_REENTRANT -DTHREADED_AUDIO -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -DNDEBUG -I.. -DNOCONTROLS -I. -I./audio -I./video -o .libs/plaympeg plaympeg.o .libs/libsmpeg.so -L/usr/lib -lSDL -lpthread -lm -lSDL -lpthread -lm -lSDL -lpthread -lm -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -lm -Wl,--rpath -Wl,/usr/local/lib
.libs/libsmpeg.so: undefined reference to `operator new[](unsigned)'
.libs/libsmpeg.so: undefined reference to `operator delete(void*)'
.libs/libsmpeg.so: undefined reference to `operator delete[](void*)'
.libs/libsmpeg.so: undefined reference to `operator new(unsigned)'
collect2: ld returned 1 exit status
make[1]: *** [plaympeg] Error 1
make[1]: Leaving directory `/root/tuxracer/smpeg-0.4.4'
make: *** [all-recursive] Error 1

I've searched for smpeg here and found nothing, and searched for smpeg and gcc-3.2 combo on google, which threw up a small edit that was supposed to get it working. All the patch was however was a sed command changing gcc to g++ in the makefile. Tried it both with and without the patch with the same error. Anyone have any idea what this is?

smpeg-0.4.4, SDL-1.2.5, SDL_Mixer-1.2.4, gcc-3.2 and kernel 2.4.20.

Thanks
 
Old 02-02-2003, 12:05 PM   #2
Obi Perrin
Member
 
Registered: Nov 2002
Posts: 136

Original Poster
Rep: Reputation: 15
I got bored of smpeg and continued to compile SDL_Mixer and tuxracer regardless. That went fine, but when running tuxracer, it's achingly slow - less than 1 frame per second. The version that comes with Mandrake (on the same comp) runs fine. I've compiled the NVidia drivers, and I know they're starting up because the logo appears when x is loaded...could this be because I left smpeg out?
 
Old 08-24-2004, 12:10 PM   #3
moacirponti
LQ Newbie
 
Registered: Aug 2004
Location: São Carlos / Brazil
Distribution: RedHat 9
Posts: 8

Rep: Reputation: 0
Smpeg still a problem?

Hi!
I've got the same errors.
Have you found the solution?
Moacir.
 
Old 08-24-2004, 03:06 PM   #4
madluther
Member
 
Registered: Aug 2004
Distribution: LFS
Posts: 350

Rep: Reputation: 31
Edit the libsmpeg.la file and add -lstdc++ to the dependency_libs line

mine changed from this

Code:
dependency_libs=' -L/usr/lib -lSDL -lpthread -lm -lSDL -lpthread -lm -lSDL -lpthread -lm'
to this

Code:
dependency_libs=' -L/usr/lib -lSDL -lpthread -lm -lSDL -lpthread -lm -lSDL -lpthread -lm -lstdc++'
then simply re-run make

HTH.

Regards Mad
 
  


Reply



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
module compile failure hqking Linux - General 1 09-02-2005 04:53 PM
module compile failure hqking Linux - Wireless Networking 8 08-19-2005 04:22 AM
Can't get smpeg to compile on gentoo ClubNinja Linux - Software 1 08-25-2004 08:50 AM
Kernel 2.6.3-rc2 compile error/Failure- Any Ideas? wrc1944 Linux - General 2 02-15-2004 03:38 PM
Chapter 5, GCC pass 1: compile failure Electrode Linux From Scratch 0 08-16-2003 07:31 PM

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

All times are GMT -5. The time now is 11:59 PM.

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