LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 09-17-2004, 04:03 PM   #1
secesh
Senior Member
 
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
perl module Audio::MPEG CPAN install


Trying to install Audio::MPEG from cpan, I get the below error. I understand the module requires libraries for lame and mad; i got and built as suggested.

Thank y'all for your generous help.
matt

cpan shell -- CPAN exploration and modules installation (v1.76)
ReadLine support enabled

cpan> install Audio::MPEG
Going to read /root/.cpan/sources/authors/01mailrc.txt.gz
CPAN: Compress::Zlib loaded ok
Going to read /root/.cpan/sources/modules/02packages.details.txt.gz
Database was generated on Fri, 17 Sep 2004 09:05:51 GMT
CPAN: HTTP::Date loaded ok
Going to read /root/.cpan/sources/modules/03modlist.data.gz
Running install for module Audio::MPEG
Running make for P/PT/PTIMOF/Audio-MPEG-0.04.tar.gz
CPAN: Digest::MD5 loaded ok
Checksum for /root/.cpan/sources/authors/id/P/PT/PTIMOF/Audio-MPEG-0.04.tar.gz ok
Scanning cache /root/.cpan/build for sizes
Audio-MPEG-0.04/
Audio-MPEG-0.04/resample.h
Audio-MPEG-0.04/README
Audio-MPEG-0.04/t/
Audio-MPEG-0.04/t/encode.t
Audio-MPEG-0.04/t/wave.t
Audio-MPEG-0.04/t/buffer.t
Audio-MPEG-0.04/t/verify.t
Audio-MPEG-0.04/t/conftest.c
Audio-MPEG-0.04/t/testcase2.mp3
Audio-MPEG-0.04/t/testcase.mp3
Audio-MPEG-0.04/t/base.t
Audio-MPEG-0.04/t/testcase.wav
Audio-MPEG-0.04/encode.h
Audio-MPEG-0.04/audio.h
Audio-MPEG-0.04/MANIFEST
Audio-MPEG-0.04/Changes
Audio-MPEG-0.04/Makefile.PL
Audio-MPEG-0.04/MPEG.xs
Audio-MPEG-0.04/LICENSE
Audio-MPEG-0.04/decode.c
Audio-MPEG-0.04/typemap
Audio-MPEG-0.04/MPEG.pm
Audio-MPEG-0.04/decode.h
Audio-MPEG-0.04/resample.c
Audio-MPEG-0.04/encode.c
Audio-MPEG-0.04/audio.c
Removing previously used /root/.cpan/build/Audio-MPEG-0.04

CPAN.pm: Going to build P/PT/PTIMOF/Audio-MPEG-0.04.tar.gz

Checking if your kit is complete...
Looks good
Writing Makefile for Audio::MPEG
cp MPEG.pm blib/lib/Audio/MPEG.pm
/usr/bin/perl -I/usr/lib/perl/5.6.1 -I/usr/share/perl/5.6.1 /usr/share/perl/5.6.1/ExtUtils/xsubpp -typemap /usr/share/perl/5.6.1/ExtUtils/typemap -typemap typemap MPEG.xs > MPEG.xsc && mv MPEG.xsc MPEG.c
cc -c -DDEBIAN -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"0.04\" -DXS_VERSION=\"0.04\" -fPIC -I/usr/lib/perl/5.6.1/CORE MPEG.c
MPEG.xs: In function `XS_Audio__MPEG__Encode_new':
MPEG.xs:597: warning: assignment from incompatible pointer type
MPEG.xs:612: request for member `num_channels' in something not a structure or union
MPEG.xs:614: request for member `num_channels' in something not a structure or union
MPEG.xs:636: request for member `in_samplerate' in something not a structure or union
MPEG.xs:644: request for member `in_samplerate' in something not a structure or union
MPEG.xs:666: warning: passing arg 1 of `lame_set_out_samplerate' from incompatible pointer type
MPEG.xs:679: warning: passing arg 1 of `lame_set_scale' from incompatible pointer type
MPEG.xs:684: warning: passing arg 1 of `lame_set_quality' from incompatible pointer type
MPEG.xs:693: warning: passing arg 1 of `lame_set_mode' from incompatible pointer type
MPEG.xs:695: warning: passing arg 1 of `lame_set_mode' from incompatible pointer type
MPEG.xs:697: warning: passing arg 1 of `lame_set_mode' from incompatible pointer type
MPEG.xs:708: warning: passing arg 1 of `lame_set_mode_automs' from incompatible pointer type
MPEG.xs:713: request for member `free_format' in something not a structure or union
MPEG.xs:718: request for member `brate' in something not a structure or union
MPEG.xs:723: request for member `compression_ratio' in something not a structure or union
MPEG.xs:725: request for member `brate' in something not a structure or union
MPEG.xs:725: request for member `compression_ratio' in something not a structure or union
MPEG.xs:733: request for member `copyright' in something not a structure or union
MPEG.xs:738: request for member `original' in something not a structure or union
MPEG.xs:743: request for member `error_protection' in something not a structure or union
MPEG.xs:754: request for member `strict_ISO' in something not a structure or union
MPEG.xs:760: request for member `brate' in something not a structure or union
MPEG.xs:760: request for member `compression_ratio' in something not a structure or union
MPEG.xs:766: request for member `VBR' in something not a structure or union
MPEG.xs:768: request for member `VBR' in something not a structure or union
MPEG.xs:770: request for member `VBR' in something not a structure or union
MPEG.xs:772: request for member `VBR' in something not a structure or union
MPEG.xs:774: request for member `VBR' in something not a structure or union
MPEG.xs:784: request for member `VBR_q' in something not a structure or union
MPEG.xs:790: request for member `brate' in something not a structure or union
MPEG.xs:790: request for member `compression_ratio' in something not a structure or union
MPEG.xs:794: request for member `VBR' in something not a structure or union
MPEG.xs:795: request for member `VBR_mean_bitrate_kbps' in something not a structure or union
MPEG.xs:796: request for member `VBR_mean_bitrate_kbps' in something not a structure or union
MPEG.xs:797: request for member `VBR_mean_bitrate_kbps' in something not a structure or union
MPEG.xs:798: request for member `VBR_mean_bitrate_kbps' in something not a structure or union
MPEG.xs:799: request for member `VBR_mean_bitrate_kbps' in something not a structure or union
MPEG.xs:800: request for member `VBR_mean_bitrate_kbps' in something not a structure or union
MPEG.xs:800: request for member `VBR_mean_bitrate_kbps' in something not a structure or union
MPEG.xs:801: request for member `VBR_mean_bitrate_kbps' in something not a structure or union
MPEG.xs:802: request for member `VBR_mean_bitrate_kbps' in something not a structure or union
MPEG.xs:802: request for member `VBR_mean_bitrate_kbps' in something not a structure or union
MPEG.xs:809: request for member `VBR_min_bitrate_kbps' in something not a structure or union
MPEG.xs:812: request for member `VBR_hard_min' in something not a structure or union
MPEG.xs:815: request for member `VBR_max_bitrate_kbps' in something not a structure or union
MPEG.xs:821: request for member `lowpassfreq' in something not a structure or union
MPEG.xs:824: request for member `lowpasswidth' in something not a structure or union
MPEG.xs:827: request for member `lowpassfreq' in something not a structure or union
MPEG.xs:831: request for member `highpassfreq' in something not a structure or union
MPEG.xs:834: request for member `highpasswidth' in something not a structure or union
MPEG.xs:837: request for member `highpassfreq' in something not a structure or union
MPEG.xs:846: warning: passing arg 1 of `lame_init_params' from incompatible pointer type
MPEG.xs: In function `XS_Audio__MPEG__Encode_DESTROY':
MPEG.xs:858: warning: passing arg 1 of `lame_close' from incompatible pointer type
MPEG.xs: In function `XS_Audio__MPEG__Encode_encoder_delay':
MPEG.xs:869: request for member `encoder_delay' in something not a structure or union
MPEG.xs: In function `XS_Audio__MPEG__Encode_encode_float':
MPEG.xs:895: request for member `encoder_delay' in something not a structure or union
MPEG.xs:896: request for member `num_channels' in something not a structure or union
MPEG.xs:897: request for member `encoder_delay' in something not a structure or union
MPEG.xs:898: request for member `encoder_delay' in something not a structure or union
MPEG.xs:904: request for member `num_channels' in something not a structure or union
MPEG.xs: In function `XS_Audio__MPEG__Encode_encode16':
MPEG.xs:930: request for member `encoder_delay' in something not a structure or union
MPEG.xs:931: request for member `num_channels' in something not a structure or union
MPEG.xs:932: request for member `encoder_delay' in something not a structure or union
MPEG.xs:937: request for member `num_channels' in something not a structure or union
MPEG.xs:940: request for member `num_channels' in something not a structure or union
MPEG.xs:940: warning: passing arg 1 of `lame_encode_buffer_interleaved' from incompatible pointer type
MPEG.xs:944: request for member `num_channels' in something not a structure or union
MPEG.xs:944: warning: passing arg 1 of `lame_encode_buffer' from incompatible pointer type
MPEG.xs: In function `XS_Audio__MPEG__Encode_encode_flush':
MPEG.xs:959: warning: passing arg 1 of `lame_encode_flush' from incompatible pointer type
MPEG.xs: In function `XS_Audio__MPEG__Encode_encode_vbr_flush':
MPEG.xs:972: warning: passing arg 1 of `lame_mp3_tags_fid' from incompatible pointer type
make: *** [MPEG.o] Error 1
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible

cpan>
 
Old 08-06-2014, 01:46 PM   #2
RayLutz
LQ Newbie
 
Registered: Aug 2014
Posts: 3

Rep: Reputation: Disabled
I have the same problem

I have the same problem and I wonder if this issue was resolved. THANKS!
 
Old 08-11-2014, 10:17 AM   #3
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 1,920

Rep: Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524
Please check the date and the version number here: http://search.cpan.org/~ptimof/Audio-MPEG-0.04/MPEG.pm
 
Old 08-12-2014, 12:42 AM   #4
RayLutz
LQ Newbie
 
Registered: Aug 2014
Posts: 3

Rep: Reputation: Disabled
Version seems to match... here are the exact error messages...

Hi:
The version looks like it matches the latest described by the documentation. Here are the error messages I get. (Note, MADD and LAME libraries are installed).

Running install for module 'Audio::MPEG'
Checksum for /root/.cpan/sources/authors/id/P/PT/PTIMOF/Audio-MPEG-0.04.tar.gz ok
Use of uninitialized value in scalar assignment at /usr/lib/perl5/5.8.8/CPAN/Distribution.pm line 1838.
Use of uninitialized value in scalar assignment at /usr/lib/perl5/5.8.8/CPAN/Distribution.pm line 1839.
Configuring P/PT/PTIMOF/Audio-MPEG-0.04.tar.gz with Makefile.PL
Use of uninitialized value in scalar assignment at /usr/lib/perl5/5.8.8/CPAN/Distribution.pm line 1859.
Use of uninitialized value in scalar assignment at /usr/lib/perl5/5.8.8/CPAN/Distribution.pm line 1860.
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Audio::MPEG
Writing MYMETA.yml and MYMETA.json
PTIMOF/Audio-MPEG-0.04.tar.gz
/usr/bin/perl5.8.8 Makefile.PL -- OK
Running make for P/PT/PTIMOF/Audio-MPEG-0.04.tar.gz
Use of uninitialized value in scalar assignment at /usr/lib/perl5/5.8.8/CPAN/Distribution.pm line 2138.
cp MPEG.pm blib/lib/Audio/MPEG.pm
/usr/bin/perl5.8.8 /usr/lib/perl5/5.8.8/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.8.8/ExtUtils/typemap -typemap typemap MPEG.xs > MPEG.xsc && mv MPEG.xsc MPEG.c
gcc -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -DVERSION=\"0.04\" -DXS_VERSION=\"0.04\" -fPIC "-I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE" MPEG.c
MPEG.xs: In function ‘XS_Audio__MPEG__Decode_new’:
MPEG.xs:59: error: invalid lvalue in assignment
MPEG.xs: In function ‘XS_Audio__MPEG__Output_new’:
MPEG.xs:354: error: invalid lvalue in assignment
MPEG.xs: In function ‘XS_Audio__MPEG__Encode_new’:
MPEG.xs:597: warning: assignment from incompatible pointer type
MPEG.xs:602: error: invalid lvalue in assignment
MPEG.xs:612: error: request for member ‘num_channels’ in something not a structure or union
MPEG.xs:614: error: request for member ‘num_channels’ in something not a structure or union
MPEG.xs:636: error: request for member ‘in_samplerate’ in something not a structure or union
MPEG.xs:644: error: request for member ‘in_samplerate’ in something not a structure or union
MPEG.xs:666: warning: passing argument 1 of ‘lame_set_out_samplerate’ from incompatible pointer type
MPEG.xs:679: warning: passing argument 1 of ‘lame_set_scale’ from incompatible pointer type
MPEG.xs:684: warning: passing argument 1 of ‘lame_set_quality’ from incompatible pointer type
MPEG.xs:693: warning: passing argument 1 of ‘lame_set_mode’ from incompatible pointer type
MPEG.xs:695: warning: passing argument 1 of ‘lame_set_mode’ from incompatible pointer type
MPEG.xs:697: warning: passing argument 1 of ‘lame_set_mode’ from incompatible pointer type
MPEG.xs:713: error: request for member ‘free_format’ in something not a structure or union
MPEG.xs:718: error: request for member ‘brate’ in something not a structure or union
MPEG.xs:723: error: request for member ‘compression_ratio’ in something not a structure or union
MPEG.xs:725: error: request for member ‘brate’ in something not a structure or union
MPEG.xs:725: error: request for member ‘compression_ratio’ in something not a structure or union
MPEG.xs:733: error: request for member ‘copyright’ in something not a structure or union
MPEG.xs:738: error: request for member ‘original’ in something not a structure or union
MPEG.xs:743: error: request for member ‘error_protection’ in something not a structure or union
MPEG.xs:754: error: request for member ‘strict_ISO’ in something not a structure or union
MPEG.xs:760: error: request for member ‘brate’ in something not a structure or union
MPEG.xs:760: error: request for member ‘compression_ratio’ in something not a structure or union
MPEG.xs:766: error: request for member ‘VBR’ in something not a structure or union
MPEG.xs:768: error: request for member ‘VBR’ in something not a structure or union
MPEG.xs:770: error: request for member ‘VBR’ in something not a structure or union
MPEG.xs:772: error: request for member ‘VBR’ in something not a structure or union
MPEG.xs:774: error: request for member ‘VBR’ in something not a structure or union
MPEG.xs:784: error: request for member ‘VBR_q’ in something not a structure or union
MPEG.xs:790: error: request for member ‘brate’ in something not a structure or union
MPEG.xs:790: error: request for member ‘compression_ratio’ in something not a structure or union
MPEG.xs:794: error: request for member ‘VBR’ in something not a structure or union
MPEG.xs:795: error: request for member ‘VBR_mean_bitrate_kbps’ in something not a structure or union
MPEG.xs:796: error: request for member ‘VBR_mean_bitrate_kbps’ in something not a structure or union
MPEG.xs:797: error: request for member ‘VBR_mean_bitrate_kbps’ in something not a structure or union
MPEG.xs:798: error: request for member ‘VBR_mean_bitrate_kbps’ in something not a structure or union
MPEG.xs:799: error: request for member ‘VBR_mean_bitrate_kbps’ in something not a structure or union
MPEG.xs:800: error: request for member ‘VBR_mean_bitrate_kbps’ in something not a structure or union
MPEG.xs:800: error: request for member ‘VBR_mean_bitrate_kbps’ in something not a structure or union
MPEG.xs:801: error: request for member ‘VBR_mean_bitrate_kbps’ in something not a structure or union
MPEG.xs:802: error: request for member ‘VBR_mean_bitrate_kbps’ in something not a structure or union
MPEG.xs:802: error: request for member ‘VBR_mean_bitrate_kbps’ in something not a structure or union
MPEG.xs:809: error: request for member ‘VBR_min_bitrate_kbps’ in something not a structure or union
MPEG.xs:812: error: request for member ‘VBR_hard_min’ in something not a structure or union
MPEG.xs:815: error: request for member ‘VBR_max_bitrate_kbps’ in something not a structure or union
MPEG.xs:821: error: request for member ‘lowpassfreq’ in something not a structure or union
MPEG.xs:824: error: request for member ‘lowpasswidth’ in something not a structure or union
MPEG.xs:827: error: request for member ‘lowpassfreq’ in something not a structure or union
MPEG.xs:831: error: request for member ‘highpassfreq’ in something not a structure or union
MPEG.xs:834: error: request for member ‘highpasswidth’ in something not a structure or union
MPEG.xs:837: error: request for member ‘highpassfreq’ in something not a structure or union
MPEG.xs:846: warning: passing argument 1 of ‘lame_init_params’ from incompatible pointer type
MPEG.xs: In function ‘XS_Audio__MPEG__Encode_DESTROY’:
MPEG.xs:858: warning: passing argument 1 of ‘lame_close’ from incompatible pointer type
MPEG.xs: In function ‘XS_Audio__MPEG__Encode_encoder_delay’:
MPEG.xs:869: error: request for member ‘encoder_delay’ in something not a structure or union
MPEG.xs: In function ‘XS_Audio__MPEG__Encode_encode_float’:
MPEG.xs:895: error: request for member ‘encoder_delay’ in something not a structure or union
MPEG.xs:896: error: request for member ‘num_channels’ in something not a structure or union
MPEG.xs:897: error: request for member ‘encoder_delay’ in something not a structure or union
MPEG.xs:898: error: request for member ‘encoder_delay’ in something not a structure or union
MPEG.xs:904: error: request for member ‘num_channels’ in something not a structure or union
MPEG.xs: In function ‘XS_Audio__MPEG__Encode_encode16’:
MPEG.xs:930: error: request for member ‘encoder_delay’ in something not a structure or union
MPEG.xs:931: error: request for member ‘num_channels’ in something not a structure or union
MPEG.xs:932: error: request for member ‘encoder_delay’ in something not a structure or union
MPEG.xs:937: error: request for member ‘num_channels’ in something not a structure or union
MPEG.xs:940: error: request for member ‘num_channels’ in something not a structure or union
MPEG.xs:940: warning: passing argument 1 of ‘lame_encode_buffer_interleaved’ from incompatible pointer type
MPEG.xs:944: error: request for member ‘num_channels’ in something not a structure or union
MPEG.xs:944: warning: passing argument 1 of ‘lame_encode_buffer’ from incompatible pointer type
MPEG.xs: In function ‘XS_Audio__MPEG__Encode_encode_flush’:
MPEG.xs:959: warning: passing argument 1 of ‘lame_encode_flush’ from incompatible pointer type
MPEG.xs: In function ‘XS_Audio__MPEG__Encode_encode_vbr_flush’:
MPEG.xs:972: warning: passing argument 1 of ‘lame_mp3_tags_fid’ from incompatible pointer type
make: *** [MPEG.o] Error 1
PTIMOF/Audio-MPEG-0.04.tar.gz
/usr/bin/make -- NOT OK
Failed during this command:
(optional) PTIMOF/Audio-MPEG-0.04.tar.gz : make NO
 
Old 08-12-2014, 04:44 AM   #5
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 1,920

Rep: Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524
It's 2001 and 0.04
Doesn't that ring a bell?
 
Old 08-12-2014, 01:27 PM   #6
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 1,769

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Bug has been open since 2005. CPAN really needs a way to flag dead modules.

https://rt.cpan.org/Public/Bug/Display.html?id=11639
 
Old 08-12-2014, 10:53 PM   #7
RayLutz
LQ Newbie
 
Registered: Aug 2014
Posts: 3

Rep: Reputation: Disabled
Audio::MPEG probably is missing header file.

By the look of the errors, I would guess an include/header file defining structures/typedefs is missing. I will look into it a bit more to see if I can find what the problem is. If anyone has any reflections on this, let me know.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to install Perl module via CPAN Sparky.Watson Linux - Software 1 08-24-2005 09:23 PM
Perl CPAN Problem murphy23 Slackware 4 01-24-2005 08:03 AM
perl module Audio::MPEG CPAN install secesh Linux - Software 0 09-17-2004 02:55 PM
perl CPAN LinFreak! Slackware 3 01-03-2004 09:16 AM
Perl:CPAN problem on startup jester_69 Linux - Software 0 10-04-2003 09:29 PM


All times are GMT -5. The time now is 03:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration