# Warnings during EXPAT compilation in 4.3.3RC2

- Thread: https://externals.io/message/3657
- Original archive: https://news-web.php.net/php.internals/3657
- Started by Uwe Schindler on 2003-07-31T11:36:25+00:00
- Messages: 4
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #3657 — Uwe Schindler — 2003-07-31T11:36:25+00:00

URL: https://externals.io/message/3657#3657

Tested today 4.3.3RC2 and got a lot of warning during compilation on 
Solaris 2.9, gcc 2.95:

/bin/sh /pangaea/install/php-4.3.3RC2/libtool --silent --preserve-dup-deps 
--mode=compile /pangaea/install/php-4.3.3RC2/meta_ccld -DBYTEORDER=4321 
-Iext/xml/ -I/pangaea/install/php-4.3.3RC2/ext/xml/ -DPHP_ATOM_INC 
-I/pangaea/install/php-4.3.3RC2/include 
-I/pangaea/install/php-4.3.3RC2/main -I/pangaea/install/php-4.3.3RC2 
-I/pangaea/webserver/plugins/include -I/pangaea/install/php-4.3.3RC2/Zend 
-I/edvs1/edvsoft/SYBASE.1003/sybase/include 
-I/pangaea/install/php-4.3.3RC2/ext/xml/expat  -D_POSIX_PTHREAD_SEMANTICS 
-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT 
-I/pangaea/install/php-4.3.3RC2/TSRM  -g -O2 -pthreads -DZTS  -prefer-pic 
-c /pangaea/install/php-4.3.3RC2/ext/xml/expat/xmlrole.c -o 
ext/xml/expat/xmlrole.lo
In file included from /pangaea/install/php-4.3.3RC2/ext/xml/expat/xmlrole.h:14,
                  from 
/pangaea/install/php-4.3.3RC2/ext/xml/expat/xmlrole.c:16:
/pangaea/install/php-4.3.3RC2/ext/xml/expat/xmltok.h:143: warning: 
`regparm' attribute directive ignored
/pangaea/install/php-4.3.3RC2/ext/xml/expat/xmltok.h:144: warning: 
`regparm' attribute directive ignored
/pangaea/install/php-4.3.3RC2/ext/xml/expat/xmltok.h:149: warning: 
`regparm' attribute directive ignored
/pangaea/install/php-4.3.3RC2/ext/xml/expat/xmltok.h:280: warning: 
`regparm' attribute directive ignored
/pangaea/install/php-4.3.3RC2/ext/xml/expat/xmltok.h:281: warning: 
`regparm' attribute directive ignored
/pangaea/install/php-4.3.3RC2/ext/xml/expat/xmlrole.c:114: warning: 
`regparm' attribute directive ignored
.... <and a lot of more lines looking like that>


Configure:
CC=gcc ./configure --prefix=/pangaea/PHP4 --disable-cli 
--with-nsapi=/pangaea/webserver --with-sybase-ct=$SYBASE 
--without-mysql  --enable-sysvshm --enable-sysvsem --enable-ftp 
--enable-versioning --enable-session --enable-trans-sid --with-zlib

---

## #3669 — Jani Taskinen — 2003-07-31T18:56:00+00:00

URL: https://externals.io/message/3657#3669 · In reply to: #3657

Try compiling this:
    
    http://prdownloads.sourceforge.net/expat/expat-1.95.6.tar.gz?download
    
    You propably get the same warnings?
    (using GCC, with native CC your propably don't get them)
    
    --Jani
    
    



>Tested today 4.3.3RC2 and got a lot of warning during compilation on 
>Solaris 2.9, gcc 2.95:
>
>/bin/sh /pangaea/install/php-4.3.3RC2/libtool --silent --preserve-dup-deps 
>--mode=compile /pangaea/install/php-4.3.3RC2/meta_ccld -DBYTEORDER=4321 
>-Iext/xml/ -I/pangaea/install/php-4.3.3RC2/ext/xml/ -DPHP_ATOM_INC 
>-I/pangaea/install/php-4.3.3RC2/include 
>-I/pangaea/install/php-4.3.3RC2/main -I/pangaea/install/php-4.3.3RC2 
>-I/pangaea/webserver/plugins/include -I/pangaea/install/php-4.3.3RC2/Zend 
>-I/edvs1/edvsoft/SYBASE.1003/sybase/include 
>-I/pangaea/install/php-4.3.3RC2/ext/xml/expat  -D_POSIX_PTHREAD_SEMANTICS 
>-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT 
>-I/pangaea/install/php-4.3.3RC2/TSRM  -g -O2 -pthreads -DZTS  -prefer-pic 
>-c /pangaea/install/php-4.3.3RC2/ext/xml/expat/xmlrole.c -o 
>ext/xml/expat/xmlrole.lo
>In file included from /pangaea/install/php-4.3.3RC2/ext/xml/expat/xmlrole.h:14,
>                  from 
>/pangaea/install/php-4.3.3RC2/ext/xml/expat/xmlrole.c:16:
>/pangaea/install/php-4.3.3RC2/ext/xml/expat/xmltok.h:143: warning: 
>`regparm' attribute directive ignored
>/pangaea/install/php-4.3.3RC2/ext/xml/expat/xmltok.h:144: warning: 
>`regparm' attribute directive ignored
>/pangaea/install/php-4.3.3RC2/ext/xml/expat/xmltok.h:149: warning: 
>`regparm' attribute directive ignored
>/pangaea/install/php-4.3.3RC2/ext/xml/expat/xmltok.h:280: warning: 
>`regparm' attribute directive ignored
>/pangaea/install/php-4.3.3RC2/ext/xml/expat/xmltok.h:281: warning: 
>`regparm' attribute directive ignored
>/pangaea/install/php-4.3.3RC2/ext/xml/expat/xmlrole.c:114: warning: 
>`regparm' attribute directive ignored
>.... <and a lot of more lines looking like that>
>
>
>Configure:
>CC=gcc ./configure --prefix=/pangaea/PHP4 --disable-cli 
>--with-nsapi=/pangaea/webserver --with-sybase-ct=$SYBASE 
>--without-mysql  --enable-sysvshm --enable-sysvsem --enable-ftp 
>--enable-versioning --enable-session --enable-trans-sid --with-zlib

---

## #3676 — Uwe Schindler — 2003-08-01T11:54:20+00:00

URL: https://externals.io/message/3657#3676 · In reply to: #3657

Yes, compiling of EXPAT alone with gcc 2.95 results in the same warnings. 
With Forte 7 compiler it works without warnings. But PHP istself cannot be 
compiled with Forte7, because some configure tests fail with it (for 
example detection of some header files result in errors [fcntl.h]... See an 
older mailing to this list...).

Are these warnings problematic or not?

At 21:56 31.07.2003 +0300, Jani Taskinen wrote:

>     Try compiling this:
>
>     http://prdownloads.sourceforge.net/expat/expat-1.95.6.tar.gz?download
>
>     You propably get the same warnings?
>     (using GCC, with native CC your propably don't get them)
>
>     --Jani
>
>
>
>
>
> > […]
> /pangaea/install/php-4.3.3RC2/ext/xml/expat/xmlrole.h:14,
> > […]

-----
Uwe Schindler
Addr 1: Bamberger Str. 24a, D-96049 Bamberg
Addr 2: Drausnickstr. 153, D-91052 Erlangen
http://www.thetaphi.de - http://www.schindlers-software.de
eMails: uwe@thetaphi.de (private); info@schindlers-software.de (company)
Tel./Fax: +49 700 PCLATEIN (+49 700 72528346)

Schindlers Software - Home of Schindlers PC-LATEIN 3.10
DIE Software zum Lateinlernen!

---

## #3677 — Jani Taskinen — 2003-08-01T12:12:22+00:00

URL: https://externals.io/message/3657#3677 · In reply to: #3676

>Yes, compiling of EXPAT alone with gcc 2.95 results in the same warnings. 
>With Forte 7 compiler it works without warnings. But PHP istself cannot be 
>compiled with Forte7, because some configure tests fail with it (for 
>example detection of some header files result in errors [fcntl.h]... See an 
>older mailing to this list...).

    Could you give the url to that message at news.php.net? 
    I have compiled PHP on Solaris with forte without any problems..
    But it was long ago, something around 4.0.3 - 4.1.0 or so.

>Are these warnings problematic or not?

    If it works..then not? :)
    In any case, report this to the expat people..
    
    --Jani
