sin() and cos() undefined

Steven M. Schultz sms at 2BSD.COM
Tue Dec 11 18:16:39 CET 2001


Hi!

	I see the problem of the missing -I/usr/X11R6/include was fixed
	overnight - so now the plugins/x11 directory builds without error.
	Fantastic!

	It seems that the math library ("-lm") is not being added to the
	final link stage:

gcc -finline-limit-30000 -DSYS_BSDI -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98  -DLOCALEDIR=\"/usr/local/share/locale\"   -Iinclude -Iextras -Wall -Winline -pipe -D_REENTRANT -D_GNU_SOURCE -pthread -O3 -ffast-math -funroll-loops -fomit-frame-pointer -mcpu=pentiumpro -o vlc src/interface/main.o src/interface/interface.o src/interface/intf_msg.o src/interface/intf_playlist.o src/input/input.o src/input/input_ext-dec.o src/input/input_ext-intf.o src/input/input_dec.o src/input/input_programs.o src/input/input_netlist.o src/input/input_clock.o src/input/mpeg_system.o src/video_output/video_output.o src/video_output/video_text.o src/video_output/vout_pictures.o src/video_output/vout_subpictures.o src/audio_output/audio_output.o src/audio_output/aout_ext-dec.o src/audio_output/aout_u8.o src/audio_output/aout_s8.o src/audio_output/aout_u16.o src/audio_output/aout_s16.o src/audio_output/aout_spdif.o src/misc/mtime.o src/misc/tests.o src/misc/modules.o src/misc/netutils.o src/misc/iso_lan!
g.o extras/GNUgetopt/getopt.o extr
as/GNUgetopt/getopt1.o     plugins/mpeg_es.a plugins/mpeg_ps.a plugins/mpeg_ts.a plugins/memcpy.a plugins/idct.a plugins/idctclassic.a plugins/motion.a plugins/imdct.a plugins/downmix.a plugins/mpeg_adec.a plugins/lpcm_adec.a plugins/ac3_adec.a plugins/mpeg_vdec.a plugins/memcpymmx.a plugins/idctmmx.a plugins/motionmmx.a plugins/memcpymmxext.a plugins/idctmmxext.a plugins/motionmmxext.a plugins/memcpy3dn.a plugins/imdct3dn.a plugins/downmix3dn.a plugins/imdctsse.a plugins/downmixsse.a plugins/dvd.a plugins/vcd.a plugins/dummy.a plugins/null.a plugins/rc.a plugins/xvideo.a $LIB_MPEG_ES $LIB_MPEG_PS $LIB_MPEG_TS $LIB_MEMCPY $LIB_IDCT $LIB_IDCTCLASSIC $LIB_MOTION $LIB_IMDCT $LIB_DOWNMIX $LIB_MPEG_ADEC $LIB_LPCM_ADEC $LIB_AC3_ADEC $LIB_MPEG_VDEC $LIB_MEMCPYMMX $LIB_IDCTMMX $LIB_MOTIONMMX $LIB_MEMCPYMMXEXT $LIB_IDCTMMXEXT $LIB_MOTIONMMXEXT $LIB_MEMCPY3DN $LIB_IMDCT3DN $LIB_DOWNMIX3DN $LIB_IMDCTSSE $LIB_DOWNMIXSSE $LIB_DVD $LIB_VCD $LIB_DUMMY $LIB_NULL $LIB_RC $LIB_XVIDEO -ldl  -W!
all
plugins/imdct.a(BUILTIN_IMDCT_ac3_imdct_c.o): In function `module_imdct_imdct_init':
BUILTIN_IMDCT_ac3_imdct_c.o(.text+0x86b): undefined reference to `cos'
BUILTIN_IMDCT_ac3_imdct_c.o(.text+0x891): undefined reference to `sin'
BUILTIN_IMDCT_ac3_imdct_c.o(.text+0x8c5): undefined reference to `cos'
BUILTIN_IMDCT_ac3_imdct_c.o(.text+0x8e4): undefined reference to `sin'
BUILTIN_IMDCT_ac3_imdct_c.o(.text+0x918): undefined reference to `cos'
BUILTIN_IMDCT_ac3_imdct_c.o(.text+0x937): undefined reference to `sin'
BUILTIN_IMDCT_ac3_imdct_c.o(.text+0x96b): undefined reference to `cos'
BUILTIN_IMDCT_ac3_imdct_c.o(.text+0x98a): undefined reference to `sin'
plugins/ac3_adec.a(BUILTIN_ac3_imdct.o): In function `imdct_init':
BUILTIN_ac3_imdct.o(.text+0xbeb): undefined reference to `cos'
BUILTIN_ac3_imdct.o(.text+0xc11): undefined reference to `sin'
BUILTIN_ac3_imdct.o(.text+0xc45): undefined reference to `cos'
BUILTIN_ac3_imdct.o(.text+0xc64): undefined reference to `sin'
BUILTIN_ac3_imdct.o(.text+0xc98): undefined reference to `cos'
BUILTIN_ac3_imdct.o(.text+0xcb7): undefined reference to `sin'
BUILTIN_ac3_imdct.o(.text+0xceb): undefined reference to `cos'
BUILTIN_ac3_imdct.o(.text+0xd0a): undefined reference to `sin'
plugins/imdct3dn.a(BUILTIN_IMDCT3DN_ac3_imdct_3dn.o): In function `module_imdct3dn_imdct_init':
BUILTIN_IMDCT3DN_ac3_imdct_3dn.o(.text+0x2e): undefined reference to `cos'
BUILTIN_IMDCT3DN_ac3_imdct_3dn.o(.text+0x5a): undefined reference to `sin'
BUILTIN_IMDCT3DN_ac3_imdct_3dn.o(.text+0xbf): undefined reference to `cos'
BUILTIN_IMDCT3DN_ac3_imdct_3dn.o(.text+0xe4): undefined reference to `sin'
plugins/imdctsse.a(BUILTIN_IMDCTSSE_ac3_imdct_sse.o): In function `module_imdctsse_imdct_init':
BUILTIN_IMDCTSSE_ac3_imdct_sse.o(.text+0x2e): undefined reference to `cos'
BUILTIN_IMDCTSSE_ac3_imdct_sse.o(.text+0x5a): undefined reference to `sin'
BUILTIN_IMDCTSSE_ac3_imdct_sse.o(.text+0xbf): undefined reference to `cos'
BUILTIN_IMDCTSSE_ac3_imdct_sse.o(.text+0xe4): undefined reference to `sin'
gmake: *** [vlc] Error 1

	I see that ./configure carefully checks for '-lm' but somehow
	the math library doesn't make it into Makefile

	Steven Schultz
	sms at 2bsd.com




More information about the vlc mailing list