On 05/30/2012 08:31 AM, Marcela Mašláňová wrote:
Hi,
you're lucky I can't even build it.
You didn't posted all necessary informations. For example what exactly
did you run, what is the patch you are using, what is your Perl version,
...
Sorry, I was using the standard build procedure from Fedora Packaging
Guidelines.
I should have removed the patch, that's just confusing things and the
problem exists either way.
I'm using stock Fedora 14 and fully updated Fedora 14, which have 5.12.2
and 5.12.4 respectively,
To build, I create a src rpm from the spec, (i.e.rpmbuild -bs
SPECS/perl-Audio-Ao.spec), then rpmbuild --rebuild --target $(arch)
new.src.rpm
But, this is not a build issue, if you make the package and install
manually e.g.
perl Makefile.PL
make
make test
make install
The problem still exists, which I _now_ suspect to be a C/XS issue or a
libc bug, Audio::Ao has changed in 10 years, so I think this is a subtle
libc bug.
The problem exists with or without PulseAudio installed.
So, to re-iterate the actual problem, this module works on x64, but
segfaults on i686, which (I think) is ruling out an XS bug.
I have posted a "help" mail to the perl-xs list which can be seen here:
http://www.mail-archive.com/perl-xs@xxxxxxxx/msg02518.html
Albert
Marcela
On 05/29/2012 03:29 PM, agraham wrote:
Hi Guys,
I need some help, I'm trying to build Audio-Ao rpm for Fedora 14 (and
up) for i686 arch. (http://search.cpan.org/dist/Audio-Ao/).
Audio::Ao seems to be the only way for perl to interface with libao,
which is why I need this.
It builds and works perfectly on x64, it builds but segfaults on i386 or
i686
dmesg shows:
perl[15948]: segfault at 1 ip 00418526 sp bf9e1664 error 4 in
libc-2.13.so[39b000+183000]
I've installed a new F14(i686) VM and done clean build with the same
results.
Any help would be very much appreciated.
Albert
My spec file (perl-Audio-Ao.spec):
Name: perl-Audio-Ao
Version: 0.01
Release: 1.Fedora
Summary: Audio::Ao - wrapper for the Ao audio library
License: GPLv2+
Group: Development/Libraries
URL: http://search.cpan.org/dist/Audio-Ao/
Source0:
http://search.cpan.org/CPAN/authors/id/D/DB/DBP/Audio-Ao-0.01.tar.gz
#BuildArch: noarch
Patch0: %{name}-fix.patch
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Inline) >= 0.44
BuildRequires: perl-Parse-RecDescent
BuildRequires: libao-devel
Requires: perl(Inline)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`";
echo $version))
%{?perl_default_filter}
%description
Provides access to Libao, "a cross-platform library that allows
programs to output PCM audio data to the native audio devices on a
wide variety of platforms.". Libao currently supports OSS, ESD, ALSA,
Sun audio, and aRts.
%prep
%setup -q -n Audio-Ao-%{version}
%patch0 -p1
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make
#%{?_smp_mflags}
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
#make install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
#
%files
%defattr(-,root,root,-)
%doc Changes README
%{perl_vendorarch}/Audio/Ao.pm
%dir %{perl_vendorarch}/auto/Audio/Ao
%{perl_vendorarch}/auto/Audio/Ao/Ao.bs
%attr(755,root,root) %{perl_vendorarch}/auto/Audio/Ao/Ao.so
%{_mandir}/man3/*
#
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* Tue May 29 2012 me <me@xxxxxxxxxxx> - 0.01-1
-
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel