Compiling php on tru64 5.1b

From: Didier Godefroy (ldg@ulysium.net)
Date: Sat Jul 29 2006 - 17:04:50 EDT


It really seems like tru64 is more and more neglected by developers.
I was able to compile php a few years ago without too much trouble, although
a few details always need to be fixed to make it work, it was still possible
to get it done.
But now I can't find one version of it that compiles properly without many
errors. They always break something that used to work before and never fix
it for tru64.

I'm trying to compile 4.4.2 right now and it's giving me errors on header
files that come with tru64 and that most other packages have no trouble
using when compiling them.
How could most packages compile properly using those header files and not
php???

I posted this issue on a php mailing list and got ignored, so I'm thinking
someone else using tru64 came across this and hopefully got a solution.
I even googled on this issue and didn't find anything helpful.

Here's what I get:

/bin/sh /usr/local/apache/src/php-4.4.2/libtool --silent --preserve-dup-deps
--mode=compile /usr/local/apache/src/php-4.4.2/meta_ccld -DNO_SLACK
-I/usr/local/apache/include -DOSF1 -I/usr/local/apache/include
-I/usr/local/apache/include -I/usr/local/BerkeleyDB.4.1/include
-I/usr/local/include -Isapi/apache2handler/
-I/usr/local/apache/src/php-4.4.2/sapi/apache2handler/ -DPHP_ATOM_INC
-I/usr/local/apache/src/php-4.4.2/include
-I/usr/local/apache/src/php-4.4.2/main -I/usr/local/apache/src/php-4.4.2
-I/usr/local/include -I/usr/local/mysql/include
-I/usr/local/apache/src/php-4.4.2/ext/xml/expat
-I/usr/local/apache/src/php-4.4.2/TSRM
-I/usr/local/apache/src/php-4.4.2/Zend -O4 -g3 -ieee -pthread -DZTS -c
/usr/local/apache/src/php-4.4.2/sapi/apache2handler/sapi_apache2.c -o
sapi/apache2handler/sapi_apache2.lo
cc: Error: /usr/include/dlfcn.h, line 59: Missing ";". (nosemi)
extern int dladdr __((void *, Dl_info *));
-------------------------------^
cc: Error: /usr/include/dlfcn.h, line 63: Missing ";". (nosemi)
extern void *dlopen __((const char *, int ));
------------------------^
cc: Error: /usr/include/dlfcn.h, line 64: Missing ";". (nosemi)
extern void *dlsym __((void *, const char *));
-----------------------^
cc: Error: /usr/include/dlfcn.h, line 65: Missing ";". (nosemi)
extern char *dlerror __((void));
-------------------------^
cc: Error: /usr/include/dlfcn.h, line 66: Missing ";". (nosemi)
extern int dlclose __((void *));
-------------------------^
cc: Error: /usr/include/setjmp.h, line 166: Missing ";". (nosemi)
extern void longjmp __((jmp_buf, int));
------------------------^
cc: Error: /usr/include/setjmp.h, line 167: Missing ";". (nosemi)
extern int setjmp __((jmp_buf));
-----------------------^
cc: Error: /usr/include/setjmp.h, line 168: Missing ";". (nosemi)
extern int sigsetjmp __((sigjmp_buf, int));
--------------------------^
cc: Error: /usr/include/setjmp.h, line 169: Missing ";". (nosemi)
extern void siglongjmp __((sigjmp_buf, int));
---------------------------^
cc: Error: /usr/include/setjmp.h, line 170: Missing ";". (nosemi)
extern int _setjmp __((jmp_buf));
------------------------^
cc: Error: /usr/include/setjmp.h, line 171: Missing ";". (nosemi)
extern void _longjmp __((jmp_buf, int));
-------------------------^
cc: Error: /usr/include/time.h, line 220: Missing ";". (nosemi)
extern void tzset __((void));
------------------^
cc: Error: /usr/include/pthread.h, line 973: In this declaration,
"pthreadTeb_t" appears to be used as if it named a type, but there is no
declared type of that name visible. (typedefnotdef)
typedef pthreadTeb_t __pthreadTeb_t;
--------^
cc: Error: /usr/include/pthread.h, line 984: Ill-formed parameter type list.
(parmtyplist)
typedef void __pthreadExtDestructorFunc_t (void*, pthread_t,
pthread_key_t);
-----------------------------------------------------^
cc: Error: /usr/include/pthread.h, line 1038: In this declaration,
"pthread_t" appears to be used as if it named a type, but there is no
declared type of that name visible. (typedefnotdef)
extern pthread_t pthread_self (void);
-------^
cc: Error: /usr/include/pthread.h, line 1190: Error parsing parameter list.
Found "*" when expecting one of: ",", ")". (notexpecting)
extern int pthread_sigmask (int, const sigset_t*, sigset_t*);
-----------------------------------------------^
cc: Error: /usr/include/pthread.h, line 1192: Missing identifier.
(parnoident)
extern int pthread_kill (pthread_t, int);
------------------------------------^
cc: Error: /usr/include/pthread.h, line 1217: Error parsing parameter list.
Found "*" when expecting one of: ",", ")". (notexpecting)
extern int pthread_mutexattr_init (pthread_mutexattr_t*);
------------------------------------------------------^
cc: Error: /usr/include/pthread.h, line 1220: Error parsing parameter list.
Found "*" when expecting one of: ",", ")". (notexpecting)
extern int pthread_mutexattr_getprioceiling (const pthread_mutexattr_t*,
int*);
----------------------------------------------------------------------^
cc: Error: /usr/include/pthread.h, line 1222: Error parsing parameter list.
Found "*" when expecting one of: ",", ")". (notexpecting)
extern int pthread_mutexattr_setprioceiling (pthread_mutexattr_t*, int);
----------------------------------------------------------------^
cc: Error: /usr/include/pthread.h, line 1231: Error parsing parameter list.
Found "*" when expecting one of: ",", ")". (notexpecting)
extern int pthread_mutexattr_getprotocol (const pthread_mutexattr_t*, int*);
-------------------------------------------------------------------^
cc: Error: /usr/include/pthread.h, line 1233: Error parsing parameter list.
Found "*" when expecting one of: ",", ")". (notexpecting)
extern int pthread_mutexattr_setprotocol (pthread_mutexattr_t*, int);
-------------------------------------------------------------^
cc: Error: /usr/include/pthread.h, line 1235: Error parsing parameter list.
Found "*" when expecting one of: ",", ")". (notexpecting)
extern int pthread_mutexattr_getpshared (const pthread_mutexattr_t*, int*);
------------------------------------------------------------------^
cc: Error: /usr/include/pthread.h, line 1237: Error parsing parameter list.
Found "*" when expecting one of: ",", ")". (notexpecting)
extern int pthread_mutexattr_setpshared (pthread_mutexattr_t*, int);
------------------------------------------------------------^
cc: Error: /usr/include/pthread.h, line 1239: Error parsing parameter list.
Found "*" when expecting one of: ",", ")". (notexpecting)
extern int pthread_mutexattr_gettype (const pthread_mutexattr_t*, int*);
---------------------------------------------------------------^
cc: Error: /usr/include/pthread.h, line 1241: Error parsing parameter list.
Found "*" when expecting one of: ",", ")". (notexpecting)
extern int pthread_mutexattr_settype (pthread_mutexattr_t*, int);
---------------------------------------------------------^
cc: Error: /usr/include/pthread.h, line 1243: Error parsing parameter list.
Found "*" when expecting one of: ",", ")". (notexpecting)
extern int pthread_mutexattr_destroy (pthread_mutexattr_t*);
---------------------------------------------------------^
cc: Error: /usr/include/pthread.h, line 1252: Error parsing parameter list.
Found "*" when expecting one of: ",", ")". (notexpecting)
extern int pthread_mutex_init (pthread_mutex_t*, const
pthread_mutexattr_t*);
----------------------------------------------^
cc: Error: /usr/include/pthread.h, line 1264: Error parsing parameter list.
Found "*" when expecting one of: ",", ")". (notexpecting)
extern int pthread_mutex_destroy (pthread_mutex_t*);
-------------------------------------------------^
cc: Error: /usr/include/pthread.h, line 1276: Error parsing parameter list.
Found "*" when expecting one of: ",", ")". (notexpecting)
extern int pthread_mutex_lock (pthread_mutex_t*);
----------------------------------------------^
cc: Error: /usr/include/pthread.h, line 1281: Error parsing parameter list.
Found "*" when expecting one of: ",", ")". (notexpecting)
extern int pthread_mutex_getprioceiling (const pthread_mutex_t*, int*);
--------------------------------------------------------------^
cc: Severe: More than 30 errors were encountered in the course of
compilation. (toomanyerr)
*** Exit 1
Stop.

-- 
Didier Godefroy
mailto:dg@ulysium.net


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:50:31 EDT