Perl_Love has asked for the wisdom of the Perl Monks concerning the following question:

[root@localhost /]# lsb_release -a LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1- +noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:langu +ages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch Distributor ID: CentOS Description: CentOS Linux release 7.2.1511 (Core) Release: 7.2.1511 Codename: Core [root@localhost /]# perl -V Summary of my perl5 (revision 5 version 16 subversion 3) configuration +: Platform: osname=linux, osvers=2.6.32-220.17.1.el6.x86_64, archname=x86_64-l +inux-thread-multi uname='linux worker1.bsys.centos.org 2.6.32-220.17.1.el6.x86_64 #1 + smp wed may 16 00:01:37 bst 2012 x86_64 x86_64 x86_64 gnulinux ' config_args='-des -Doptimize=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOU +RCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 + -grecord-gcc-switches -m64 -mtune=generic -Dccdlflags=-Wl,--enable +-new-dtags -Dlddlflags=-shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOUR +CE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 +-grecord-gcc-switches -m64 -mtune=generic -Wl,-z,relro -DDEBUGGING +=-g -Dversion=5.16.3 -Dmyhostname=localhost -Dperladmin=root@localhos +t -Dcc=gcc -Dcf_by=Red Hat, Inc. -Dprefix=/usr -Dvendorprefix=/usr -D +siteprefix=/usr/local -Dsitelib=/usr/local/share/perl5 -Dsitearch=/us +r/local/lib64/perl5 -Dprivlib=/usr/share/perl5 -Dvendorlib=/usr/share +/perl5/vendor_perl -Darchlib=/usr/lib64/perl5 -Dvendorarch=/usr/lib64 +/perl5/vendor_perl -Darchname=x86_64-linux-thread-multi -Dlibpth=/usr +/local/lib64 /lib64 /usr/lib64 -Duseshrplib -Dusethreads -Duseithread +s -Dusedtrace=/usr/bin/dtrace -Duselargefiles -Dd_semctl_semun -Di_db + -Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm -Duseperlio -D +installusrbinperl=n -Ubincompat5005 -Uversiononly -Dpager=/usr/bin/le +ss -isr -Dd_gethostent_r_proto -Ud_endhostent_r_proto -Ud_sethostent_ +r_proto -Ud_endprotoent_r_proto -Ud_setprotoent_r_proto -Ud_endserven +t_r_proto -Ud_setservent_r_proto -Dscriptdir=/usr/bin -Dusesitecustom +ize' hint=recommended, useposix=true, d_sigaction=define useithreads=define, usemultiplicity=define useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=und +ef use64bitint=define, use64bitall=define, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasin +g -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D +_FILE_OFFSET_BITS=64', optimize='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions +-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switc +hes -m64 -mtune=generic', cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -f +stack-protector -I/usr/local/include' ccversion='', gccversion='4.8.5 20150623 (Red Hat 4.8.5-4)', gccos +andvers='' intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=1 +6 ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', + lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='gcc', ldflags =' -fstack-protector' libpth=/usr/local/lib64 /lib64 /usr/lib64 libs=-lresolv -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread +-lc -lgdbm_compat perllibs=-lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc libc=, so=so, useshrplib=true, libperl=libperl.so gnulibc_version='2.17' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,--en +able-new-dtags -Wl,-rpath,/usr/lib64/perl5/CORE' cccdlflags='-fPIC', lddlflags='-shared -O2 -g -pipe -Wall -Wp,-D_F +ORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buf +fer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wl,-z,relro ' Characteristics of this binary (from libperl): Compile-time options: HAS_TIMES MULTIPLICITY PERLIO_LAYERS PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP PERL_PRESERVE_IVUV USE_64_BIT +_ALL USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF USE_REENTRANT_API USE_SITECUSTOMIZE Locally applied patches: Fedora Patch1: Removes date check, Fedora/RHEL specific Fedora Patch3: support for libdir64 Fedora Patch4: use libresolv instead of libbind Fedora Patch5: USE_MM_LD_RUN_PATH Fedora Patch6: Skip hostname tests, due to builders not being netw +ork capable Fedora Patch7: Dont run one io test due to random builder failures Fedora Patch9: Fix find2perl to translate ? glob properly (RT#1130 +54) Fedora Patch10: Fix broken atof (RT#109318) Fedora Patch13: Clear $@ before "do" I/O error (RT#113730) Fedora Patch14: Do not truncate syscall() return value to 32 bits +(RT#113980) Fedora Patch15: Override the Pod::Simple::parse_file (CPANRT#77530 +) Fedora Patch16: Do not leak with attribute on my variable (RT#1147 +64) Fedora Patch17: Allow operator after numeric keyword argument (RT# +105924) Fedora Patch18: Extend stack in File::Glob::glob, (RT#114984) Fedora Patch19: Do not crash when vivifying $| Fedora Patch20: Fix misparsing of maketext strings (CVE-2012-6329) Fedora Patch21: Add NAME headings to CPAN modules (CPANRT#73396) Fedora Patch22: Fix leaking tied hashes (RT#107000) [1] Fedora Patch23: Fix leaking tied hashes (RT#107000) [2] Fedora Patch24: Fix leaking tied hashes (RT#107000) [3] Fedora Patch25: Fix dead lock in PerlIO after fork from thread (RT +#106212) Fedora Patch26: Make regexp safe in a signal handler (RT#114878) Fedora Patch27: Update h2ph(1) documentation (RT#117647) Fedora Patch28: Update pod2html(1) documentation (RT#117623) Fedora Patch29: Document Math::BigInt::CalcEmu requires Math::BigI +nt (CPAN RT#85015) RHEL Patch30: Use stronger algorithm needed for FIPS in t/op/crypt +.t (RT#121591) RHEL Patch31: Make *DBM_File desctructors thread-safe (RT#61912) RHEL Patch32: Use stronger algorithm needed for FIPS in t/op/taint +.t (RT#123338) RHEL Patch33: Remove CPU-speed-sensitive test in Benchmark test Built under linux Compiled at Nov 20 2015 03:29:53 %ENV: PERL5LIB="/root/perl5/lib/perl5:" PERL_LOCAL_LIB_ROOT=":/root/perl5" PERL_MB_OPT="--install_base /root/perl5" PERL_MM_OPT="INSTALL_BASE=/root/perl5" @INC: /root/perl5/lib/perl5/x86_64-linux-thread-multi /root/perl5/lib/perl5 /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . [root@localhost Net--RabbitMQ-0.2.8]# perl Makefile.PL Writing Makefile for Net::RabbitMQ Writing MYMETA.yml and MYMETA.json [root@localhost Net--RabbitMQ-0.2.8]# make Skip blib/lib/Net/RabbitMQ.pm (unchanged) Skip blib/lib/Net/._RabbitMQ.pm (unchanged) gcc -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack +-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BI +TS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack +-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m6 +4 -mtune=generic -DVERSION=\"0.2.8\" -DXS_VERSION=\"0.2.8\" -fPIC " +-I/usr/lib64/perl5/CORE" RabbitMQ.c RabbitMQ.xs: In function ‘internal_recv’: RabbitMQ.xs:185:11: warning: unused variable ‘val’ [-Wunused-variable] SV *val; ^ RabbitMQ.xs: In function ‘hash_to_amqp_table’: RabbitMQ.xs:252:3: warning: implicit declaration of function ‘amqp_cre +ate_table’ [-Wimplicit-function-declaration] amqp_create_table(conn, table, HvKEYS(hash)); ^ RabbitMQ.xs:263:7: warning: implicit declaration of function ‘amqp_tab +le_add_string’ [-Wimplicit-function-declaration] amqp_table_add_string(conn, table, amqp_cstring_bytes(key), amq +p_cstring_bytes(SvPV_nolen(value))); ^ RabbitMQ.xs:265:7: warning: implicit declaration of function ‘amqp_tab +le_add_int’ [-Wimplicit-function-declaration] amqp_table_add_int(conn, table, amqp_cstring_bytes(key), (uint6 +4_t) SvIV(value)); ^ RabbitMQ.c: In function ‘XS_Net__RabbitMQ_exchange_declare’: RabbitMQ.c:605:7: warning: variable ‘args’ set but not used [-Wunused- +but-set-variable] HV * args; ^ RabbitMQ.xs: In function ‘XS_Net__RabbitMQ_ack’: RabbitMQ.xs:527:7: warning: pointer targets in assignment differ in si +gnedness [-Wpointer-sign] l = SvPV(delivery_tag, len); ^ RabbitMQ.xs: In function ‘XS_Net__RabbitMQ_reject’: RabbitMQ.xs:545:6: warning: pointer targets in assignment differ in si +gnedness [-Wpointer-sign] l = SvPV(delivery_tag, len); ^ RabbitMQ.c: In function ‘XS_Net__RabbitMQ__publish’: RabbitMQ.xs:575:11: warning: unused variable ‘exchange’ [-Wunused-vari +able] char *exchange = "amq.direct"; ^ RabbitMQ.c: In function ‘XS_Net__RabbitMQ_new’: RabbitMQ.c:1510:9: warning: unused variable ‘clazz’ [-Wunused-variable +] char * clazz = (char *)SvPV_nolen(ST(0)) ^ RabbitMQ.c: In function ‘XS_Net__RabbitMQ_tx_select’: RabbitMQ.c:1636:7: warning: variable ‘args’ set but not used [-Wunused +-but-set-variable] HV * args; ^ RabbitMQ.c: In function ‘XS_Net__RabbitMQ_tx_commit’: RabbitMQ.c:1689:7: warning: variable ‘args’ set but not used [-Wunused +-but-set-variable] HV * args; ^ RabbitMQ.c: In function ‘XS_Net__RabbitMQ_tx_rollback’: RabbitMQ.c:1742:7: warning: variable ‘args’ set but not used [-Wunused +-but-set-variable] HV * args; ^ gcc -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack +-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BI +TS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack +-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m6 +4 -mtune=generic -DVERSION=\"0.2.8\" -DXS_VERSION=\"0.2.8\" -fPIC " +-I/usr/lib64/perl5/CORE" amqp_api.c gcc -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack +-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BI +TS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack +-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m6 +4 -mtune=generic -DVERSION=\"0.2.8\" -DXS_VERSION=\"0.2.8\" -fPIC " +-I/usr/lib64/perl5/CORE" amqp_connection.c gcc -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack +-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BI +TS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack +-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m6 +4 -mtune=generic -DVERSION=\"0.2.8\" -DXS_VERSION=\"0.2.8\" -fPIC " +-I/usr/lib64/perl5/CORE" amqp_debug.c gcc -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack +-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BI +TS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack +-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m6 +4 -mtune=generic -DVERSION=\"0.2.8\" -DXS_VERSION=\"0.2.8\" -fPIC " +-I/usr/lib64/perl5/CORE" amqp_framing.c gcc -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack +-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BI +TS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack +-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m6 +4 -mtune=generic -DVERSION=\"0.2.8\" -DXS_VERSION=\"0.2.8\" -fPIC " +-I/usr/lib64/perl5/CORE" amqp_mem.c gcc -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack +-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BI +TS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack +-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m6 +4 -mtune=generic -DVERSION=\"0.2.8\" -DXS_VERSION=\"0.2.8\" -fPIC " +-I/usr/lib64/perl5/CORE" amqp_socket.c gcc -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack +-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BI +TS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack +-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m6 +4 -mtune=generic -DVERSION=\"0.2.8\" -DXS_VERSION=\"0.2.8\" -fPIC " +-I/usr/lib64/perl5/CORE" amqp_table.c Running Mkbootstrap for Net::RabbitMQ () chmod 644 RabbitMQ.bs rm -f blib/arch/auto/Net/RabbitMQ/RabbitMQ.so gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions - +fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switch +es -m64 -mtune=generic -Wl,-z,relro RabbitMQ.o amqp_api.o amqp_conne +ction.o amqp_debug.o amqp_framing.o amqp_mem.o amqp_socket.o amqp_tab +le.o -o blib/arch/auto/Net/RabbitMQ/RabbitMQ.so \ \ chmod 755 blib/arch/auto/Net/RabbitMQ/RabbitMQ.so cp RabbitMQ.bs blib/arch/auto/Net/RabbitMQ/RabbitMQ.bs chmod 644 blib/arch/auto/Net/RabbitMQ/RabbitMQ.bs Manifying blib/man3/Net::RabbitMQ.3pm /usr/bin/perl "-Iblib/arch" "-Iblib/lib" ._Makefile.PL ._Makefile Unrecognized character \x05; marked by <-- HERE after <-- HERE near co +lumn 2 at ._Makefile.PL line 1. make: *** [._Makefile] Error 255 [root@localhost Net--RabbitMQ-0.2.8]#

Replies are listed 'Best First'.
Re: Net::RabbitMQ can't make, help me~ thanks all!
by haukex (Archbishop) on May 24, 2016 at 05:04 UTC

    Hi Perl_Love,

    See this bug report from a little less than a year ago, which suggests the workarounds of either upgrading ExtUtils::MakeMaker, or even simpler doing rm ._* after extracting the archive. The problem appears to be that the module author accidentally included the Mac resource files in the archive.

    Also, a tip: Although including all the detail you did makes for a good bug report, have a look at the <readmore> tags in Markup in the Monastery - shorter posts are generally easier to read (for example, put just the error message in the main body of the post and all the rest of the details inside <readmore>...</readmore> tags).

    Hope this helps,
    -- Hauke D

      Awesome...!! u helped me find solution to a problem broke my head for one whole day. Thanks
Re: Net::RabbitMQ can't make, help me~ thanks all!
by ikegami (Patriarch) on May 26, 2016 at 18:23 UTC
    If this is for a program you're just starting to write, consider using Net::AMQP::RabbitMQ instead of Net::RabbitMQ