Problem in compiling SDL_mixer 1.2.6?

Hi, all:

I downloaded SDL_mixer-1.2.6.tar.gz, and want to compile it in my FreeBSD 5.3 (for i386) machine.

Before this, smpeg-0.4.4.tar.gz has been installed successfully. But still, an error about smpeg pops up in the configuring process:

*** Could not run SMPEG test program, checking why…
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means SMPEG was incorrectly installed
*** or that you have moved SMPEG since it was installed. In the latter case, you
*** may want to edit the smpeg-config script: /usr/local/bin/smpeg-config

The related part in config.log is:

configure:20217: checking for smpeg-config
configure:20235: found /usr/local/bin/smpeg-config
configure:20248: result: /usr/local/bin/smpeg-config
configure:20256: checking for SMPEG - version >= 0.4.3
configure:20346: gcc -o conftest -g -O2 -I/usr/local/include/SDL -D_REENTRANT -D_THREAD_SAFE -DUSE_RWOPS -DCMD_MUSIC -DWAV_MUSIC -DMID_MUSIC -DUSE_TIMIDITY_MIDI -I$(top_srcdir)/timidity -I/usr/local/include -I/usr/local/include/smpeg -I/usr/local/include/SDL -D_REENTRANT -D_THREAD_SAFE -I/usr/local/include/SDL -D_REENTRANT -D_THREAD_SAFE -I/usr/local/include -L/usr/local/lib conftest.c -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lsmpeg -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL -pthread -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL -pthread >&5
/usr/local/lib/libsmpeg.so: undefined reference to operator new[](unsigned int)' /usr/local/lib/libsmpeg.so: undefined reference tooperator delete(void*)’
/usr/local/lib/libsmpeg.so: undefined reference to __cxa_pure_virtual' /usr/local/lib/libsmpeg.so: undefined reference tooperator delete
/usr/local/lib/libsmpeg.so: undefined reference to `operator new(unsigned int)'
configure:20349: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h. */

I have come across this similar error in compiling smpeg-0.4.4.tar.gz, but it is overcomed by adding “-lstdc++” at the end of the line starting with “dependency_libs=” in the file “libsmpeg.la”. I don’t know why this kind of thing pops up again. :frowning:

Any suggestions?

thanks,

Regards,
Xu Qiang

Dnia pi?tek, 6 maja 2005 11:31, Xu Qiang napisa?:

I have come across this similar error in compiling smpeg-0.4.4.tar.gz, but
it is overcomed by adding “-lstdc++”

Have you tried making a similar change again? Adding -lstdc++ in the right
place of the Makefile should help. You can also (I think!) disable smpeg
testing by passing some option to the ‘configure’ script (
’./configure --help’ will give you the answer).–
Tomasz Olszewski

Have you tried making a similar change again? Adding -lstdc++ in the right
place of the Makefile should help.

Actually, just link with g++ and not gcc.

–ryan.

Tomasz Olszewski wrote:

Have you tried making a similar change again? Adding -lstdc++ in the
right place of the Makefile should help. You can also (I think!)
disable smpeg testing by passing some option to the 'configure’
script ( ‘./configure --help’ will give you the answer).

Yes, later I solved the problem by add “-lstdc++” into the file “smpeg-config”, just as this post said:
http://linuxfromscratch.org/pipermail/blfs-support/2003-March/038115.html

Regards,
Xu Qiang