php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9225 Somthing is eating my cflags
Submitted: 2001-02-12 08:43 UTC Modified: 2001-04-10 09:57 UTC
From: wico at cnh dot nl Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.4pl1 OS: linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: wico at cnh dot nl
New email:
PHP Version: OS:

 

 [2001-02-12 08:43 UTC] wico at cnh dot nl
Hiya,

i have these flags for compiling:
CXXFLAGS = CFLAGS= -Os -O6 -march=pentium

when i do:
./configure --with-apache=/usr/src/wico/apache_1.3.17 \
	--with-config-file-path=/usr/local/apache/conf \
	--enable-sigchild	\
	--disable-pear \
	--with-bz2 \
	--with-curl=/usr/local/curl \
	--enable-ftp \
	--with-gd \
	--with-mcrypt=/usr/local/mcrypt \
	--with-mysql=/usr/local/mysql \
	--disable-session \
	--enable-sockets \
	--enable-sysvsem \
	--enable-sysvshm \
	--with-zlib \
	--enable-static &&
make &&
make install

i get this:

Making all in Zend
make[1]: Entering directory `/home/src/wico/php-4.0.4pl1/Zend'
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   -DXML_BYTE_ORDER=12  -Os -O6 -march=pentium -c zend_language_scanner.c
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   -DXML_BYTE_ORDER=12  -Os -O6 -march=pentium -c zend_ini_scanner.c
/bin/sh ../libtool --silent --mode=link gcc  -Os -O6 -march=pentium  -o libZend_c.la   zend_language_scanner.lo zend_ini_scanner.lo
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   -DXML_BYTE_ORDER=12  -Os -O6 -march=pentium -c zend_language_parser.c
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   -DXML_BYTE_ORDER=12  -Os -O6 -march=pentium -c zend_ini_parser.c
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   -DXML_BYTE_ORDER=12  -Os -O6 -march=pentium -c zend_alloc.c
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   -DXML_BYTE_ORDER=12  -Os -O6 -march=pentium -c zend_compile.c
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   -DXML_BYTE_ORDER=12  -Os -O6 -march=pentium -c zend_constants.c
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   -DXML_BYTE_ORDER=12  -Os -O6 -march=pentium -c zend_dynamic_array.c
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main  -DXML_BYTE_ORDER=12 s -O6 -march=pentium  -c ./zend_execute.c
gcc: cannot specify -o with -c or -S and multiple compilations
make[1]: *** [zend_execute.lo] Error 1
make[1]: Leaving directory `/home/src/wico/php-4.0.4pl1/Zend'
make: *** [all-recursive] Error 1

watch this line:
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main  -DXML_BYTE_ORDER=12 s -O6 -march=pentium  -c ./zend_execute.c

changing it to this works:
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main  -DXML_BYTE_ORDER=12 -Os -O6 -march=pentium  -c ./zend_execute.c

Greetz,

Wico



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-11 01:35 UTC] sniper@php.net
I can't reproduce this with latest CVS.

My gcc version:

[root@kossu Zend]# gcc --version
egcs-2.91.66

--Jani

 [2001-04-10 09:57 UTC] sniper@php.net
No feedback. If this happens also with soon to be released PHP 4.0.5, reopen this bug report.

--Jani

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 15:01:30 2025 UTC