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 to
operator delete(void*)’
/usr/local/lib/libsmpeg.so: undefined reference to __cxa_pure_virtual' /usr/local/lib/libsmpeg.so: undefined reference to
operator 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.
Any suggestions?
thanks,
Regards,
Xu Qiang