this has been happening to me eg. with amiga clib2 like:
/opt/cross_amigaos4/ppc-amigaos/SDK/clib2/lib/libc.a(unistd_getopt.o)(.text+0x0): In function `getopt':
: multiple definition of `getopt'
getopt_long.o(.text+0xc1c):/work/xmp-cli/src/getopt_long.c:481: first defined here
/opt/cross_amigaos4/lib/gcc/ppc-amigaos/4.2.4/../../../../ppc-amigaos/bin/ld: Warning: size of symbol `getopt' changed from 16 in getopt_long.o to 672 in /opt/cross_amigaos4/ppc-amigaos/SDK/clib2/lib/libc.a(unistd_getopt.o)
/opt/cross_amigaos4/ppc-amigaos/SDK/clib2/lib/libc.a(unistd_getopt.o)(.sdata+0x4): multiple definition of `optind'
getopt_long.o(.sdata+0x4):/work/xmp-cli/src/getopt_long.c:133: first defined here
/opt/cross_amigaos4/ppc-amigaos/SDK/clib2/lib/libc.a(unistd_getopt.o)(.sbss+0x0): multiple definition of `optopt'
getopt_long.o(.sdata+0x8):/work/xmp-cli/src/getopt_long.c:126: first defined here
/opt/cross_amigaos4/ppc-amigaos/SDK/clib2/lib/libc.a(unistd_getopt.o)(.sdata+0x0): multiple definition of `opterr'
getopt_long.o(.sdata+0x0):/work/xmp-cli/src/getopt_long.c:126: first defined here
replace outdated getopt.c, getopt.h and getopt1.c with 2-clause BSD
licensed getopt source from OpenBSD, build them only if system libc
does not have getopt_long().
A workaround for sequence changes when using libxmp 4.0.4 or older
was causing memory access violations. Since we currently require
libxmp 4.4, we can safely drop this workaround.
Fixes#21
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
Adds a waveOutReset call before usage of waveOutUnprepareHeader.
This prevents the output buffers from being in use when they are
freed after calling waveOutUnprepareHeader.
Autoconf checks the symbol by doing a "return xmp_version ();" from
main(), and the MorphOS linker fails it with the error message:
The target (xmp_version) of a R_PPC_REL24 relocation is in the wrong section (.sdata)
well, xmp_version is data...