Opened 15 years ago
Closed 15 years ago
#21104 closed defect (worksforme)
perl 5.8.9 build failure -- config.sh line 90 syntax error near unexpected token
Reported by: | Mike.Linda@… | Owned by: | ghosthound |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.8.0 |
Keywords: | Cc: | mlinda66@… | |
Port: | perl5.8 |
Description
Hello MacPorts gurus,
This is on a 15.4" MacBookPro, 2.4 GHz Intel Core 2 Duo, Mac OS X 10.5.8, MacPorts 1.8.0, XCode 3.1.3.
I was installing rdiff-backup, latest version 1.2.8. MacPorts was installing all the dependencies. After it installed about 18 of them, it got to perl-5.8.9 where the error occurred:
[::: trim :::] ---> Fetching perl5.8 ---> Attempting to fetch perl-5.8.9.tar.bz2 from http://www.cpan.org/src/ ---> Verifying checksum(s) for perl5.8 ---> Extracting perl5.8 ---> Applying patches to perl5.8 ---> Configuring perl5.8 ---> Building perl5.8 Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_perl5.8/work/perl-5.8.9" && /usr/bin/make -j2 all " returned error 2 Command output: ./config.sh: line 90: syntax error near unexpected token `(' ./config.sh: line 90: `d_Gconvert='sprintf((b),"%.*g",(n),(x))'' CCCMD = /usr/bin/gcc-4.0 -DPERL_CORE -c -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include -I/opt/local/include -std=c89 -O3 -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels ./config.sh: line 90: syntax error near unexpected token `(' ./config.sh: line 90: `d_Gconvert='sprintf((b),"%.*g",(n),(x))'' opmini.c: In function 'Perl_fold_constants': opmini.c:2119: warning: argument 'o' might be clobbered by 'longjmp' or 'vfork' /usr/bin/gcc-4.0 -L/opt/local/lib -L/usr/local/lib -force_flat_namespace -o miniperl \ `echo gv.o toke.o perly.o op.o pad.o regcomp.o dump.o util.o mg.o reentr.o hv.o av.o perl.o run.o pp_hot.o sv.o pp.o scope.o pp_ctl.o pp_sys.o doop.o doio.o regexec.o utf8.o taint.o deb.o universal.o xsutils.o globals.o perlio.o perlapi.o numeric.o mathoms.o locale.o pp_pack.o pp_sort.o | sed 's/ op.o / /'` \ miniperlmain.o opmini.o -ldl -lm -lutil -lc ./miniperl -w -Ilib -MExporter -e '<?>' || /usr/bin/make minitest ./miniperl -Ilib configpm written lib/Config.pod updated lib/Config.pm updated lib/Config_heavy.pl ./miniperl -Ilib lib/lib_pm.PL Extracting lib.pm (with variable substitutions) ./miniperl minimod.pl > lib/ExtUtils/Miniperl.pm cd lib/unicore && ../../miniperl -I../../lib mktables -w cd x2p; /usr/bin/make s2p ../miniperl -I../lib s2p.PL Extracting s2p (with variable substitutions) Linking s2p to psed. Making x2p stuff You haven't done a "make depend" yet! make[1]: *** [hash.o] Error 1 make: *** [translators] Error 2 make: *** Waiting for unfinished jobs.... touch uni.data Error: The following dependencies failed to build: py25-xattr py25-setuptools python25 tk Xft2 xrender xorg-libX11 autoconf help2man p5-locale-gettext perl5 perl5.8 m4 automake libtool xorg-bigreqsproto xorg-inputproto xorg-kbproto xorg-libXau xorg-libXdmcp xorg-util-macros xorg-xcmiscproto xorg-xextproto xorg-xf86bigfontproto xorg-xtrans xorg-renderproto tcl xorg-libXScrnSaver xorg-libXext xorg-scrnsaverproto subversion apr apr-util cyrus-sasl2 neon serf Error: Status 1 encountered during processing.
Just prior to installing rdiff-backup, I installed md5sha1sum successfully. So at this point only the following ports are present:
The following ports are currently installed: bzip2 @1.0.5_2+darwin (active) db46 @4.6.21_5 (active) expat @2.0.1_0 (active) fontconfig @2.7.2_0+macosx (active) freetype @2.3.9_0+macosx (active) gdbm @1.8.3_1 (active) gettext @0.17_4 (active) gperf @3.0.4_0 (active) libiconv @1.13_0 (active) librsync @0.9.7_1 (active) md5sha1sum @0.9.5_0 (active) ncurses @5.7_0 (active) ncursesw @5.7_0 (active) openssl @0.9.8k_0+darwin (active) pkgconfig @0.23_1 (active) readline @6.0.000_1+darwin (active) sqlite3 @3.6.17_0 (active) xorg-xproto @7.0.15_0 (active) zlib @1.2.3_2 (active)
I've googled around and searched MacPorts for hints of this same problem, but no luck. Yet it seems weird that nobody else would have run into this. So I suspect that my installation is somehow broken. Still, there is nothing custom on this Mac -- everything was installed using defaults.
Any help or insight will be much appreciated!
Attachments (1)
Change History (7)
comment:1 Changed 15 years ago by Mike.Linda@…
Cc: | Mike.Linda@… added |
---|
comment:2 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | config.sh line 90 syntax error near unexpected token removed |
---|---|
Owner: | changed from macports-tickets@… to ricci@… |
I think we need to see the debug output to help with this. Normally MacPorts only shows the last 30 lines of error, and it looks like there was more output than that here. Can you clean the port and try again with the debug switch?
sudo port clean perl5.8 sudo port -d install perl5.8 2>&1 | tee ~/Desktop/perl5.8.txt bzip2 ~/Desktop/perl5.8.txt
Then attach perl5.8.txt.bz2 from your desktop to this ticket.
Changed 15 years ago by Mike.Linda@…
Attachment: | perl5.8.txt.bz2 added |
---|
comment:3 Changed 15 years ago by Mike.Linda@…
perl5.8.txt.bz2 is now attached. I see problems about half-way down in that debug output. Bunch of /sys/* not found.
Thank you so much for such a prompt reply and for looking at this.
--Mike
comment:4 Changed 15 years ago by Mike.Linda@…
Well, I was too hasty. Yes, there are a few sys/* things not found, but there are many sys/* things found too. So that's not it.
Reading the log more carefully, I see this:
::: Checking how to print long doubles... gconvert NOT found. gcvt() found. sprintf() found. I'll use sprintf to convert floats into a string. ::: Creating config.sh... ./config.sh: line 90: syntax error near unexpected token `(' ./config.sh: line 90: `d_Gconvert='sprintf((b),"%.*g",(n),(x))'' :::
So if sprintf() gives trouble, would there be way to make it use gcvt() instead? And if so, how?
I look forward to any suggestions or help. Thanks in advance!
--Mike
comment:5 Changed 15 years ago by mf2k (Frank Schima)
Cc: | Mike.Linda@… removed |
---|---|
Port: | perl5.8 added; perl 5.8.9 removed |
comment:6 Changed 15 years ago by ghosthound
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Cc Me!