[FUG-BR] Erro na compilação do mod_mono para o FreeBSD
Rodrigo Calado - Analista Sênior
rodrigocalado em rodrigocalado.com.br
Segunda Novembro 5 15:12:59 BRST 2007
Prezados,
Através do endereço
http://go-mono.com/sources/mod_mono/mod_mono-1.2.5.tar.bz2 eu consegui
efetuar o download do tão procurado mod_mono, mas o processo de compilação
foi interrompido por um erro. Já tentei em três máquinas diferentes e o
mesmo erro foi encontrado. Procurei no Google por referências sobre os erros
de compilação e nada encontrei. Agora me restam apenas os integrantes desta
lista para me ajudarem, segue abaixo todo o processo de compilação do
mod_mono:
242 root em box:~/mod_mono-1.2.5# make
Making install in src
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
-I../include -g -O2 -I/usr/local/include/apache -DLOGIN_CAP
-funsigned-char -O2 -fno-strict-aliasing -pipe -march=prescott
-DDOCUMENT_LOCATION="/usr/local/www/data"
-DDEFAULT_PATH="/bin:/usr/bin:/usr/local/bin" -DHARD_SERVER_LIMIT=8192
-I/usr/local/include/apr-1 -g -O2 -I/usr/local/include/apr-1
-I/usr/local/include -g -O2 -I/usr/local/include/apache -DLOGIN_CAP
-funsigned-char -O2 -fno-strict-aliasing -pipe -march=prescott
-DDOCUMENT_LOCATION="/usr/local/www/data"
-DDEFAULT_PATH="/bin:/usr/bin:/usr/local/bin" -DHARD_SERVER_LIMIT=8192
-I/usr/local/include/apr-1 -g -O2 -I/usr/local/include/apache -g -O2
-I/usr/local/include/apache -DLOGIN_CAP -funsigned-char -O2
-fno-strict-aliasing -pipe -march=prescott
-DDOCUMENT_LOCATION="/usr/local/www/data"
-DDEFAULT_PATH="/bin:/usr/bin:/usr/local/bin" -DHARD_SERVER_LIMIT=8192 -g
-O2 -I/usr/local/include/apache -DLOGIN_CAP -funsigned-char -O2
-fno-strict-aliasing -pipe -march=prescott
-DDOCUMENT_LOCATION="/usr/local/www/data"
-DDEFAULT_PATH="/bin:/usr/bin:/usr/local/bin" -DHARD_SERVER_LIMIT=8192
-I/usr/local/include/apr-1 -g -O2 -I/usr/local/include/apr-1
-I/usr/local/include -Wall
-DDFLT_MONO_CONFIG_DIR=\"/usr/local/etc/apache/mod-mono-applications\" -g
-O2 -I/usr/local/include/apache -DLOGIN_CAP -funsigned-char -O2
-fno-strict-aliasing -pipe -march=prescott
-DDOCUMENT_LOCATION="/usr/local/www/data"
-DDEFAULT_PATH="/bin:/usr/bin:/usr/local/bin" -DHARD_SERVER_LIMIT=8192
-I/usr/local/include/apr-1 -g -O2 -I/usr/local/include/apr-1
-I/usr/local/include -DAPACHE13 -DEAPI -MT mod_mono_la-mod_mono.lo -MD -MP
-MF ".deps/mod_mono_la-mod_mono.Tpo" -c -o mod_mono_la-mod_mono.lo `test -f
'mod_mono.c' || echo './'`mod_mono.c; then mv -f
".deps/mod_mono_la-mod_mono.Tpo" ".deps/mod_mono_la-mod_mono.Plo"; else rm
-f ".deps/mod_mono_la-mod_mono.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -I/usr/local/include/apache
-DLOGIN_CAP -funsigned-char -O2 -fno-strict-aliasing -pipe -march=prescott
-DDOCUMENT_LOCATION=/usr/local/www/data
-DDEFAULT_PATH=/bin:/usr/bin:/usr/local/bin -DHARD_SERVER_LIMIT=8192
-I/usr/local/include/apr-1 -g -O2 -I/usr/local/include/apr-1
-I/usr/local/include -g -O2 -I/usr/local/include/apache -DLOGIN_CAP
-funsigned-char -O2 -fno-strict-aliasing -pipe -march=prescott
-DDOCUMENT_LOCATION=/usr/local/www/data
-DDEFAULT_PATH=/bin:/usr/bin:/usr/local/bin -DHARD_SERVER_LIMIT=8192
-I/usr/local/include/apr-1 -g -O2 -I/usr/local/include/apache -g -O2
-I/usr/local/include/apache -DLOGIN_CAP -funsigned-char -O2
-fno-strict-aliasing -pipe -march=prescott
-DDOCUMENT_LOCATION=/usr/local/www/data
-DDEFAULT_PATH=/bin:/usr/bin:/usr/local/bin -DHARD_SERVER_LIMIT=8192 -g -O2
-I/usr/local/include/apache -DLOGIN_CAP -funsigned-char -O2
-fno-strict-aliasing -pipe -march=prescott
-DDOCUMENT_LOCATION=/usr/local/www/data
-DDEFAULT_PATH=/bin:/usr/bin:/usr/local/bin -DHARD_SERVER_LIMIT=8192
-I/usr/local/include/apr-1 -g -O2 -I/usr/local/include/apr-1
-I/usr/local/include -Wall
-DDFLT_MONO_CONFIG_DIR=\"/usr/local/etc/apache/mod-mono-applications\" -g
-O2 -I/usr/local/include/apache -DLOGIN_CAP -funsigned-char -O2
-fno-strict-aliasing -pipe -march=prescott
-DDOCUMENT_LOCATION=/usr/local/www/data
-DDEFAULT_PATH=/bin:/usr/bin:/usr/local/bin -DHARD_SERVER_LIMIT=8192
-I/usr/local/include/apr-1 -g -O2 -I/usr/local/include/apr-1
-I/usr/local/include -DAPACHE13 -DEAPI -MT mod_mono_la-mod_mono.lo -MD -MP
-MF .deps/mod_mono_la-mod_mono.Tpo -c mod_mono.c -fPIC -DPIC -o
.libs/mod_mono_la-mod_mono.o
In file included from mod_mono.c:35:
mod_mono.h:58:19: unixd.h: No such file or directory
mod_mono.h:79:1: warning: "apr_pool_create" redefined
In file included from /usr/local/include/apr-1/apr_shm.h:26,
from mod_mono.h:55,
from mod_mono.c:35:
/usr/local/include/apr-1/apr_pools.h:236:1: warning: this is the location of
the previous definition
In file included from mod_mono.c:35:
mod_mono.h:82:1: warning: "apr_pcalloc" redefined
In file included from /usr/local/include/apr-1/apr_shm.h:26,
from mod_mono.h:55,
from mod_mono.c:35:
/usr/local/include/apr-1/apr_pools.h:345:1: warning: this is the location of
the previous definition
In file included from mod_mono.c:35:
mod_mono.h:112: error: redefinition of typedef 'apr_size_t'
/usr/local/include/apr-1/apr.h:268: error: previous declaration of
'apr_size_t' was here
mod_mono.c:101: error: syntax error before "apr_global_mutex_t"
mod_mono.c:121: error: syntax error before "apr_lockmech_e"
mod_mono.c:128: error: `APR_LOCK_FCNTL' undeclared here (not in a function)
mod_mono.c:128: error: initializer element is not constant
mod_mono.c:128: error: (near initialization for
`lockMechanisms[0].available')
mod_mono.c:128: warning: excess elements in struct initializer
mod_mono.c:128: warning: (near initialization for `lockMechanisms[0]')
mod_mono.c:128: error: initializer element is not constant
mod_mono.c:128: error: (near initialization for `lockMechanisms[0]')
mod_mono.c:129: error: `APR_LOCK_FLOCK' undeclared here (not in a function)
mod_mono.c:129: error: initializer element is not constant
mod_mono.c:129: error: (near initialization for
`lockMechanisms[1].available')
mod_mono.c:129: warning: excess elements in struct initializer
mod_mono.c:129: warning: (near initialization for `lockMechanisms[1]')
mod_mono.c:129: error: initializer element is not constant
mod_mono.c:129: error: (near initialization for `lockMechanisms[1]')
mod_mono.c:130: error: `APR_LOCK_SYSVSEM' undeclared here (not in a
function)
mod_mono.c:130: error: initializer element is not constant
mod_mono.c:130: error: (near initialization for
`lockMechanisms[2].available')
mod_mono.c:130: warning: excess elements in struct initializer
mod_mono.c:130: warning: (near initialization for `lockMechanisms[2]')
mod_mono.c:130: error: initializer element is not constant
mod_mono.c:130: error: (near initialization for `lockMechanisms[2]')
mod_mono.c:131: error: `APR_LOCK_PROC_PTHREAD' undeclared here (not in a
function)
mod_mono.c:131: error: initializer element is not constant
mod_mono.c:131: error: (near initialization for
`lockMechanisms[3].available')
mod_mono.c:131: warning: excess elements in struct initializer
mod_mono.c:131: warning: (near initialization for `lockMechanisms[3]')
mod_mono.c:131: error: initializer element is not constant
mod_mono.c:131: error: (near initialization for `lockMechanisms[3]')
mod_mono.c:132: error: `APR_LOCK_POSIXSEM' undeclared here (not in a
function)
mod_mono.c:132: error: initializer element is not constant
mod_mono.c:132: error: (near initialization for
`lockMechanisms[4].available')
mod_mono.c:132: warning: excess elements in struct initializer
mod_mono.c:132: warning: (near initialization for `lockMechanisms[4]')
mod_mono.c:132: error: initializer element is not constant
mod_mono.c:132: error: (near initialization for `lockMechanisms[4]')
mod_mono.c:133: error: `APR_LOCK_DEFAULT' undeclared here (not in a
function)
mod_mono.c:133: error: initializer element is not constant
mod_mono.c:133: error: (near initialization for
`lockMechanisms[5].available')
mod_mono.c:133: warning: excess elements in struct initializer
mod_mono.c:133: warning: (near initialization for `lockMechanisms[5]')
mod_mono.c:133: error: initializer element is not constant
mod_mono.c:133: error: (near initialization for `lockMechanisms[5]')
mod_mono.c:134: warning: excess elements in struct initializer
mod_mono.c:134: warning: (near initialization for `lockMechanisms[6]')
mod_mono.c:134: error: initializer element is not constant
mod_mono.c:134: error: (near initialization for `lockMechanisms[6]')
mod_mono.c:142: error: syntax error before "get_apr_locking_mechanism"
mod_mono.c:143: warning: return type defaults to `int'
mod_mono.c: In function `get_apr_locking_mechanism':
mod_mono.c:154: error: structure has no member named `sym'
mod_mono.c:156: error: `code' undeclared (first use in this function)
mod_mono.c:156: error: (Each undeclared identifier is reported only once
mod_mono.c:156: error: for each function it appears in.)
mod_mono.c: In function `get_restart_mode':
mod_mono.c:278: error: `code' undeclared (first use in this function)
mod_mono.c: In function `ensure_dashboard_initialized':
mod_mono.c:316: error: syntax error before "cur_uid"
mod_mono.c:320: error: `unixd_config' undeclared (first use in this
function)
mod_mono.c:321: error: `code' undeclared (first use in this function)
mod_mono.c:328: warning: implicit declaration of function `apr_uid_current'
mod_mono.c:328: error: `cur_uid' undeclared (first use in this function)
mod_mono.c:328: error: `cur_gid' undeclared (first use in this function)
mod_mono.c:343: error: structure has no member named `dashboard_mutex'
mod_mono.c:345: warning: implicit declaration of function
`apr_global_mutex_create'
mod_mono.c:345: error: structure has no member named `dashboard_mutex'
mod_mono.c:366: warning: passing arg 3 of `apr_shm_attach' from incompatible
pointer type
mod_mono.c:377: warning: passing arg 4 of `apr_shm_create' from incompatible
pointer type
mod_mono.c:385: warning: passing arg 3 of `apr_shm_attach' from incompatible
pointer type
mod_mono.c: In function `add_xsp_server':
mod_mono.c:461: warning: implicit declaration of function `apr_snprintf'
mod_mono.c:472: error: structure has no member named `dashboard_mutex'
mod_mono.c: In function `write_data':
mod_mono.c:768: error: `code' undeclared (first use in this function)
mod_mono.c: In function `read_data':
mod_mono.c:781: error: `code' undeclared (first use in this function)
mod_mono.c: In function `send_response_headers':
mod_mono.c:887: error: `code' undeclared (first use in this function)
mod_mono.c: In function `do_command':
mod_mono.c:965: error: `code' undeclared (first use in this function)
mod_mono.c: In function `apr_sockaddr_info_get':
mod_mono.c:1135: error: `code' undeclared (first use in this function)
mod_mono.c: In function `try_connect':
mod_mono.c:1255: error: `code' undeclared (first use in this function)
mod_mono.c: In function `set_process_limits2':
mod_mono.c:1378: error: `code' undeclared (first use in this function)
mod_mono.c: In function `fork_mod_mono_server':
mod_mono.c:1419: error: syntax error before "cur_uid"
mod_mono.c:1422: error: `unixd_config' undeclared (first use in this
function)
mod_mono.c:1423: error: `code' undeclared (first use in this function)
mod_mono.c:1502: error: `cur_uid' undeclared (first use in this function)
mod_mono.c:1502: error: `cur_gid' undeclared (first use in this function)
mod_mono.c: In function `setup_socket':
mod_mono.c:1653: error: `code' undeclared (first use in this function)
mod_mono.c: In function `mono_execute_request':
mod_mono.c:1843: warning: cast from pointer to integer of different size
mod_mono.c:1847: warning: cast from pointer to integer of different size
mod_mono.c:1884: error: structure has no member named `dashboard_mutex'
mod_mono.c:1892: warning: implicit declaration of function
`apr_global_mutex_child_init'
mod_mono.c:1892: error: structure has no member named `dashboard_mutex'
mod_mono.c:1898: error: `code' undeclared (first use in this function)
mod_mono.c:1914: error: structure has no member named `dashboard_mutex'
mod_mono.c:1915: warning: implicit declaration of function
`apr_global_mutex_lock'
mod_mono.c:1915: error: structure has no member named `dashboard_mutex'
mod_mono.c:1935: error: structure has no member named `dashboard_mutex'
mod_mono.c:1936: warning: implicit declaration of function
`apr_global_mutex_unlock'
mod_mono.c:1936: error: structure has no member named `dashboard_mutex'
mod_mono.c:1976: error: structure has no member named `dashboard_mutex'
mod_mono.c:1979: error: structure has no member named `dashboard_mutex'
mod_mono.c:2021: error: structure has no member named `dashboard_mutex'
mod_mono.c: In function `terminate_xsp2':
mod_mono.c:2225: error: structure has no member named `dashboard_mutex'
mod_mono.c:2226: error: structure has no member named `dashboard_mutex'
mod_mono.c:2228: error: `code' undeclared (first use in this function)
mod_mono.c:2250: error: structure has no member named `dashboard_mutex'
mod_mono.c:2260: error: structure has no member named `dashboard_mutex'
mod_mono.c:2262: warning: implicit declaration of function
`apr_global_mutex_destroy'
mod_mono.c:2262: error: structure has no member named `dashboard_mutex'
mod_mono.c:2268: error: structure has no member named `dashboard_mutex'
mod_mono.c: In function `mono_control_panel_handler':
mod_mono.c:2323: error: structure has no member named `dashboard_mutex'
mod_mono.c:2324: error: structure has no member named `dashboard_mutex'
mod_mono.c:2336: error: structure has no member named `dashboard_mutex'
mod_mono.c:2338: error: `code' undeclared (first use in this function)
*** Error code 1
Stop in /root/mod_mono-1.2.5/src.
*** Error code 1
Stop in /root/mod_mono-1.2.5.
242 root em box:~/mod_mono-1.2.5#
Agradeço a compreensão de todos.
----
Atenciosamente,
Rodrigo Calado.
Analista de Suporte Sênior - Unix Like
Cel.: (61) 9982-7222
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.503 / Virus Database: 269.15.22/1111 - Release Date: 5/11/2007
04:36
Mais detalhes sobre a lista de discussão freebsd