Package Details: mingw-w64-lame 3.100-5

Git Clone URL: https://aur.archlinux.org/mingw-w64-lame.git (read-only, click to copy)
Package Base: mingw-w64-lame
Description: A high quality MPEG Audio Layer III (MP3) encoder (mingw-w64)
Upstream URL: http://lame.sourceforge.net/
Licenses: LGPL
Submitter: kfg
Maintainer: kfg
Last Packager: kfg
Votes: 3
Popularity: 0.000000
First Submitted: 2013-06-15 11:27 (UTC)
Last Updated: 2022-07-25 08:20 (UTC)

Latest Comments

funzilla commented on 2022-07-20 17:13 (UTC) (edited on 2022-07-20 17:14 (UTC) by funzilla)

I got missing symbols:

libtool: link: i686-w64-mingw32-gcc -msse -I/usr/i686-w64-mingw32/include -o lame.exe lame_main.o main.o brhist.o console.o get_audio.o lametime.o parse.o timestatus.o  ../libmp3lam
e/.libs/libmp3lame.a -lcurses                                                                                                                                                        
/usr/lib/gcc/i686-w64-mingw32/12.1.0/../../../../i686-w64-mingw32/bin/ld: console.o:console.c:(.text+0xcb): undefined reference to `tgetstr'
/usr/lib/gcc/i686-w64-mingw32/12.1.0/../../../../i686-w64-mingw32/bin/ld: console.o:console.c:(.text+0x11c): undefined reference to `tgetnum'                                        
/usr/lib/gcc/i686-w64-mingw32/12.1.0/../../../../i686-w64-mingw32/bin/ld: console.o:console.c:(.text+0x177): undefined reference to `tgetent'                                        
collect2: error: ld returned 1 exit status                                                                                                  

It compiled with this patch:

diff --git a/PKGBUILD b/PKGBUILD
index c402249..c8eef66 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -35,7 +35,8 @@ build() {
     CFLAGS="-msse" CPPFLAGS="-msse" $srcdir/lame-$pkgver/configure --prefix=/usr/${_arch} \
                 --host=${_arch} \
                 --enable-nasm \
-                --enable-shared
+                --enable-shared \
+                LIBS=-lncursesw
     make
   done
 }                                                                                               

Might be a me problem. Maybe the libcurses.a file is supposed to be a symlink to libncursesw.a?

rboxeur commented on 2018-03-16 07:55 (UTC)

Following patch fixes issue for "missing langinfo.h"

https://raw.githubusercontent.com/Alexpux/MINGW-packages/master/mingw-w64-lame/0007-revert-posix-code.patch

Can you please add it to this package?

anaconda commented on 2018-02-08 15:22 (UTC) (edited on 2018-02-08 15:28 (UTC) by anaconda)

3.100-3 fails for a different reason on my machine:

x86_64-w64-mingw32-gcc -DHAVE_CONFIG_H  -I. -I/tmp/yaourt-tmp/aur-mingw-w64-lame/src/lame-3.100/frontend -I.. -I/tmp/yaourt-tmp/aur-mingw-w64-lame/src/lame-3.100/libmp3lame -I/tmp/yaourt-tmp/aur-mingw-w64-lame/src/lame-3.100/include -I..  -msse -I/usr/x86_64-w64-mingw32/include  -msse -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/x86_64-w64-mingw32/include   -MT parse.o -MD -MP -MF .deps/parse.Tpo -c -o parse.o /tmp/yaourt-tmp/aur-mingw-w64-lame/src/lame-3.100/frontend/parse.c
x86_64-w64-mingw32-gcc -DHAVE_CONFIG_H  -I. -I/tmp/yaourt-tmp/aur-mingw-w64-lame/src/lame-3.100/frontend -I.. -I/tmp/yaourt-tmp/aur-mingw-w64-lame/src/lame-3.100/libmp3lame -I/tmp/yaourt-tmp/aur-mingw-w64-lame/src/lame-3.100/include -I..  -msse -I/usr/x86_64-w64-mingw32/include  -msse -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/x86_64-w64-mingw32/include   -MT timestatus.o -MD -MP -MF .deps/timestatus.Tpo -c -o timestatus.o /tmp/yaourt-tmp/aur-mingw-w64-lame/src/lame-3.100/frontend/timestatus.c
mv -f .deps/lametime.Tpo .deps/lametime.Po
/tmp/yaourt-tmp/aur-mingw-w64-lame/src/lame-3.100/frontend/parse.c:74:10: fatal error: langinfo.h: No such file or directory
 #include <langinfo.h>
          ^~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:500: parse.o] Error 1
make[2]: *** Waiting for unfinished jobs....
mv -f .deps/main.Tpo .deps/main.Po
mv -f .deps/console.Tpo .deps/console.Po
mv -f .deps/brhist.Tpo .deps/brhist.Po
mv -f .deps/timestatus.Tpo .deps/timestatus.Po
mv -f .deps/lame_main.Tpo .deps/lame_main.Po
mv -f .deps/get_audio.Tpo .deps/get_audio.Po
make[2]: Leaving directory '/tmp/yaourt-tmp/aur-mingw-w64-lame/src/build-x86_64-w64-mingw32/frontend'
make[1]: *** [Makefile:452: all-recursive] Error 1
make[1]: Leaving directory '/tmp/yaourt-tmp/aur-mingw-w64-lame/src/build-x86_64-w64-mingw32'
make: *** [Makefile:381: all] Error 2

Martchus commented on 2018-01-07 19:20 (UTC) (edited on 2018-01-07 19:21 (UTC) by Martchus)

The update to 3.100 does not build for me:

/bin/sh ../libtool  --tag=CC   --mode=compile i686-w64-mingw32-gcc -DHAVE_CONFIG_H  -I. -I/build/mingw-w64-lame/src/lame-3.100/libmp3lame -I.. -I/build/mingw-w64-lame/src/lame-3.100/include -I/build/mingw-w64-lame/src/lame-3.100/libmp3lame -I/build/mingw-w64-lame/src/lame-3.100/mpglib -I..  -msse  -msse -MT mpglib_interface.lo -MD -MP -MF .deps/mpglib_interface.Tpo -c -o mpglib_interface.lo /build/mingw-w64-lame/src/lame-3.100/libmp3lame/mpglib_interface.c
libtool: compile:  i686-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I/build/mingw-w64-lame/src/lame-3.100/libmp3lame -I.. -I/build/mingw-w64-lame/src/lame-3.100/include -I/build/mingw-w64-lame/src/lame-3.100/libmp3lame -I/build/mingw-w64-lame/src/lame-3.100/mpglib -I.. -msse -msse -MT util.lo -MD -MP -MF .deps/util.Tpo -c /build/mingw-w64-lame/src/lame-3.100/libmp3lame/util.c -o util.o >/dev/null 2>&1
libtool: compile:  i686-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I/build/mingw-w64-lame/src/lame-3.100/libmp3lame -I.. -I/build/mingw-w64-lame/src/lame-3.100/include -I/build/mingw-w64-lame/src/lame-3.100/libmp3lame -I/build/mingw-w64-lame/src/lame-3.100/mpglib -I.. -msse -msse -MT version.lo -MD -MP -MF .deps/version.Tpo -c /build/mingw-w64-lame/src/lame-3.100/libmp3lame/version.c  -DDLL_EXPORT -DPIC -o .libs/version.o
libtool: compile:  i686-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I/build/mingw-w64-lame/src/lame-3.100/libmp3lame -I.. -I/build/mingw-w64-lame/src/lame-3.100/include -I/build/mingw-w64-lame/src/lame-3.100/libmp3lame -I/build/mingw-w64-lame/src/lame-3.100/mpglib -I.. -msse -msse -MT mpglib_interface.lo -MD -MP -MF .deps/mpglib_interface.Tpo -c /build/mingw-w64-lame/src/lame-3.100/libmp3lame/mpglib_interface.c  -DDLL_EXPORT -DPIC -o .libs/mpglib_interface.o
mv -f .deps/util.Tpo .deps/util.Plo
libtool: compile:  i686-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I/build/mingw-w64-lame/src/lame-3.100/libmp3lame -I.. -I/build/mingw-w64-lame/src/lame-3.100/include -I/build/mingw-w64-lame/src/lame-3.100/libmp3lame -I/build/mingw-w64-lame/src/lame-3.100/mpglib -I.. -msse -msse -MT vbrquantize.lo -MD -MP -MF .deps/vbrquantize.Tpo -c /build/mingw-w64-lame/src/lame-3.100/libmp3lame/vbrquantize.c -o vbrquantize.o >/dev/null 2>&1
libtool: compile:  i686-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I/build/mingw-w64-lame/src/lame-3.100/libmp3lame -I.. -I/build/mingw-w64-lame/src/lame-3.100/include -I/build/mingw-w64-lame/src/lame-3.100/libmp3lame -I/build/mingw-w64-lame/src/lame-3.100/mpglib -I.. -msse -msse -MT version.lo -MD -MP -MF .deps/version.Tpo -c /build/mingw-w64-lame/src/lame-3.100/libmp3lame/version.c -o version.o >/dev/null 2>&1
libtool: compile:  i686-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I/build/mingw-w64-lame/src/lame-3.100/libmp3lame -I.. -I/build/mingw-w64-lame/src/lame-3.100/include -I/build/mingw-w64-lame/src/lame-3.100/libmp3lame -I/build/mingw-w64-lame/src/lame-3.100/mpglib -I.. -msse -msse -MT mpglib_interface.lo -MD -MP -MF .deps/mpglib_interface.Tpo -c /build/mingw-w64-lame/src/lame-3.100/libmp3lame/mpglib_interface.c -o mpglib_interface.o >/dev/null 2>&1
mv -f .deps/vbrquantize.Tpo .deps/vbrquantize.Plo
mv -f .deps/version.Tpo .deps/version.Plo
mv -f .deps/mpglib_interface.Tpo .deps/mpglib_interface.Plo
/bin/sh ../libtool  --tag=CC   --mode=link i686-w64-mingw32-gcc  -msse -version-info 0:0 -export-symbols /build/mingw-w64-lame/src/lame-3.100/include/libmp3lame.sym -no-undefined  -o libmp3lame.la -rpath /usr/i686-w64-mingw32/lib VbrTag.lo bitstream.lo encoder.lo fft.lo gain_analysis.lo id3tag.lo lame.lo newmdct.lo presets.lo psymodel.lo quantize.lo quantize_pvt.lo reservoir.lo set_get.lo tables.lo takehiro.lo util.lo vbrquantize.lo version.lo mpglib_interface.lo ../libmp3lame/i386/liblameasmroutines.la ../libmp3lame/vector/liblamevectorroutines.la ../mpglib/libmpgdecoder.la -lm
libtool: link: /usr/bin/i686-w64-mingw32-nm -B  .libs/VbrTag.o .libs/bitstream.o .libs/encoder.o .libs/fft.o .libs/gain_analysis.o .libs/id3tag.o .libs/lame.o .libs/newmdct.o .libs/presets.o .libs/psymodel.o .libs/quantize.o .libs/quantize_pvt.o .libs/reservoir.o .libs/set_get.o .libs/tables.o .libs/takehiro.o .libs/util.o .libs/vbrquantize.o .libs/version.o .libs/mpglib_interface.o   ../libmp3lame/i386/.libs/liblameasmroutines.a ../libmp3lame/vector/.libs/liblamevectorroutines.a ../mpglib/.libs/libmpgdecoder.a | sed -n -e 's/^.*[   ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[         ][      ]*_\([_A-Za-z][_A-Za-z0-9]*\)$/\1 _\2 \2/p' | sed '/ __gnu_lto/d' | /usr/bin/sed -e '/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //' | sort | uniq > .libs/libmp3lame.exp
libtool: link: if test DEF = "`/usr/bin/sed -n -e 's/^[  ]*//' -e '/^\(;.*\)*$/d' -e 's/^\(EXPORTS\|LIBRARY\)\([         ].*\)*$/DEF/p' -e q .libs/libmp3lame.def`" ; then cp .libs/libmp3lame.def .libs/libmp3lame-0.dll.def; else echo EXPORTS > .libs/libmp3lame-0.dll.def; cat .libs/libmp3lame.def >> .libs/libmp3lame-0.dll.def; fi
libtool: link:  i686-w64-mingw32-gcc -shared .libs/libmp3lame-0.dll.def  .libs/VbrTag.o .libs/bitstream.o .libs/encoder.o .libs/fft.o .libs/gain_analysis.o .libs/id3tag.o .libs/lame.o .libs/newmdct.o .libs/presets.o .libs/psymodel.o .libs/quantize.o .libs/quantize_pvt.o .libs/reservoir.o .libs/set_get.o .libs/tables.o .libs/takehiro.o .libs/util.o .libs/vbrquantize.o .libs/version.o .libs/mpglib_interface.o  -Wl,--whole-archive ../libmp3lame/i386/.libs/liblameasmroutines.a ../libmp3lame/vector/.libs/liblamevectorroutines.a ../mpglib/.libs/libmpgdecoder.a -Wl,--no-whole-archive   -msse   -o .libs/libmp3lame-0.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/libmp3lame.dll.a
/usr/lib/gcc/i686-w64-mingw32/7.2.0/../../../../i686-w64-mingw32/bin/ld: Cannot export lame_init_old: symbol not defined
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:550: libmp3lame.la] Error 1
make[3]: Leaving directory '/build/mingw-w64-lame/src/build-i686-w64-mingw32/libmp3lame'
make[2]: *** [Makefile:613: all-recursive] Error 1
make[2]: Leaving directory '/build/mingw-w64-lame/src/build-i686-w64-mingw32/libmp3lame'
make[1]: *** [Makefile:452: all-recursive] Error 1
make[1]: Leaving directory '/build/mingw-w64-lame/src/build-i686-w64-mingw32'
make: *** [Makefile:381: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Build failed, check /run/media/files3/chroot/arch-x86_64/martchus/build
==> ERROR: Executing makepkg/makechrootpkg failed.

Seems like the *.def file and the actually present symbols are out-of-sync.

stacktracer commented on 2015-05-31 03:02 (UTC)

The options line: options=('!strip !buildflags !libtool staticlibs') should have quotes around each option, rather than around the whole list: options=('!strip' '!buildflags' '!libtool' 'staticlibs')