[arch-general] Can't rebuild audiofile 3.2 from PKGBUILD?
David C. Rankin
drankinatty at suddenlinkmail.com
Wed Feb 8 16:43:01 EST 2012
On 02/07/2012 02:59 PM, Ionut Biru wrote:
> On 02/07/2012 10:53 PM, Jesse Juhani Jaara wrote:
>> tiistai, 7. helmikuuta 2012 14:48:23 David C. Rankin kirjoitti:
>>
>>> /usr/bin/ld: power.o: undefined reference to symbol 'log10@@GLIBC_2.0'
>>> /usr/bin/ld: note: 'log10@@GLIBC_2.0' is defined in DSO /lib/libm.so.6 so
>>> try adding it to the linker command line
>> These probles can be solved by adding -lm to static Makefile
>> or
>>
>> LIBS="-lm" ./configure -blah -blah -blah
>>
>> in case of autoconf generated Makefiles...
>> dunno how to do it on cmake projects....
>
> already has such thing.
>
> examples/Makefile.am:power_LDADD = $(LIBAUDIOFILE) -lm
> examples/Makefile.in:power_LDADD = $(LIBAUDIOFILE) -lm
>
> No idea what does he do in his system :)
>
Biru,
I think this must be new in 3.3, because in audiofile '3.2' there is no
such thing. I just downloaded the 3.2 source yesterday with makepkg -s and the
example file content doesn't have the power_LDADD = $(LIBAUDIOFILE) -lm:
14:44 providence:~/arch/pkg/abs/audiofile/src/audiofile-0.3.2> cat
examples/Makefile.am
INCLUDES = -I$(top_srcdir)/libaudiofile
noinst_PROGRAMS = \
adddcoffset \
power \
@TEST_BIN@
EXTRA_PROGRAMS = alsaplay irixread irixtestloop linuxtest osxplay
LIBAUDIOFILE = $(top_builddir)/libaudiofile/libaudiofile.la
alsaplay_SOURCES = alsaplay.cpp
alsaplay_LDADD = $(LIBAUDIOFILE) -lasound
irixread_SOURCES = irixread.c sgi.c sgi.h
irixread_LDADD = $(LIBAUDIOFILE) -laudio
irixtestloop_SOURCES = irixtestloop.c sgi.c sgi.h
irixtestloop_LDADD = $(LIBAUDIOFILE) -laudio
linuxtest_SOURCES = linuxtest.c
osxplay_SOURCES = osxplay.c
osxplay_LDFLAGS = -framework AudioUnit -framework CoreServices
LDADD = $(LIBAUDIOFILE)
DEPENDENCIES = $(LIBAUDIOFILE)
14:44 providence:~/arch/pkg/abs/audiofile/src/audiofile-0.3.2> grep power
examples/Makefile.in
noinst_PROGRAMS = adddcoffset$(EXEEXT) power$(EXEEXT) @TEST_BIN@
power_SOURCES = power.c
power_OBJECTS = power.$(OBJEXT)
power_LDADD = $(LDADD)
power_DEPENDENCIES = $(LIBAUDIOFILE)
$(osxplay_SOURCES) power.c
$(osxplay_SOURCES) power.c
power$(EXEEXT): $(power_OBJECTS) $(power_DEPENDENCIES)
@rm -f power$(EXEEXT)
$(LINK) $(power_OBJECTS) $(power_LDADD) $(LIBS)
@AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/power.Po at am__quote@
--
David C. Rankin, J.D.,P.E.
More information about the arch-general
mailing list