diff options
author | atomlong | 2021-09-09 13:23:44 +0800 |
---|---|---|
committer | atomlong | 2021-09-09 13:39:42 +0800 |
commit | 2e7836a05c48e1da3f46e4f40e793e105959d969 (patch) | |
tree | 8de6539a15af9b69bb25aff46208278d6f77af34 /PKGBUILD | |
parent | c0e62d4edae7decd33884da1e69174c268af0871 (diff) | |
download | aur-mingw-w64-libsmf.tar.gz |
fix building
fix error:
/usr/lib/gcc/i686-w64-mingw32/11.2.0/../../../../i686-w64-mingw32/bin/ld: smfsh-smfsh.o:smfsh.c:(.text+0x13b8): undefined reference to `rpl_malloc'
/usr/lib/gcc/i686-w64-mingw32/11.2.0/../../../../i686-w64-mingw32/bin/ld: smfsh-smfsh.o:smfsh.c:(.text+0x16e4): undefined reference to `rpl_malloc'
/usr/lib/gcc/i686-w64-mingw32/11.2.0/../../../../i686-w64-mingw32/bin/ld: smfsh-smfsh.o:smfsh.c:(.text.startup+0x116): undefined reference to `rpl_malloc'
/usr/lib/gcc/i686-w64-mingw32/11.2.0/../../../../i686-w64-mingw32/bin/ld: ./.libs/libsmf.a(libsmf_la-smf.o):smf.c:(.text+0x151): undefined reference to `rpl_malloc'
/usr/lib/gcc/i686-w64-mingw32/11.2.0/../../../../i686-w64-mingw32/bin/ld: ./.libs/libsmf.a(libsmf_la-smf.o):smf.c:(.text+0x2c1): undefined reference to `rpl_malloc'
/usr/lib/gcc/i686-w64-mingw32/11.2.0/../../../../i686-w64-mingw32/bin/ld: ./.libs/libsmf.a(libsmf_la-smf.o):smf.c:(.text+0x401): more undefined references to `rpl_malloc' follow
/usr/lib/gcc/i686-w64-mingw32/11.2.0/../../../../i686-w64-mingw32/bin/ld: ./.libs/libsmf.a(libsmf_la-smf_load.o):smf_load.c:(.text+0x429): undefined reference to `_imp__ntohl@4'
/usr/lib/gcc/i686-w64-mingw32/11.2.0/../../../../i686-w64-mingw32/bin/ld: ./.libs/libsmf.a(libsmf_la-smf_load.o):smf_load.c:(.text+0x5fb): undefined reference to `rpl_malloc'
/usr/lib/gcc/i686-w64-mingw32/11.2.0/../../../../i686-w64-mingw32/bin/ld: ./.libs/libsmf.a(libsmf_la-smf_load.o):smf_load.c:(.text+0x905): undefined reference to `_imp__ntohl@4'
/usr/lib/gcc/i686-w64-mingw32/11.2.0/../../../../i686-w64-mingw32/bin/ld: ./.libs/libsmf.a(libsmf_la-smf_load.o):smf_load.c:(.text+0x921): undefined reference to `_imp__ntohs@4'
/usr/lib/gcc/i686-w64-mingw32/11.2.0/../../../../i686-w64-mingw32/bin/ld: ./.libs/libsmf.a(libsmf_la-smf_load.o):smf_load.c:(.text+0xbe6): undefined reference to `rpl_malloc'
/usr/lib/gcc/i686-w64-mingw32/11.2.0/../../../../i686-w64-mingw32/bin/ld: ./.libs/libsmf.a(libsmf_la-smf_load.o):smf_load.c:(.text+0xe2d): undefined reference to `rpl_malloc'
/usr/lib/gcc/i686-w64-mingw32/11.2.0/../../../../i686-w64-mingw32/bin/ld: ./.libs/libsmf.a(libsmf_la-smf_load.o):smf_load.c:(.text+0xf14): undefined reference to `rpl_malloc'
/usr/lib/gcc/i686-w64-mingw32/11.2.0/../../../../i686-w64-mingw32/bin/ld: ./.libs/libsmf.a(libsmf_la-smf_load.o):smf_load.c:(.text+0x128b): undefined reference to `rpl_malloc'
/usr/lib/gcc/i686-w64-mingw32/11.2.0/../../../../i686-w64-mingw32/bin/ld: ./.libs/libsmf.a(libsmf_la-smf_save.o):smf_save.c:(.text+0xac): undefined reference to `rpl_realloc'
/usr/lib/gcc/i686-w64-mingw32/11.2.0/../../../../i686-w64-mingw32/bin/ld: ./.libs/libsmf.a(libsmf_la-smf_save.o):smf_save.c:(.text+0x2c1): undefined reference to `rpl_malloc'
/usr/lib/gcc/i686-w64-mingw32/11.2.0/../../../../i686-w64-mingw32/bin/ld: ./.libs/libsmf.a(libsmf_la-smf_save.o):smf_save.c:(.text+0x672): undefined reference to `_imp__htonl@4'
/usr/lib/gcc/i686-w64-mingw32/11.2.0/../../../../i686-w64-mingw32/bin/ld: ./.libs/libsmf.a(libsmf_la-smf_save.o):smf_save.c:(.text+0x68d): undefined reference to `_imp__htons@4'
/usr/lib/gcc/i686-w64-mingw32/11.2.0/../../../../i686-w64-mingw32/bin/ld: ./.libs/libsmf.a(libsmf_la-smf_tempo.o):smf_tempo.c:(.text+0x43d): undefined reference to `rpl_malloc'
/usr/lib/gcc/i686-w64-mingw32/11.2.0/../../../../i686-w64-mingw32/bin/ld: ./.libs/libsmf.a(libsmf_la-smf_tempo.o):smf_tempo.c:(.text+0x4b0): undefined reference to `rpl_malloc'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:310: smfsh.exe] Error 1
make[2]: Leaving directory '/home/runner/work/mingw-w64-libsmf/mingw-w64-libsmf/src/build-i686-w64-mingw32/src'
make[1]: *** [Makefile:292: all-recursive] Error 1
make[1]: Leaving directory '/home/runner/work/mingw-w64-libsmf/mingw-w64-libsmf/src/build-i686-w64-mingw32'
make: *** [Makefile:203: all] Error 2
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -8,7 +8,7 @@ _pkgbase=libsmf pkgname=mingw-w64-libsmf pkgver=1.3 -pkgrel=2 +pkgrel=3 pkgdesc='A BSD-licensed C library for handling SMF ("*.mid") files.' arch=('x86_64') url="https://sourceforge.net/projects/libsmf/" @@ -23,7 +23,14 @@ _architectures=('i686-w64-mingw32' 'x86_64-w64-mingw32') build() { cd "${srcdir}" - + + # fix for undefined reference to `rpl_malloc' + export set ac_cv_func_malloc_0_nonnull=yes + # fix for undefined reference to `rpl_realloc' + export set ac_cv_func_realloc_0_nonnull=yes + # fix for undefined reference to `_imp__ntohl@4' + export LDFLAGS="${LDFLAGS} -lwsock32" + for _arch in "${_architectures[@]}"; do rm -rf build-${_arch} cp -r "${_pkgbase}-${pkgver}" build-${_arch} |