#17492 closed defect (invalid)
php5: make: *** No rule to make target `all'. Stop.
Reported by: | forums@… | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.6.0 |
Keywords: | php5 | Cc: | jyrkiwahlstedt, akimd (Akim Demaille) |
Port: | php5 |
Description
I get the following error at the end of trying to update php5.
It goes on to update apr libraries and apache etc but it fails with the following message:
Macintosh:local jeffery$ sudo port -v upgrade php5 ---> Building php5 with target all make: *** No rule to make target `all'. Stop. 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_php5/work/php-5.2.6" && make all " returned error 2 Command output: make: *** No rule to make target `all'. Stop. Warning: the following items did not execute (for php5): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Am I doing something wrong here?
Attachments (1)
Change History (12)
comment:1 Changed 16 years ago by jmroot (Joshua Root)
Cc: | jwa@… added |
---|---|
Owner: | changed from macports-tickets@… to ryandesign@… |
comment:2 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)
Summary: | No rule to make target all → php5: make: *** No rule to make target `all'. Stop. |
---|
Changed 16 years ago by forums@…
comment:3 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)
Your autoconf213 appears to be malfunctioning, based on this part of your log:
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_php5/work/php-5.2.6" && /opt/local/bin/autoconf213' /opt/local/bin/autoconf213: line 153: /__oline__/ { printf "%d:", NR + 1 } { print } : No such file or directory
I note that the autoconf port has dependencies on perl5, m4 and help2man, but the autoconf213 port has no dependencies on anything. That seems fishy. Do you have perl5 (or perl5.8), m4 and help2man installed and active? If not, install and activate them, then rebuild autoconf213, then try installing php5 again. If that works, we may need to add those dependencies to the autoconf213 port.
comment:4 Changed 16 years ago by forums@…
you can close this bug. I re-installed macports from scratch and that seems to have fixed the problem.
comment:5 Changed 16 years ago by mf2k (Frank Schima)
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:6 Changed 16 years ago by akimd (Akim Demaille)
I have the same problem and the bug is that autoconf213 is broken:
: ${AC_MACRODIR=/opt/local/share/autoconf213/autoconf} : ${M4=/opt/local/bin/gm4} : ${AWK=} case "${M4}" in /*) # Handle the case that m4 has moved since we were configured. # It may have been found originally in a build directory. test -f "${M4}" || M4=m4 ;; esac
as you can see, AWK is set to empty, so when autoconf213 tries to run the following AWK program:
# Put the real line numbers into configure to make config.log more helpful. $AWK ' /__oline__/ { printf "%d:", NR + 1 } { print } ' $tmpout | sed ' /__oline__/s/^\([0-9][0-9]*\):\(.*\)__oline__/\2\1/ ' >&4
then it fails.
uninstalling and reinstalling autoconf213 fixes the problem. Yet autoconf213 should check that it has proper values.
comment:7 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)
I wonder why your autoconf213's AWK is empty. I would have thought it would either be gawk, if the gawk port was installed, possibly nawk if the nawk port was installed, or the system's awk otherwise. If you can provide any information on why your AWK is empty that might be helpful. e.g. do you have the gawk or nawk ports installed? What do "which awk
", "which gawk
" and "which nawk
" say on your system?
I did file #17870 for the problem with autoconf213's dependencies. Hopefully resolving that will resolve this as well.
comment:8 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | akim.demaille@… added |
---|
Forgot to Cc you. Please read my comment above.
comment:9 Changed 16 years ago by akimd (Akim Demaille)
I have no idea why AWK was empty. As of today, I have:
$ which -a gawk awk nawk /opt/local/bin/gawk /usr/bin/awk nawk not found
comment:10 Changed 16 years ago by jmroot (Joshua Root)
Blank environment variables could be caused by a bug in Leopard's Tcl, which has been worked around in MacPorts 1.7.0. If you are running an earlier version, try upgrading.
Looks like maybe the configure script failed. Try again from the start with debug mode on so we can see what's actually happening: