You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Rob Hartill <ro...@imdb.com> on 1997/11/22 01:07:10 UTC

comp. problem (fwd)

---------- Forwarded message ----------
Date: Fri, 21 Nov 1997 15:34:22 -0600
From: Vladimir Pekkel <vl...@mars.uthscsa.edu>
To: apache-bugs@apache.org
Subject: comp. problem

Dear Apaches
I tried to compile v. 1.3b3 with gcc on Ultra SPURC running Solaris 2.6 and get the following errors:

mars{vladimir}: make
for i in os/unix main ap modules; do \
        ( cd $i; make CC='gcc' AUX_CFLAGS=' -DSOLARIS2=260 ' RANLIB='ranlib') || exit 1; \
done
gcc -c  -I../os/unix -I../main   -DSOLARIS2=260   http_main.c
In file included from http_main.c:346:
/usr/include/pthread.h:109: parse error before `*'
/usr/include/pthread.h:110: parse error before `*'
/usr/include/pthread.h:111: parse error before `*'
/usr/include/pthread.h:113: parse error before `*'
/usr/include/pthread.h:115: parse error before `*'
/usr/include/pthread.h:117: parse error before `*'
/usr/include/pthread.h:119: parse error before `*'
/usr/include/pthread.h:121: parse error before `*'
/usr/include/pthread.h:123: parse error before `*'
/usr/include/pthread.h:125: parse error before `*'
/usr/include/pthread.h:127: parse error before `*'
/usr/include/pthread.h:129: parse error before `*'
/usr/include/pthread.h:131: parse error before `*'
/usr/include/pthread.h:133: parse error before `*'
/usr/include/pthread.h:135: parse error before `*'
/usr/include/pthread.h:137: parse error before `*'
/usr/include/pthread.h:139: parse error before `*'
/usr/include/pthread.h:140: `pthread_create' declared as function returning a function
/usr/include/pthread.h:141: parse error before `void'
/usr/include/pthread.h:142: parse error before `*'
/usr/include/pthread.h:143: parse error before `)'
/usr/include/pthread.h:144: parse error before `thread'
/usr/include/pthread.h:145: parse error before `thread'
/usr/include/pthread.h:147: parse error before `thread'
/usr/include/pthread.h:148: parse error before `thread'
/usr/include/pthread.h:149: parse error before `thread'
/usr/include/pthread.h:151: parse error before `thread'
/usr/include/pthread.h:156: parse error before `t1'
/usr/include/pthread.h:159: parse error before `*'
/usr/include/pthread.h:159: parse error before `)'
/usr/include/pthread.h:160: parse error before `key'
/usr/include/pthread.h:161: parse error before `key'
/usr/include/pthread.h:162: parse error before `key'
/usr/include/pthread.h:163: parse error before `pthread_self'
/usr/include/pthread.h:163: warning: data definition has no type or storage class
/usr/include/pthread.h:177: parse error before `*'
/usr/include/pthread.h:178: parse error before `*'
/usr/include/pthread.h:179: parse error before `*'
/usr/include/pthread.h:181: parse error before `*'
/usr/include/pthread.h:183: parse error before `*'
/usr/include/pthread.h:185: parse error before `*'
/usr/include/pthread.h:187: parse error before `*'
/usr/include/pthread.h:189: parse error before `*'
/usr/include/pthread.h:191: parse error before `*'
/usr/include/pthread.h:193: parse error before `*'
/usr/include/pthread.h:194: parse error before `*'
/usr/include/pthread.h:195: parse error before `*'
/usr/include/pthread.h:196: parse error before `*'
/usr/include/pthread.h:197: parse error before `*'
/usr/include/pthread.h:199: parse error before `*'
/usr/include/pthread.h:201: parse error before `*'
/usr/include/pthread.h:202: parse error before `*'
/usr/include/pthread.h:203: parse error before `*'
/usr/include/pthread.h:205: parse error before `*'
/usr/include/pthread.h:207: parse error before `*'
/usr/include/pthread.h:209: parse error before `*'
/usr/include/pthread.h:210: parse error before `*'
/usr/include/pthread.h:211: parse error before `*'
/usr/include/pthread.h:212: parse error before `*'
/usr/include/pthread.h:214: parse error before `*'
http_main.c:348: parse error before `*'
http_main.c:348: warning: data definition has no type or storage class
http_main.c: In function `accept_mutex_init':
http_main.c:377: `pthread_mutexattr_t' undeclared (first use this function)
http_main.c:377: (Each undeclared identifier is reported only once
http_main.c:377: for each function it appears in.)
http_main.c:377: parse error before `mattr'
http_main.c:385: `pthread_mutex_t' undeclared (first use this function)
http_main.c:385: parse error before `)'
http_main.c:392: `mattr' undeclared (first use this function)
*** Error code 1
make: Fatal error: Command failed for target `http_main.o'
Current working directory /export/www/apache_1.3b3/src/main
*** Error code 1
make: Fatal error: Command failed for target `subdirs'

Regards, Vladimir Pekkel (vladimir@mars.uthscsa.edu)


Re: comp. problem (fwd)

Posted by Dean Gaudet <dg...@arctic.org>.
I suspect you're using a gcc built on a 2.5.x box.  Is this true? 
Otherwise you're going to have to do some digging to find out what's wrong
because we don't have access to a 2.6 box.

Dean

On Sat, 22 Nov 1997, Rob Hartill wrote:

> 
> ---------- Forwarded message ----------
> Date: Fri, 21 Nov 1997 15:34:22 -0600
> From: Vladimir Pekkel <vl...@mars.uthscsa.edu>
> To: apache-bugs@apache.org
> Subject: comp. problem
> 
> Dear Apaches
> I tried to compile v. 1.3b3 with gcc on Ultra SPURC running Solaris 2.6 and get the following errors:
> 
> mars{vladimir}: make
> for i in os/unix main ap modules; do \
>         ( cd $i; make CC='gcc' AUX_CFLAGS=' -DSOLARIS2=260 ' RANLIB='ranlib') || exit 1; \
> done
> gcc -c  -I../os/unix -I../main   -DSOLARIS2=260   http_main.c
> In file included from http_main.c:346:
> /usr/include/pthread.h:109: parse error before `*'
> /usr/include/pthread.h:110: parse error before `*'
> /usr/include/pthread.h:111: parse error before `*'
> /usr/include/pthread.h:113: parse error before `*'
> /usr/include/pthread.h:115: parse error before `*'
> /usr/include/pthread.h:117: parse error before `*'
> /usr/include/pthread.h:119: parse error before `*'
> /usr/include/pthread.h:121: parse error before `*'
> /usr/include/pthread.h:123: parse error before `*'
> /usr/include/pthread.h:125: parse error before `*'
> /usr/include/pthread.h:127: parse error before `*'
> /usr/include/pthread.h:129: parse error before `*'
> /usr/include/pthread.h:131: parse error before `*'
> /usr/include/pthread.h:133: parse error before `*'
> /usr/include/pthread.h:135: parse error before `*'
> /usr/include/pthread.h:137: parse error before `*'
> /usr/include/pthread.h:139: parse error before `*'
> /usr/include/pthread.h:140: `pthread_create' declared as function returning a function
> /usr/include/pthread.h:141: parse error before `void'
> /usr/include/pthread.h:142: parse error before `*'
> /usr/include/pthread.h:143: parse error before `)'
> /usr/include/pthread.h:144: parse error before `thread'
> /usr/include/pthread.h:145: parse error before `thread'
> /usr/include/pthread.h:147: parse error before `thread'
> /usr/include/pthread.h:148: parse error before `thread'
> /usr/include/pthread.h:149: parse error before `thread'
> /usr/include/pthread.h:151: parse error before `thread'
> /usr/include/pthread.h:156: parse error before `t1'
> /usr/include/pthread.h:159: parse error before `*'
> /usr/include/pthread.h:159: parse error before `)'
> /usr/include/pthread.h:160: parse error before `key'
> /usr/include/pthread.h:161: parse error before `key'
> /usr/include/pthread.h:162: parse error before `key'
> /usr/include/pthread.h:163: parse error before `pthread_self'
> /usr/include/pthread.h:163: warning: data definition has no type or storage class
> /usr/include/pthread.h:177: parse error before `*'
> /usr/include/pthread.h:178: parse error before `*'
> /usr/include/pthread.h:179: parse error before `*'
> /usr/include/pthread.h:181: parse error before `*'
> /usr/include/pthread.h:183: parse error before `*'
> /usr/include/pthread.h:185: parse error before `*'
> /usr/include/pthread.h:187: parse error before `*'
> /usr/include/pthread.h:189: parse error before `*'
> /usr/include/pthread.h:191: parse error before `*'
> /usr/include/pthread.h:193: parse error before `*'
> /usr/include/pthread.h:194: parse error before `*'
> /usr/include/pthread.h:195: parse error before `*'
> /usr/include/pthread.h:196: parse error before `*'
> /usr/include/pthread.h:197: parse error before `*'
> /usr/include/pthread.h:199: parse error before `*'
> /usr/include/pthread.h:201: parse error before `*'
> /usr/include/pthread.h:202: parse error before `*'
> /usr/include/pthread.h:203: parse error before `*'
> /usr/include/pthread.h:205: parse error before `*'
> /usr/include/pthread.h:207: parse error before `*'
> /usr/include/pthread.h:209: parse error before `*'
> /usr/include/pthread.h:210: parse error before `*'
> /usr/include/pthread.h:211: parse error before `*'
> /usr/include/pthread.h:212: parse error before `*'
> /usr/include/pthread.h:214: parse error before `*'
> http_main.c:348: parse error before `*'
> http_main.c:348: warning: data definition has no type or storage class
> http_main.c: In function `accept_mutex_init':
> http_main.c:377: `pthread_mutexattr_t' undeclared (first use this function)
> http_main.c:377: (Each undeclared identifier is reported only once
> http_main.c:377: for each function it appears in.)
> http_main.c:377: parse error before `mattr'
> http_main.c:385: `pthread_mutex_t' undeclared (first use this function)
> http_main.c:385: parse error before `)'
> http_main.c:392: `mattr' undeclared (first use this function)
> *** Error code 1
> make: Fatal error: Command failed for target `http_main.o'
> Current working directory /export/www/apache_1.3b3/src/main
> *** Error code 1
> make: Fatal error: Command failed for target `subdirs'
> 
> Regards, Vladimir Pekkel (vladimir@mars.uthscsa.edu)
> 
> 


Re: comp. problem (fwd)

Posted by Dirk-Willem van Gulik <di...@elect6.jrc.it>.
On Sat, 22 Nov 1997, Rob Hartill wrote:

Hmm, I can reproduce these errors when I use the native cc
compiler rather than gcc.

I would dare say that he either has gcc or cc linked to
each other; or somehow gcc is using the wrong include
files. i.e. not those in /usr/local/*/std...

Vladimir, could you do a 

	'gcc -v'

and check that it says something like

	Reading specs from
	/usr/local/depot/g++/lib/gcc-lib/sparc-sun-solaris2.4/2.7.2.2/specs
	gcc version 2.7.2.2

Tha!

Dw.

> 
> ---------- Forwarded message ----------
> Date: Fri, 21 Nov 1997 15:34:22 -0600
> From: Vladimir Pekkel <vl...@mars.uthscsa.edu>
> To: apache-bugs@apache.org
> Subject: comp. problem
> 
> Dear Apaches
> I tried to compile v. 1.3b3 with gcc on Ultra SPURC running Solaris 2.6 and get the following errors:
> 
> mars{vladimir}: make
> for i in os/unix main ap modules; do \
>         ( cd $i; make CC='gcc' AUX_CFLAGS=' -DSOLARIS2=260 ' RANLIB='ranlib') || exit 1; \
> done
> gcc -c  -I../os/unix -I../main   -DSOLARIS2=260   http_main.c
> In file included from http_main.c:346:
> /usr/include/pthread.h:109: parse error before `*'
> /usr/include/pthread.h:110: parse error before `*'
> /usr/include/pthread.h:111: parse error before `*'
> /usr/include/pthread.h:113: parse error before `*'
> /usr/include/pthread.h:115: parse error before `*'
> /usr/include/pthread.h:117: parse error before `*'
> /usr/include/pthread.h:119: parse error before `*'
> /usr/include/pthread.h:121: parse error before `*'
> /usr/include/pthread.h:123: parse error before `*'
> /usr/include/pthread.h:125: parse error before `*'
> /usr/include/pthread.h:127: parse error before `*'
> /usr/include/pthread.h:129: parse error before `*'
> /usr/include/pthread.h:131: parse error before `*'
> /usr/include/pthread.h:133: parse error before `*'
> /usr/include/pthread.h:135: parse error before `*'
> /usr/include/pthread.h:137: parse error before `*'
> /usr/include/pthread.h:139: parse error before `*'
> /usr/include/pthread.h:140: `pthread_create' declared as function returning a function
> /usr/include/pthread.h:141: parse error before `void'
> /usr/include/pthread.h:142: parse error before `*'
> /usr/include/pthread.h:143: parse error before `)'
> /usr/include/pthread.h:144: parse error before `thread'
> /usr/include/pthread.h:145: parse error before `thread'
> /usr/include/pthread.h:147: parse error before `thread'
> /usr/include/pthread.h:148: parse error before `thread'
> /usr/include/pthread.h:149: parse error before `thread'
> /usr/include/pthread.h:151: parse error before `thread'
> /usr/include/pthread.h:156: parse error before `t1'
> /usr/include/pthread.h:159: parse error before `*'
> /usr/include/pthread.h:159: parse error before `)'
> /usr/include/pthread.h:160: parse error before `key'
> /usr/include/pthread.h:161: parse error before `key'
> /usr/include/pthread.h:162: parse error before `key'
> /usr/include/pthread.h:163: parse error before `pthread_self'
> /usr/include/pthread.h:163: warning: data definition has no type or storage class
> /usr/include/pthread.h:177: parse error before `*'
> /usr/include/pthread.h:178: parse error before `*'
> /usr/include/pthread.h:179: parse error before `*'
> /usr/include/pthread.h:181: parse error before `*'
> /usr/include/pthread.h:183: parse error before `*'
> /usr/include/pthread.h:185: parse error before `*'
> /usr/include/pthread.h:187: parse error before `*'
> /usr/include/pthread.h:189: parse error before `*'
> /usr/include/pthread.h:191: parse error before `*'
> /usr/include/pthread.h:193: parse error before `*'
> /usr/include/pthread.h:194: parse error before `*'
> /usr/include/pthread.h:195: parse error before `*'
> /usr/include/pthread.h:196: parse error before `*'
> /usr/include/pthread.h:197: parse error before `*'
> /usr/include/pthread.h:199: parse error before `*'
> /usr/include/pthread.h:201: parse error before `*'
> /usr/include/pthread.h:202: parse error before `*'
> /usr/include/pthread.h:203: parse error before `*'
> /usr/include/pthread.h:205: parse error before `*'
> /usr/include/pthread.h:207: parse error before `*'
> /usr/include/pthread.h:209: parse error before `*'
> /usr/include/pthread.h:210: parse error before `*'
> /usr/include/pthread.h:211: parse error before `*'
> /usr/include/pthread.h:212: parse error before `*'
> /usr/include/pthread.h:214: parse error before `*'
> http_main.c:348: parse error before `*'
> http_main.c:348: warning: data definition has no type or storage class
> http_main.c: In function `accept_mutex_init':
> http_main.c:377: `pthread_mutexattr_t' undeclared (first use this function)
> http_main.c:377: (Each undeclared identifier is reported only once
> http_main.c:377: for each function it appears in.)
> http_main.c:377: parse error before `mattr'
> http_main.c:385: `pthread_mutex_t' undeclared (first use this function)
> http_main.c:385: parse error before `)'
> http_main.c:392: `mattr' undeclared (first use this function)
> *** Error code 1
> make: Fatal error: Command failed for target `http_main.o'
> Current working directory /export/www/apache_1.3b3/src/main
> *** Error code 1
> make: Fatal error: Command failed for target `subdirs'
> 
> Regards, Vladimir Pekkel (vladimir@mars.uthscsa.edu)
> 
>