FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux General Discussion

 
 
LinkBack Thread Tools
 
Old 02-07-2012, 07:48 PM
"David C. Rankin"
 
Default Can't rebuild audiofile 3.2 from PKGBUILD?

Guys,

I have almost survived the updates from today, but the last issue I have is
audiofile 3.2->3.3 kills sound in trinity and kills basket-notepads. I am
trying to rebuild from the 3.2 pkgbuild, but the build fails:


/bin/sh ../libtool --tag=CC --mode=link gcc -std=gnu99 -march=i686
-mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4
-D_FORTIFY_SOURCE=2
-Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu -o power power.o
../libaudiofile/libaudiofile.la
libtool: link: gcc -std=gnu99 -march=i686 -mtune=generic -O2 -pipe
-fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wl,-O1
-Wl,--sort-common -Wl,--as-needed -Wl,-z -Wl,relro -Wl,--hash-style=gnu -o
.libs/power power.o ../libaudiofile/.libs/libaudiofile.so

/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

/lib/libm.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[2]: *** [power] Error 1
make[2]: Leaving directory
`/home/david/arch/pkg/abs/audiofile/src/audiofile-0.3.2/examples'

make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/david/arch/pkg/abs/audiofile/src/audiofile-0.3.2'

make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...

I am using the pkgbuild from:
http://projects.archlinux.org/svntogit/packages.git/commit/trunk/PKGBUILD?h=packages/audiofile&id=6d3264d770c3d03c2f987241ae964d9d4eabf e39


I can see the main problem is:

/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


but how do I modify the PKGBUILD to account for this?

Shouldn't audiofile be backwards compatible from 3.3->3.2?

--
David C. Rankin, J.D.,P.E.
 
Old 02-07-2012, 07:53 PM
Jesse Juhani Jaara
 
Default Can't rebuild audiofile 3.2 from PKGBUILD?

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....
 
Old 02-07-2012, 07:58 PM
"David C. Rankin"
 
Default Can't rebuild audiofile 3.2 from PKGBUILD?

On 02/07/2012 02:53 PM, Jesse Juhani Jaara wrote:

These probles can be solved by adding -lm to static Makefile
or

LIBS="-lm" ./configure -blah -blah -blah


Thank you!

--
David C. Rankin, J.D.,P.E.
 
Old 02-07-2012, 07:59 PM
Ionut Biru
 
Default Can't rebuild audiofile 3.2 from PKGBUILD?

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.amower_LDADD = $(LIBAUDIOFILE) -lm
examples/Makefile.inower_LDADD = $(LIBAUDIOFILE) -lm

No idea what does he do in his system

--
IonuČ›
 
Old 02-08-2012, 08:43 PM
"David C. Rankin"
 
Default Can't rebuild audiofile 3.2 from PKGBUILD?

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.amower_LDADD = $(LIBAUDIOFILE) -lm
examples/Makefile.inower_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@./$(DEPDIR)/power.Po@am__quote@



--
David C. Rankin, J.D.,P.E.
 

Thread Tools




All times are GMT. The time now is 02:21 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org