Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Jun 2004 03:12:57 -0500 (CDT)
From:      User1001@globaleyes.net
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/67899: www/mod_scgi compile fails with multiple errors
Message-ID:  <B0303179993@mercury.ll.net>
Resent-Message-ID: <200406130830.i5D8UGiq034092@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         67899
>Category:       ports
>Synopsis:       www/mod_scgi compile fails with multiple errors
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 13 08:30:15 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     User1001
>Release:        FreeBSD 5.2.1-RELEASE i386
>Organization:
>Environment:

pkg_info|grep apache
apache-2.0.49_2     Version 2 of Apache web server with prefork MPM.

pkg_info | grep python
py23-ldap2-2.0.0pre21 An LDAP module for python, for OpenLDAP2
python-2.3.4        An interpreted object-oriented programming language

	
>Description:
===>  Extracting for mod_scgi-0.2
>How-To-Repeat:
	
>Fix:
	The first error,

		syntax error before "scgi_module"

	can be fixed by including "ap_compat.h". The other errors have not
	been diagnosed.


	



>Release-Note:
>Audit-Trail:
>Unformatted:
 >> Checksum OK for scgi-0.2.tar.gz.
 ===>  Patching for mod_scgi-0.2
 ===>   mod_scgi-0.2 depends on file: /usr/local/sbin/apxs - found
 ===>  Configuring for mod_scgi-0.2
 ===>  Building for mod_scgi-0.2
 cd /usr/ports/www/mod_scgi/work/scgi-0.2 && /usr/local/sbin/apxs -c -o mod_scgi.so mod_scgi.c
 /usr/local/share/apache2/build/libtool --silent --mode=compile gcc -prefer-pic -O -mcpu=pentiumpro -march=pentiumpro -mcpu=pentiumpro -DAP_HAVE_DESIGNATED_INITIALIZER -D_REENTRANT -D_THREAD_SAFE  -I/usr/local/include/apache2  -I/usr/local/include/apache2    -I/usr/local/include/apache2 -I/usr/local/include  -c -o mod_scgi.lo mod_scgi.c && touch mod_scgi.slo
 mod_scgi.c:42: error: syntax error before "scgi_module"
 mod_scgi.c: In function `our_dconfig':
 mod_scgi.c:49: error: `scgi_module' undeclared (first use in this function)
 mod_scgi.c:49: error: (Each undeclared identifier is reported only once
 mod_scgi.c:49: error: for each function it appears in.)
 mod_scgi.c: In function `open_socket':
 mod_scgi.c:86: warning: passing arg 4 of `ap_log_rerror' makes integer from pointer without a cast
 mod_scgi.c:86: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
 mod_scgi.c:86: error: too few arguments to function `ap_log_rerror'
 mod_scgi.c: At top level:
 mod_scgi.c:101: error: syntax error before '*' token
 mod_scgi.c: In function `lookup_name':
 mod_scgi.c:103: error: `array_header' undeclared (first use in this function)
 mod_scgi.c:103: error: `hdrs_arr' undeclared (first use in this function)
 mod_scgi.c:104: error: `table_entry' undeclared (first use in this function)
 mod_scgi.c:104: error: `hdrs' undeclared (first use in this function)
 mod_scgi.c:107: error: `t' undeclared (first use in this function)
 mod_scgi.c:108: error: syntax error before ')' token
 mod_scgi.c:113: error: `name' undeclared (first use in this function)
 mod_scgi.c: In function `original_uri':
 mod_scgi.c:153: warning: return makes pointer from integer without a cast
 mod_scgi.c: In function `log_err':
 mod_scgi.c:159: warning: passing arg 4 of `ap_log_rerror' makes integer from pointer without a cast
 mod_scgi.c:159: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
 mod_scgi.c: In function `log_debug':
 mod_scgi.c:165: warning: passing arg 4 of `ap_log_rerror' makes integer from pointer without a cast
 mod_scgi.c:165: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
 mod_scgi.c: At top level:
 mod_scgi.c:168: error: syntax error before '*' token
 mod_scgi.c: In function `add_header':
 mod_scgi.c:170: error: `name' undeclared (first use in this function)
 mod_scgi.c:170: error: `value' undeclared (first use in this function)
 mod_scgi.c:171: error: `t' undeclared (first use in this function)
 mod_scgi.c: At top level:
 mod_scgi.c:175: error: syntax error before "BUFF"
 mod_scgi.c: In function `send_headers':
 mod_scgi.c:177: error: `table' undeclared (first use in this function)
 mod_scgi.c:177: error: `t' undeclared (first use in this function)
 mod_scgi.c:177: error: `r' undeclared (first use in this function)
 mod_scgi.c:178: error: `array_header' undeclared (first use in this function)
 mod_scgi.c:178: error: `hdrs_arr' undeclared (first use in this function)
 mod_scgi.c:179: error: `table_entry' undeclared (first use in this function)
 mod_scgi.c:179: error: `hdrs' undeclared (first use in this function)
 mod_scgi.c:213: error: syntax error before ')' token
 mod_scgi.c:222: error: `f' undeclared (first use in this function)
 mod_scgi.c: At top level:
 mod_scgi.c:236: error: syntax error before "BUFF"
 mod_scgi.c: In function `send_request_body':
 mod_scgi.c:239: error: `r' undeclared (first use in this function)
 mod_scgi.c:243: error: `f' undeclared (first use in this function)
 mod_scgi.c: In function `scgi_handler':
 mod_scgi.c:254: error: `BUFF' undeclared (first use in this function)
 mod_scgi.c:254: error: `f' undeclared (first use in this function)
 mod_scgi.c:270: error: `SERVER_ERROR' undeclared (first use in this function)
 mod_scgi.c:274: error: `B_RDWR' undeclared (first use in this function)
 mod_scgi.c:274: error: `B_SOCKET' undeclared (first use in this function)
 mod_scgi.c:299: warning: assignment makes pointer from integer without a cast
 mod_scgi.c:311: warning: assignment makes pointer from integer without a cast
 mod_scgi.c: At top level:
 mod_scgi.c:330: error: syntax error before "pool"
 mod_scgi.c: In function `scgi_init':
 mod_scgi.c:332: warning: passing arg 1 of `ap_add_version_component' from incompatible pointer type
 mod_scgi.c:332: error: too few arguments to function `ap_add_version_component'
 mod_scgi.c: At top level:
 mod_scgi.c:335: error: syntax error before '*' token
 mod_scgi.c: In function `scgi_create_dir_config':
 mod_scgi.c:337: error: `p' undeclared (first use in this function)
 mod_scgi.c: At top level:
 mod_scgi.c:349: error: syntax error before '*' token
 mod_scgi.c: In function `scgi_merge_dir_config':
 mod_scgi.c:352: error: `p' undeclared (first use in this function)
 mod_scgi.c:353: error: `basev' undeclared (first use in this function)
 mod_scgi.c:354: error: `newv' undeclared (first use in this function)
 mod_scgi.c: In function `cmd_server':
 mod_scgi.c:370: error: `scgi_module' undeclared (first use in this function)
 mod_scgi.c: In function `cmd_handler':
 mod_scgi.c:397: error: `scgi_module' undeclared (first use in this function)
 mod_scgi.c: At top level:
 mod_scgi.c:419: warning: initialization from incompatible pointer type
 mod_scgi.c:421: warning: initialization from incompatible pointer type
 mod_scgi.c:426: error: syntax error before "scgi_handlers"
 mod_scgi.c:428: warning: braces around scalar initializer
 mod_scgi.c:428: warning: (near initialization for `scgi_handlers[0]')
 mod_scgi.c:428: warning: initialization makes integer from pointer without a cast
 mod_scgi.c:428: warning: excess elements in scalar initializer
 mod_scgi.c:428: warning: (near initialization for `scgi_handlers[0]')
 mod_scgi.c:429: warning: braces around scalar initializer
 mod_scgi.c:429: warning: (near initialization for `scgi_handlers[1]')
 mod_scgi.c:430: warning: data definition has no type or storage class
 mod_scgi.c:432: error: `scgi_module' used prior to declaration
 mod_scgi.c:434: error: `this_module_needs_to_be_ported_to_apache_2_0' undeclared here (not in a function)
 mod_scgi.c:434: error: initializer element is not constant
 mod_scgi.c:434: error: (near initialization for `scgi_module.version')
 mod_scgi.c:435: warning: initialization makes integer from pointer without a cast
 mod_scgi.c:436: warning: initialization makes integer from pointer without a cast
 mod_scgi.c:437: warning: initialization from incompatible pointer type
 mod_scgi.c:440: warning: initialization makes integer from pointer without a cast
 mod_scgi.c:441: warning: initialization from incompatible pointer type
 mod_scgi.c:442: warning: initialization from incompatible pointer type
 mod_scgi.c:448: warning: excess elements in struct initializer
 mod_scgi.c:448: warning: (near initialization for `scgi_module')
 mod_scgi.c:450: warning: excess elements in struct initializer
 mod_scgi.c:450: warning: (near initialization for `scgi_module')
 mod_scgi.c:453: warning: excess elements in struct initializer
 mod_scgi.c:453: warning: (near initialization for `scgi_module')
 mod_scgi.c:456: warning: excess elements in struct initializer
 mod_scgi.c:456: warning: (near initialization for `scgi_module')
 mod_scgi.c:461: warning: excess elements in struct initializer
 mod_scgi.c:461: warning: (near initialization for `scgi_module')
 apxs:Error: Command failed with rc=65536
 .
 *** Error code 1
 
 Stop in /usr/ports/www/mod_scgi.
 
 	



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B0303179993>