apache 2 errors

kanary

Verified User
Joined
Jun 8, 2007
Messages
113
Location
Holland - Het westland
When im updating my apache to the newest version i get this error when i try to install it

Code:
mpm_common.c:35:26: error: apr_optional.h: No such file or directory
mpm_common.c:38:19: error: httpd.h: No such file or directory
mpm_common.c:39:25: error: http_config.h: No such file or directory
mpm_common.c:40:22: error: http_log.h: No such file or directory
mpm_common.c:41:23: error: http_main.h: No such file or directory
In file included from mpm_common.c:42:
/usr/local/directadmin/custombuild/httpd-2.2.9/server/mpm/prefork/mpm.h:26:19: error: httpd.h: No such file or directory
/usr/local/directadmin/custombuild/httpd-2.2.9/server/mpm/prefork/mpm.h:28:24: error: scoreboard.h: No such file or directory
/usr/local/directadmin/custombuild/httpd-2.2.9/server/mpm/prefork/mpm.h:29:19: error: unixd.h: No such file or directory
In file included from mpm_common.c:42:
/usr/local/directadmin/custombuild/httpd-2.2.9/server/mpm/prefork/mpm.h:60: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
mpm_common.c:43:24: error: mpm_common.h: No such file or directory
mpm_common.c:44:20: error: ap_mpm.h: No such file or directory
mpm_common.c:45:23: error: ap_listen.h: No such file or directory
mpm_common.c:49:24: error: scoreboard.h: No such file or directory
mpm_common.c:71: error: expected â)â before â(â token
mpm_common.c:80: warning: data definition has no type or storage class
mpm_common.c:124: error: expected declaration specifiers or â...â before âaction_tâ
mpm_common.c: In function âreclaim_one_pidâ:
mpm_common.c:140: error: âactionâ undeclared (first use in this function)
mpm_common.c:140: error: (Each undeclared identifier is reported only once
mpm_common.c:140: error: for each function it appears in.)
mpm_common.c:141: error: âDO_NOTHINGâ undeclared (first use in this function)
mpm_common.c:144: error: âSEND_SIGTERMâ undeclared (first use in this function)
mpm_common.c:146: error: âAPLOG_MARKâ undeclared (first use in this function)
mpm_common.c:146: error: âAPLOG_WARNINGâ undeclared (first use in this function)
mpm_common.c:147: error: âap_server_confâ undeclared (first use in this function)
mpm_common.c:155: error: âSEND_SIGKILLâ undeclared (first use in this function)
mpm_common.c:156: error: âAPLOG_ERRâ undeclared (first use in this function)
mpm_common.c:175: error: âGIVEUPâ undeclared (first use in this function)
mpm_common.c: In function âap_reclaim_child_processesâ:
mpm_common.c:205: error: expected specifier-qualifier-list before âaction_tâ
mpm_common.c:208: error: âDO_NOTHINGâ undeclared (first use in this function)
mpm_common.c:208: warning: excess elements in struct initializer
mpm_common.c:208: warning: (near initialization for âaction_table[0]â)
mpm_common.c:208: warning: excess elements in struct initializer
mpm_common.c:208: warning: (near initialization for âaction_table[0]â)
mpm_common.c:212: error: âSEND_SIGTERMâ undeclared (first use in this function)
mpm_common.c:212: warning: excess elements in struct initializer
mpm_common.c:212: warning: (near initialization for âaction_table[1]â)
mpm_common.c:212: warning: excess elements in struct initializer
mpm_common.c:212: warning: (near initialization for âaction_table[1]â)
mpm_common.c:213: warning: excess elements in struct initializer
mpm_common.c:213: warning: (near initialization for âaction_table[2]â)
mpm_common.c:213: warning: excess elements in struct initializer
mpm_common.c:213: warning: (near initialization for âaction_table[2]â)
mpm_common.c:214: warning: excess elements in struct initializer
mpm_common.c:214: warning: (near initialization for âaction_table[3]â)
mpm_common.c:214: warning: excess elements in struct initializer
mpm_common.c:214: warning: (near initialization for âaction_table[3]â)
mpm_common.c:215: error: âSEND_SIGKILLâ undeclared (first use in this function)
mpm_common.c:215: warning: excess elements in struct initializer
mpm_common.c:215: warning: (near initialization for âaction_table[4]â)
mpm_common.c:215: warning: excess elements in struct initializer
mpm_common.c:215: warning: (near initialization for âaction_table[4]â)
mpm_common.c:216: error: âGIVEUPâ undeclared (first use in this function)
mpm_common.c:216: warning: excess elements in struct initializer
mpm_common.c:216: warning: (near initialization for âaction_table[5]â)
mpm_common.c:216: warning: excess elements in struct initializer
mpm_common.c:216: warning: (near initialization for âaction_table[5]â)
mpm_common.c:223: error: âAP_MPMQ_MAX_DAEMON_USEDâ undeclared (first use in this function)
mpm_common.c:237: error: âstruct <anonymous>â has no member named âaction_timeâ
mpm_common.c:248: error: âap_scoreboard_imageâ undeclared (first use in this function)
mpm_common.c:254: error: âstruct <anonymous>â has no member named âactionâ
mpm_common.c:254: error: too many arguments to function âreclaim_one_pidâ
mpm_common.c:266: error: âstruct <anonymous>â has no member named âactionâ
mpm_common.c:266: error: too many arguments to function âreclaim_one_pidâ
mpm_common.c:279: error: âstruct <anonymous>â has no member named âactionâ
mpm_common.c: In function âap_relieve_child_processesâ:
mpm_common.c:288: error: âAP_MPMQ_MAX_DAEMON_USEDâ undeclared (first use in this function)
mpm_common.c:292: error: âap_scoreboard_imageâ undeclared (first use in this function)
mpm_common.c:298: error: âDO_NOTHINGâ undeclared (first use in this function)
mpm_common.c:298: error: too many arguments to function âreclaim_one_pidâ
mpm_common.c:307: error: too many arguments to function âreclaim_one_pidâ
mpm_common.c: In function âap_mpm_safe_killâ:
mpm_common.c:344: error: âAPLOG_MARKâ undeclared (first use in this function)
mpm_common.c:344: error: âAPLOG_NOTICEâ undeclared (first use in this function)
mpm_common.c:344: error: âap_server_confâ undeclared (first use in this function)
mpm_common.c: In function âap_process_child_statusâ:
mpm_common.c:431: error: âAPEXIT_CHILDSICKâ undeclared (first use in this function)
mpm_common.c:435: error: âAPEXIT_CHILDFATALâ undeclared (first use in this function)
mpm_common.c:436: error: âAPLOG_MARKâ undeclared (first use in this function)
mpm_common.c:436: error: âAPLOG_ALERTâ undeclared (first use in this function)
mpm_common.c:437: error: âap_server_confâ undeclared (first use in this function)
mpm_common.c:451: error: âAP_SIG_GRACEFULâ undeclared (first use in this function)
mpm_common.c:457: error: âAPLOG_NOTICEâ undeclared (first use in this function)
mpm_common.c:462: error: âap_coredump_dirâ undeclared (first use in this function)
mpm_common.c: In function âinitgroupsâ:
mpm_common.c:548: warning: assignment makes pointer from integer without a cast
mpm_common.c:549: error: dereferencing pointer to incomplete type
mpm_common.c:552: error: dereferencing pointer to incomplete type
mpm_common.c:554: error: dereferencing pointer to incomplete type
mpm_common.c: In function âAP_DECLAREâ:
mpm_common.c:568: error: expected declaration specifiers before âap_mpm_pod_openâ
mpm_common.c:588: error: expected declaration specifiers before âAP_DECLAREâ
mpm_common.c:607: error: expected declaration specifiers before âAP_DECLAREâ
mpm_common.c:624: error: expected â)â before â*â token
mpm_common.c:644: error: expected â)â before â*â token
mpm_common.c:722: error: expected declaration specifiers before âAP_DECLAREâ
mpm_common.c:734: error: expected â)â before â*â token
mpm_common.c:760: error: parameter âap_pid_fnameâ is initialized
mpm_common.c:762: error: expected â)â before â*â token
mpm_common.c:780: error: expected â)â before â*â token
mpm_common.c:794: error: parameter âap_lock_fnameâ is initialized
mpm_common.c:796: error: expected â)â before â*â token
mpm_common.c:810: error: parameter âap_max_requests_per_childâ is initialized
mpm_common.c:812: error: expected â)â before â*â token
mpm_common.c:827: error: âMAX_STRING_LENâ undeclared (first use in this function)
mpm_common.c:830: error: expected â)â before â*â token
mpm_common.c:861: error: parameter âap_graceful_shutdown_timeoutâ is initialized
mpm_common.c:863: error: expected â)â before â*â token
mpm_common.c:876: error: expected declaration specifiers before âapr_lockmech_eâ
mpm_common.c:878: error: parameter âap_valid_accept_mutex_stringâ is initialized
mpm_common.c:897: error: expected declaration specifiers before âAP_DECLAREâ
mpm_common.c:951: error: storage class specified for parameter âdash_k_argâ
mpm_common.c:954: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â{â token
mpm_common.c:964: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â{â token
mpm_common.c:1054: error: expected â)â before â*â token
mpm_common.c:1114: error: parameter âap_max_mem_freeâ is initialized
mpm_common.c:1116: error: expected â)â before â*â token
mpm_common.c:1163: error: storage class specified for parameter âparent_pidâ
mpm_common.c:1163: error: storage class specified for parameter âmy_pidâ
mpm_common.c:1211: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â{â token
mpm_common.c:1245: error: expected â)â before â*â token
mpm_common.c:1251: error: expected â)â before â*â token
mpm_common.c:1315: error: old-style parameter declarations in prototyped function definition
mpm_common.c:568: error: parameter name omitted
mpm_common.c:1315: error: expected â{â at end of input
make[2]: *** [mpm_common.lo] Error 1
make[2]: Leaving directory `/usr/local/directadmin/custombuild/httpd-2.2.9/server'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/directadmin/custombuild/httpd-2.2.9/server'
make: *** [all-recursive] Error 1

*** The make has failed, do you want to try to make again? (y,n):
y

Trying to make Apache 2...
make: getcwd: No such file or directory
make: *** No targets specified and no makefile found.  Stop.

*** The make has failed, do you want to try to make again? (y,n):
y

Trying to make Apache 2...
make: getcwd: No such file or directory
make: *** No targets specified and no makefile found.  Stop.

*** The make has failed, do you want to try to make again? (y,n):
y

Trying to make Apache 2...
make: getcwd: No such file or directory
make: *** No targets specified and no makefile found.  Stop.

*** The make has failed, do you want to try to make again? (y,n):

i already tried a few times yes if i do no it stops with isntalling how can this be fixed ?


EDIT

On another server i have the same but then by update FreeType

Code:
make: *** [/usr/local/directadmin/custombuild/freetype-2.3.6/objs/ftbase.lo] Error 1

*** The make has failed, do you want to try to make again? (y,n):
y

Trying to make FreeType...
make: getcwd: No such file or directory
make: *** No targets specified and no makefile found.  Stop.

*** The make has failed, do you want to try to make again? (y,n):
y

Trying to make FreeType...
make: getcwd: No such file or directory
make: *** No targets specified and no makefile found.  Stop.

*** The make has failed, do you want to try to make again? (y,n):
y

Trying to make FreeType...
make: getcwd: No such file or directory
make: *** No targets specified and no makefile found.  Stop.

*** The make has failed, do you want to try to make again? (y,n):
 
Last edited:

kanary

Verified User
Joined
Jun 8, 2007
Messages
113
Location
Holland - Het westland
server1 has been fixt after an yum update

but the freetype errors are still there and already had an yum update

Does anyone knows how to fix that ?
 

nobaloney

NoBaloney Internet Svcs - In Memoriam †
Joined
Jun 16, 2003
Messages
26,119
Location
California
It appears that getcwd is not installed on your server. What OS Distribution are you using?

Jeff
 

nobaloney

NoBaloney Internet Svcs - In Memoriam †
Joined
Jun 16, 2003
Messages
26,119
Location
California
You should either find out from distributors of those distributions how to get it installed, or check with DirectAdmin Support.

And for general information, RedHat does not publish CentOS, and they do not like it when CentOS is referrred to as RedHat.

From what you wrote, it's likely you're using CentOS, but if you are using Red Hat, you can get support from them, as Red Hat Enterprise Linux is only sold with support.

Jeff
 
Top