Opened 17 years ago
Closed 15 years ago
#12582 closed defect (fixed)
BUG: wml-2.0.9 fails to build
Reported by: | reg-macports.org@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.5.2 |
Keywords: | Cc: | macports@… | |
Port: | wml |
Description
WML <http://thewml.org> fails to build:
Echidna:~ cfaerber$ sudo port install wml ---> Configuring wml Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_wml/work/wml-2.0.9" && ./configure --prefix=/opt/local --with-perl=/opt/local/bin/perl --without-modules --with-cc=/usr/bin/gcc-4.0 " returned error 1 Command output: checking for strcmp... yes checking which modules to compile... none configure: creating ./config.status config.status: creating Makefile config.status: creating intl/Makefile config.status: creating pcre/Makefile config.status: creating lib/Makefile config.status: creating src/Makefile config.status: creating po/Makefile.in config.status: creating modules/Makefile config.status: creating modules/system/Makefile config.status: creating modules/intl/Makefile config.status: creating doc/Makefile config.status: creating tests/Makefile config.status: creating config.h config.status: config.h is unchanged config.status: executing depfiles commands config.status: executing default-1 commands config.status: creating po/POTFILES config.status: creating po/Makefile shtool:echo:Warning: unable to determine terminal sequence for bold mode Now please type make to compile mp4h configure: configuring in wml_backend/p3_eperl configure: running /bin/sh './configure' --prefix=/opt/local '--prefix=/opt/local' '--with-perl=/opt/local/bin/perl' '--without-modules' '--with-cc=/usr/bin/gcc-4.0' 'CFLAGS=-O2' 'CPPFLAGS=-I/opt/local/include' 'LDFLAGS=-L/opt/local/lib' --with-tidy=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_wml/work/wml-2.0.9/wml_aux/tidy/tidy --cache-file=/dev/null --srcdir=. configure: warning: CFLAGS=-O2: invalid host type configure: warning: CPPFLAGS=-I/opt/local/include: invalid host type configure: error: can only configure for one host and one target at a time configure: error: /bin/sh './configure' failed for wml_backend/p3_eperl Error: Status 1 encountered during processing.
System information (MacOS X 10.4.10, German):
Echidna:~ cfaerber$ sudo port version Version: 1.520 Echidna:~ cfaerber$ uname -prsv Darwin 8.10.1 Darwin Kernel Version 8.10.1: Wed May 23 16:33:00 PDT 2007; root:xnu-792.22.5~1/RELEASE_I386 i386 Echidna:~ cfaerber$ sudo port list installed antiword @0.37 textproc/antiword apr @1.2.9 devel/apr apr-util @1.2.8 devel/apr-util bzip2 @1.0.4 archivers/bzip2 db44 @4.4.20 databases/db44 exif @0.6.15 graphics/exif expat @2.0.1 textproc/expat freetype @2.3.5 print/freetype gdbm @1.8.3 databases/gdbm gettext @0.16.1 devel/gettext jpeg @6b graphics/jpeg libexif @0.6.16 graphics/libexif libiconv @1.11 textproc/libiconv ncurses @5.6 devel/ncurses ncursesw @5.6 devel/ncursesw neon @0.26.3 www/neon ocaml @3.10.0 lang/ocaml openssl @0.9.8e devel/openssl pkgconfig @0.22 devel/pkgconfig popt @1.11 devel/popt py-pil @1.1.6 python/py-pil python24 @2.4.4 lang/python24 readline @5.2.001 devel/readline sqlite3 @3.4.2 databases/sqlite3 subversion @1.4.5 devel/subversion unison @2.13.16 net/unison unison @2.13.16 net/unison zlib @1.2.3 archivers/zlib
Attachments (4)
Change History (16)
comment:1 Changed 17 years ago by cssdev
Milestone: | → Port Bugs |
---|
comment:2 follow-up: 3 Changed 17 years ago by macports@…
Changed 17 years ago by macports@…
Attachment: | Portfile-wml.diff added |
---|
WML Portfile patch to blank CFLAGS/CPPFLAGS
comment:3 Changed 16 years ago by guillaume-jean@…
Replying to macports@…:
I found a hack to make it build - blank out CFLAGS/CPPFLAGS. So far there don't appear to be any side effects, though I'm not entirely comfortable with it. (diff attached)
Hi, I used the provided patch under Leopard, but it doesn't help build. Instead, I have a different error during the ./configure of p3_eperl:
configure: warning: CC=/usr/bin/gcc-4.0: invalid host type configure: warning: CPP=/usr/bin/cpp-4.0: invalid host type configure: error: can only configure for one host and one target at a time configure: error: /bin/sh './configure' failed for wml_backend/p3_eperl
Here is some information about my machine:
- Mac OS X 10.5.5 (build 9F33)
- MacPorts version 1.6
- Darwin Kernel Version 9.5.0: Wed Sep 3 11:29:43 PDT 2008; root:xnu-1228.7.58~1/RELEASE_I386 i386
And the list of installed ports:
ImageMagick @6.4.6-0 graphics/ImageMagick Xaw3d @1.5E x11/Xaw3d Xft2 @2.1.13 x11/Xft2 Xft2 @2.1.13 x11/Xft2 aircrack-ng @0.9.3 security/aircrack-ng airport @0.1 net/airport aquaterm @1.0.1 aqua/aquaterm autoconf @2.63 devel/autoconf autoconf @2.63 devel/autoconf automake @1.10.1 devel/automake bash-completion @20060301 sysutils/bash-completion bison @2.4 devel/bison bison @2.4 devel/bison blt @2.4z x11/blt bzip2 @1.0.5 archivers/bzip2 cairo @1.8.4 graphics/cairo cairo @1.8.4 graphics/cairo coreutils @6.12 sysutils/coreutils coreutils @6.12 sysutils/coreutils doxygen @1.5.7 textproc/doxygen doxygen @1.5.7 textproc/doxygen expat @2.0.1 textproc/expat fontconfig @2.6.0 graphics/fontconfig freetype @2.3.7 print/freetype frozenbubble2 @2.1.0 games/frozenbubble2 gd2 @2.0.35 graphics/gd2 gdbm @1.8.3 databases/gdbm gettext @0.17 devel/gettext ghostscript @8.63 print/ghostscript glib2 @2.18.2 devel/glib2 glib2 @2.18.2 devel/glib2 gnuplot @4.2.4 math/gnuplot gnuplot @4.2.4 math/gnuplot gperf @3.0.3 devel/gperf graphviz @2.20.3 graphics/graphviz graphviz @2.20.3 graphics/graphviz help2man @1.36.4 textproc/help2man jasper @1.900.1 graphics/jasper jpeg @6b graphics/jpeg libiconv @1.12 textproc/libiconv libogg @1.1.3 multimedia/libogg libpixman @0.12.0 graphics/libpixman libpixman @0.12.0 graphics/libpixman libpng @1.2.33 graphics/libpng libpng @1.2.33 graphics/libpng librsync @0.9.7 net/librsync libsdl @1.2.13 devel/libsdl libsdl_gfx @2.0.17 devel/libsdl_gfx libsdl_image @1.2.6 devel/libsdl_image libsdl_mixer @1.2.8 audio/libsdl_mixer libsdl_net @1.2.7 devel/libsdl_net libsdl_pango @0.1.2 devel/libsdl_pango libsdl_ttf @2.0.9 devel/libsdl_ttf libtool @1.5.26 devel/libtool libvorbis @1.2.0 audio/libvorbis libxml2 @2.7.2 textproc/libxml2 libxml2 @2.7.2 textproc/libxml2 libxslt @1.1.24 textproc/libxslt libxslt @1.1.24 textproc/libxslt lynx @2.8.6rel.5 www/lynx lzmautils @4.32.7 archivers/lzmautils lzmautils @4.32.7 archivers/lzmautils m4 @1.4.12 devel/m4 m4 @1.4.12 devel/m4 maxima @5.16.3 math/maxima ncurses @5.7 devel/ncurses ncurses @5.7 devel/ncurses ncursesw @5.7 devel/ncursesw ncursesw @5.7 devel/ncursesw netpbm @10.26.57 graphics/netpbm netpbm @10.26.57 graphics/netpbm openssl @0.9.8i devel/openssl p5-archive-tar @1.40 perl/p5-archive-tar p5-compress-raw-zlib @2.015 perl/p5-compress-raw-zlib p5-compress-zlib @2.015 perl/p5-compress-zlib p5-extutils-cbuilder @0.24 perl/p5-extutils-cbuilder p5-extutils-parsexs @2.19 perl/p5-extutils-parsexs p5-io-compress-base @2.015 perl/p5-io-compress-base p5-io-compress-zlib @2.015 perl/p5-io-compress-zlib p5-io-zlib @1.09 perl/p5-io-zlib p5-locale-gettext @1.05 perl/p5-locale-gettext p5-module-build @0.30 perl/p5-module-build p5-sdl_perl @2.1.3 perl/p5-sdl_perl p5-version @0.76 perl/p5-version p5-yaml @0.62 perl/p5-yaml pango @1.22.3 x11/pango pango @1.22.3 x11/pango pdflib @7.0.3 print/pdflib perl5.8 @5.8.8 lang/perl5.8 pkgconfig @0.23 devel/pkgconfig pkgconfig @0.23 devel/pkgconfig popt @1.14 devel/popt python_select @0.1 sysutils/python_select readline @5.2.012 devel/readline recode @3.6 textproc/recode render @0.9.2 x11/render render @0.9.2 x11/render rsync @3.0.4 net/rsync rsync-lart @2.6.6 net/rsync-lart rubber @1.1 tex/rubber sbcl @1.0.22 lang/sbcl smpeg @0.4.4 multimedia/smpeg tcl @8.5.5 lang/tcl tcl @8.5.5 lang/tcl texi2html @1.78 textproc/texi2html texi2html @1.78 textproc/texi2html texinfo @4.13 textproc/texinfo texinfo @4.13 textproc/texinfo texlive @2007 tex/texlive texlive_base @2007 tex/texlive_base texlive_base @2007 tex/texlive_base texlive_texmf-full @2007 tex/texlive_texmf-full texlive_texmf-minimal @2007 tex/texlive_texmf-minimal tiff @3.8.2 graphics/tiff tk @8.5.5 x11/tk tk @8.5.5 x11/tk tk @8.5.5 x11/tk transfig @3.2.5 print/transfig transfig @3.2.5 print/transfig urw-fonts @1.0.7pre44 x11/urw-fonts wxMaxima @0.7.5 math/wxMaxima wxWidgets @2.8.9 graphics/wxWidgets xfig @3.2.5 graphics/xfig xfig @3.2.5 graphics/xfig xorg-renderproto @0.9.3 x11/xorg-renderproto xorg-util-macros @1.1.6 x11/xorg-util-macros xorg-util-macros @1.1.6 x11/xorg-util-macros xorg-xproto @7.0.14 x11/xorg-xproto xorg-xproto @7.0.14 x11/xorg-xproto xrender @0.9.0 x11/xrender xrender @0.9.0 x11/xrender zlib @1.2.3 archivers/zlib
comment:4 Changed 16 years ago by mf2k (Frank Schima)
Port: | wml added |
---|
comment:6 Changed 15 years ago by macports@…
I'm running into this as well on Snow Leopard; was formally using on Tiger.
The wml_backend/p3_eperl/configure option parser is hitting it's default case and trying to treat CC=, CFLAGS= etc. as a host type parameter.
comment:7 Changed 15 years ago by macports@…
Hacking the configure script to get rid of the illegal parameters gets the configure step to run, but now build is failing
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_wml/work/wml-2.0.9" && /usr/bin/make -j2 all CC=/usr/bin/gcc-4.2 CPP=/usr/bin/cpp-4.2 " returned error 2 Command output: eperl_main.c: In function 'give_readme': eperl_main.c:153: warning: format not a string literal and no format arguments eperl_main.c: In function 'give_license': eperl_main.c:158: warning: format not a string literal and no format arguments /usr/bin/gcc-4.2 -O3 -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include -I/opt/local/include -I/opt/local/lib/perl5/5.8.9/darwin-2level/CORE -I. -c eperl_pp.c /usr/bin/gcc-4.2 -O3 -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include -I/opt/local/include -I/opt/local/lib/perl5/5.8.9/darwin-2level/CORE -I. -c eperl_sys.c /usr/bin/gcc-4.2 -O3 -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include -I/opt/local/include -I/opt/local/lib/perl5/5.8.9/darwin-2level/CORE -I. -c eperl_http.c /usr/bin/gcc-4.2 -O3 -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include -I/opt/local/include -I/opt/local/lib/perl5/5.8.9/darwin-2level/CORE -I. -c eperl_getopt.c /usr/bin/gcc-4.2 -O3 -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include -I/opt/local/include -I/opt/local/lib/perl5/5.8.9/darwin-2level/CORE -I. -c eperl_debug.c /usr/bin/gcc-4.2 -O3 -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include -I/opt/local/include -I/opt/local/lib/perl5/5.8.9/darwin-2level/CORE -I. -c eperl_config.c /usr/bin/gcc-4.2 -O3 -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include -I/opt/local/include -I/opt/local/lib/perl5/5.8.9/darwin-2level/CORE -I. -c eperl_version.c /usr/bin/gcc-4.2 -O3 -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include -I/opt/local/include -I/opt/local/lib/perl5/5.8.9/darwin-2level/CORE -I. -c eperl_readme.c /usr/bin/gcc-4.2 -O3 -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include -I/opt/local/include -I/opt/local/lib/perl5/5.8.9/darwin-2level/CORE -I. -c eperl_license.c /usr/bin/gcc-4.2 -O3 -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include -I/opt/local/include -I/opt/local/lib/perl5/5.8.9/darwin-2level/CORE -I. -c eperl_logo.c /usr/bin/gcc-4.2 -O3 -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include -I/opt/local/include -I/opt/local/lib/perl5/5.8.9/darwin-2level/CORE -I. -c eperl_powered.c set -e; \ V=`./etc/shtool version -lc -d long eperl_version.c`; \ pod2man --section=1 \ --center="Ralf S. Engelschall" \ --release="EN" \ eperl.pod |\ sed -e "s|\@V\@|$V|g" -e "s|\@prefix\@|/opt/local|" >eperl.1 /usr/bin/gcc-4.2 -O3 -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include -I/opt/local/include -I/opt/local/lib/perl5/5.8.9/darwin-2level/CORE -I. -c eperl_perl5.c eperl_perl5.c: In function 'Perl5_Run': eperl_perl5.c:215: warning: format not a string literal and no format arguments /usr/bin/gcc-4.2 -L/opt/local/lib -L/usr/local/lib -L/opt/local/lib/perl5/5.8.9/darwin-2level/CORE -o eperl eperl_main.o eperl_perl5.o eperl_parse.o eperl_pp.o eperl_sys.o eperl_http.o eperl_getopt.o eperl_debug.o eperl_config.o eperl_version.o eperl_readme.o eperl_license.o eperl_logo.o eperl_powered.o /opt/local/lib/perl5/5.8.9/darwin-2level/auto/DynaLoader/DynaLoader.a -lperl -ldbm -ldl -lm -lutil -lc i686-apple-darwin10-gcc-4.2.1: /opt/local/lib/perl5/5.8.9/darwin-2level/auto/DynaLoader/DynaLoader.a: No such file or directory make[2]: *** [eperl] Error 1 make[1]: *** [all] Error 1 make: *** [all] Error 1
comment:8 Changed 15 years ago by macports@…
Apparently perl moved the DynaLoader functionality into CORE/libperl.a Related thread: http://www.nntp.perl.org/group/perl.perl5.porters/2007/03/msg122145.html
I don't think I'm going to try and put together clean patches tonight.
Actually I just noticed that there is a 2.0.11, so I may try that first.
comment:10 Changed 15 years ago by macports@…
2.0.11 is mostly changes to the build system, and appears to obviate the need for the existing patches (at least on 10.6) To get it to build, I had to add the same new patches used for 2.0.9, and a build dependency on lynx.
Files attached; the base configure patch shouldn't cause much trouble, but the eperl patch may be 10.6 specific. I'm not sure how to set it up as conditional.
Also, I attempted to run the build with trace, and received an error.
trace: access denied to /opt/local/var/macports/sources/rsync.macports.org/release/ports/archivers/zlib (*unknown*) trace: access denied to /opt/local/var/macports/sources/rsync.macports.org/release/ports/archivers/zlib (*unknown*) trace: access denied to /opt/local/var/macports/sources/rsync.macports.org/release/ports/archivers/zlib (*unknown*) Warning: An activity was attempted outside sandbox: / Warning: An activity was attempted outside sandbox: / Warning: An activity was attempted outside sandbox: / Warning: An activity was attempted outside sandbox: /opt Warning: An activity was attempted outside sandbox: /opt/local/var/macports/sources/rsync.macports.org/release/ports/archivers/zlib/. Error: Target org.macports.extract returned: shell command " cd "/opt/local/var/macports/build/_Users_jlove_files_programming_macports_www_wml/work" && /usr/bin/gzip -dc /opt/local/var/macports/distfiles/wml/wml-2.0.11.tar.gz | /usr/bin/gnutar --no-same-owner -xf - " returned error 1 Command output: shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory sh: line 0: cd: /opt/local/var/macports/build/_Users_jlove_files_programming_macports_www_wml/work: No such file or directory Error: Status 1 encountered during processing.
Changed 15 years ago by macports@…
Attachment: | Portfile-2.0.9-2.0.11.diff added |
---|
WML Portfile patch going from 2.0.9 to 2.0.11
Changed 15 years ago by macports@…
Attachment: | patch-wml_backend-p3_eperl-configure added |
---|
Patchfile for 2.0.11 on 10.6
comment:11 Changed 15 years ago by Sebastien.Varrette@…
I applied successfully the previous patches such that wml 2.0.11 finally compile (thanks ;) )
Btw, I still experiment an issue when using wml over the directive wml::des::space (see http://thewml.org/docs/incl/wml::des::space.html)
$> cat /tmp/toto.wml #use wml::des::space $> wml -v /tmp/toto.wml ePerl:Error: Perl parsing error (interpreter rc=2) ---- Contents of STDERR channel: --------- Can't load '/opt/local/lib/wml/perl/lib/darwin-2level/auto/IO/IO.bundle' for module IO: dlopen(/opt/local/lib/wml/perl/lib/darwin-2level/auto/IO/IO.bundle, 1): Symbol not found: _PL_stack_sp Referenced from: /opt/local/lib/wml/perl/lib/darwin-2level/auto/IO/IO.bundle Expected in: dynamic lookup at /opt/local/lib/wml/perl/lib/darwin-2level/IO/Handle.pm line 241 Compilation failed in require at /opt/local/lib/wml/perl/lib/darwin-2level/IO/Handle.pm line 241. BEGIN failed--compilation aborted at /opt/local/lib/wml/perl/lib/darwin-2level/IO/Handle.pm line 241. Compilation failed in require at /opt/local/lib/wml/perl/lib/darwin-2level/IO/Seekable.pm line 51. BEGIN failed--compilation aborted at /opt/local/lib/wml/perl/lib/darwin-2level/IO/Seekable.pm line 51. Compilation failed in require at /opt/local/lib/wml/perl/lib/darwin-2level/IO/File.pm line 112. BEGIN failed--compilation aborted at /opt/local/lib/wml/perl/lib/darwin-2level/IO/File.pm line 112. Compilation failed in require at /opt/local/lib/perl5/5.8.9/FileHandle.pm line 9. Compilation failed in require at /opt/local/lib/wml/perl/lib/darwin-2level/WML/GD.pm line 7. Compilation failed in require at /var/folders/3M/3MItLWltFye+3EXZkSKRdk+++TI/-Tmp-//wml.54921.tmp1.wml line 184. BEGIN failed--compilation aborted at /var/folders/3M/3MItLWltFye+3EXZkSKRdk+++TI/-Tmp-//wml.54921.tmp1.wml line 184. ------------------------------------------ ** WML:Break: Error in Pass 3 (rc=1).
That's not such a big pb (for the rest of my code, it seems to work) yet it may hide other related issues.
comment:12 Changed 15 years ago by mf2k (Frank Schima)
Resolution: | → fixed |
---|---|
Status: | new → closed |
I found a hack to make it build - blank out CFLAGS/CPPFLAGS. So far there don't appear to be any side effects, though I'm not entirely comfortable with it. (diff attached)