Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Aug 2005 20:59:22 +0200
From:      Martin Baum <martin.baum@berlin.de>
To:        apache@FreeBSD.org
Subject:   mod_bandwidth don't compile
Message-ID:  <42FE430A.3030806@berlin.de>

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

mod_bandwidth 2.0.6 from ports will not compile.

root@stunk:/usr/ports/www/mod_bandwidth# uname -simr
FreeBSD 5.4-RELEASE i386 GENERIC

Anybody can help me?

thanks
   Martin


Here the make output:
root@stunk:/usr/ports/www/mod_bandwidth# make
===>  Vulnerability check disabled, database not found
===>  Extracting for mod_bandwidth-2.0.6
=> Checksum OK for apache/mod_bandwidth-2.0.6.tar.gz.
===>   mod_bandwidth-2.0.6 depends on file: /usr/local/bin/perl5.8.7 - found
===>  Patching for mod_bandwidth-2.0.6
===>   mod_bandwidth-2.0.6 depends on file: /usr/local/bin/perl5.8.7 - found
===>   mod_bandwidth-2.0.6 depends on file: /usr/local/sbin/apxs - found
===>   mod_bandwidth-2.0.6 depends on file: /usr/local/bin/perl5.8.7 - found
===>  Configuring for mod_bandwidth-2.0.6
===>  Building for mod_bandwidth-2.0.6
/usr/local/share/apache2/build/libtool --silent --mode=compile cc 
-prefer-pic -O -pipe -march=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_bandwidth.lo mod_bandwidth.c && touch 
mod_bandwidth.slo
mod_bandwidth.c:438: error: syntax error before "array_header"
mod_bandwidth.c:462: error: syntax error before '*' token
mod_bandwidth.c: In function `create_bw_config':
mod_bandwidth.c:464: error: `p' undeclared (first use in this function)
mod_bandwidth.c:464: error: (Each undeclared identifier is reported only 
once
mod_bandwidth.c:464: error: for each function it appears in.)
mod_bandwidth.c:465: error: structure has no member named `limits'
mod_bandwidth.c:466: error: structure has no member named `minlimits'
mod_bandwidth.c:467: error: structure has no member named `sizelimits'
mod_bandwidth.c:468: error: `path' undeclared (first use in this function)
mod_bandwidth.c:468: warning: assignment makes pointer from integer 
without a cast
mod_bandwidth.c: At top level:
mod_bandwidth.c:473: error: syntax error before '*' token
mod_bandwidth.c: In function `create_bw_server_config':
mod_bandwidth.c:476: error: `p' undeclared (first use in this function)
mod_bandwidth.c: In function `set_bandwidth_data_dir':
mod_bandwidth.c:497: warning: assignment makes pointer from integer 
without a cast
mod_bandwidth.c:499: warning: passing arg 1 of `ap_is_directory' from 
incompatible pointer type
mod_bandwidth.c:499: error: too few arguments to function `ap_is_directory'
mod_bandwidth.c: In function `bandwidth':
mod_bandwidth.c:552: error: structure has no member named `limits'
mod_bandwidth.c:553: warning: assignment makes pointer from integer 
without a cast
mod_bandwidth.c: In function `minbandwidth':
mod_bandwidth.c:568: error: structure has no member named `minlimits'
mod_bandwidth.c:569: warning: assignment makes pointer from integer 
without a cast
mod_bandwidth.c: In function `largefilelimit':
mod_bandwidth.c:597: error: structure has no member named `sizelimits'
mod_bandwidth.c: At top level:
mod_bandwidth.c:604: warning: initialization from incompatible pointer type
mod_bandwidth.c:606: warning: initialization from incompatible pointer type
mod_bandwidth.c:608: warning: initialization from incompatible pointer type
mod_bandwidth.c:610: warning: initialization from incompatible pointer type
mod_bandwidth.c:612: warning: initialization from incompatible pointer type
mod_bandwidth.c:614: warning: initialization from incompatible pointer type
mod_bandwidth.c:616: warning: initialization from incompatible pointer type
mod_bandwidth.c:689: error: syntax error before "array_header"
mod_bandwidth.c: In function `get_bw_rate':
mod_bandwidth.c:690: error: `a' undeclared (first use in this function)
mod_bandwidth.c:694: error: `r' undeclared (first use in this function)
mod_bandwidth.c:694: error: too few arguments to function 
`ap_get_remote_host'
mod_bandwidth.c: At top level:
mod_bandwidth.c:710: error: syntax error before "array_header"
mod_bandwidth.c: In function `get_bw_filesize':
mod_bandwidth.c:711: error: `a' undeclared (first use in this function)
mod_bandwidth.c:715: error: `filesize' undeclared (first use in this 
function)
mod_bandwidth.c: In function `current_connection':
mod_bandwidth.c:732: error: storage size of 'mdata' isn't known
mod_bandwidth.c: In function `handle_bw':
mod_bandwidth.c:780: error: storage size of 'fdata' isn't known
mod_bandwidth.c:805: error: structure has no member named `limits'
mod_bandwidth.c:806: error: structure has no member named `minlimits'
mod_bandwidth.c:807: error: structure has no member named `sizelimits'
mod_bandwidth.c:807: error: structure has no member named `st_size'
mod_bandwidth.c:819: error: structure has no member named `st_mode'
mod_bandwidth.c:821: error: `NOT_FOUND' undeclared (first use in this 
function)
mod_bandwidth.c:824: error: structure has no member named `st_mtime'
mod_bandwidth.c:828: error: structure has no member named `st_size'
mod_bandwidth.c:828: error: void value not ignored as it ought to be
mod_bandwidth.c:859: error: `FORBIDDEN' undeclared (first use in this 
function)
mod_bandwidth.c:868: warning: assignment makes pointer from integer 
without a cast
mod_bandwidth.c:872: warning: passing arg 4 of `ap_log_error' makes 
integer from pointer without a cast
mod_bandwidth.c:872: warning: passing arg 5 of `ap_log_error' from 
incompatible pointer type
mod_bandwidth.c:928: error: structure has no member named `st_size'
mod_bandwidth.c: At top level:
mod_bandwidth.c:1234: error: syntax error before "bw_handlers"
mod_bandwidth.c:1235: warning: braces around scalar initializer
mod_bandwidth.c:1235: warning: (near initialization for `bw_handlers[0]')
mod_bandwidth.c:1235: warning: initialization makes integer from pointer 
without a cast
mod_bandwidth.c:1235: warning: excess elements in scalar initializer
mod_bandwidth.c:1235: warning: (near initialization for `bw_handlers[0]')
mod_bandwidth.c:1236: warning: braces around scalar initializer
mod_bandwidth.c:1236: warning: (near initialization for `bw_handlers[1]')
mod_bandwidth.c:1236: warning: initialization makes integer from pointer 
without a cast
mod_bandwidth.c:1237: warning: data definition has no type or storage class
mod_bandwidth.c:1240: error: 
`this_module_needs_to_be_ported_to_apache_2_0' undeclared here (not in a 
function)
mod_bandwidth.c:1240: error: initializer element is not constant
mod_bandwidth.c:1240: error: (near initialization for 
`bandwidth_module.version')
mod_bandwidth.c:1241: warning: initialization makes integer from pointer 
without a cast
mod_bandwidth.c:1242: warning: initialization makes integer from pointer 
without a cast
mod_bandwidth.c:1246: warning: initialization makes integer from pointer 
without a cast
mod_bandwidth.c:1247: warning: initialization from incompatible pointer type
mod_bandwidth.c:1255: warning: excess elements in struct initializer
mod_bandwidth.c:1255: warning: (near initialization for `bandwidth_module')
apxs:Error: Command failed with rc=65536
.
*** Error code 1

Stop in /usr/ports/www/mod_bandwidth.



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