When building version 0.9.0 or 0.9.1 of the videolan client application with gcc-4.3.2 or the 20080904 snapshot of version 4.3 I get the following error:
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I../include -I../include -DSYS_LINUX -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -DHAVE_RELEASE -D__LIBVLC__ -I../src/misc -O2 -ffast-math -funroll-loops -mtune=pentium2 -fomit-frame-pointer -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -DMODULE_STRING=\"main\" -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/usr/etc\" -DDATA_PATH=\"/usr/share/vlc\" -DLIBDIR=\"/usr/lib\" -DPLUGIN_PATH=\"/usr/lib/vlc\" -I/usr/X11/include -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -MT libvlccore_la-libvlc-module.lo -MD -MP -MF .deps/libvlccore_la-libvlc-module.Tpo -c libvlc-module.c -fPIC -DPIC -o .libs/libvlccore_la-libvlc-module.o /tmp/ccaXA1Ec.s: Assembler messages: /tmp/ccaXA1Ec.s:2537: Error: symbol `pread64' is already defined make[4]: *** [libvlccore_la-libvlc.lo] Error 1 make[4]: *** Waiting for unfinished jobs.... /tmp/ccWiBHlk.s: Assembler messages: /tmp/ccWiBHlk.s:12905: Error: symbol `pread64' is already defined make[4]: *** [libvlccore_la-libvlc-module.lo] Error 1 Both versions of gcc were configured as follows: $ gcc -v Using built-in specs. Target: i386-pc-linux Configured with: ../configure --prefix=/usr --infodir=/usr/info --mandir=/usr/man --enable-shared --disable-static --with-system-zlib --enable-threads=posix --enable-haifa --enable-languages=c,c++ --enable-long-long --enable-namespaces --enable-multilib --with-gnu-as --with-gnu-ld --with-system-zlib --without-x --disable-werror --disable-checking --enable-__cxa_atexit --disable-nls --without-included-gettext i386-pc-linux Thread model: posix gcc version 4.3.3 20080904 (prerelease) (GCC) The application builds successfully with gcc-4.2.5-20080820 and gcc-3.4.6. It also builds successfully if I omit the -O2 argument. I'll attach the preprocessed file that triggers the problem in a moment or two. -- Summary: Assembler error message when building vlc-0.9.1 Product: gcc Version: 4.3.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: chris2553 at googlemail dot com GCC build triplet: i386-pc-linux GCC host triplet: i386-pc-linux GCC target triplet: i386-pc-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37384