Compile Errors

Apache, Lighttpd, nginx, Cherokee
Post Reply
alexander newald
Posts: 1117
Joined: 2002-09-27 00:54
Location: Hannover
Contact:
 

Compile Errors

Post by alexander newald »

Hi,

ich versuche gerade 2.0.52 zu bauen. Mit gleicher Konfiguration hat es für eine Vorversion funktioniert. Nun nicht mehr:

Code: Select all

./configure                                                             
        --prefix=/usr/local/apache2                                     
        --sysconfdir=/etc/httpd                                         
        --disable-actions                                               
        --disable-asis                                                  
        --disable-imap                                                  
        --disable-userdir                                               
        --enable-auth-anon                                              
        --enable-cern-meta                                              
        --enable-logio                                                  
        --enable-rewrite                                                
        --enable-speling                                                
        --enable-unique-id                                              
        --enable-suexec                                                 
        --with-suexec-caller=wwwrun                                     
        --with-suexec-userdir=/                                         
        --with-suexec-docroot=/home                                     
        --with-mpm=prefor
und bekomme diesen Fehler:

Code: Select all

make[1]: Leaving directory `/home/admin/INSTALL/httpd-2.0.52/support'
make[1]: Entering directory `/home/admin/INSTALL/httpd-2.0.52'
/home/admin/INSTALL/httpd-2.0.52/srclib/apr/libtool --silent --mode=compile gcc  -g -O2 -pthread    -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SO
URCE -D_GNU_SOURCE -DAP_HAVE_DESIGNATED_INITIALIZER   -I/home/admin/INSTALL/httpd-2.0.52/srclib/apr/include -I/home/admin/INSTALL/httpd-2.0.52/srclib/apr-util/include
-I. -I/home/admin/INSTALL/httpd-2.0.52/os/unix -I/home/admin/INSTALL/httpd-2.0.52/server/mpm/prefork -I/home/admin/INSTALL/httpd-2.0.52/modules/http -I/home/admin/INST
ALL/httpd-2.0.52/modules/filters -I/home/admin/INSTALL/httpd-2.0.52/modules/proxy -I/home/admin/INSTALL/httpd-2.0.52/include -I/home/admin/INSTALL/httpd-2.0.52/modules
/generators -I/home/admin/INSTALL/httpd-2.0.52/modules/dav/main -prefer-non-pic -static -c modules.c && touch modules.lo
/home/admin/INSTALL/httpd-2.0.52/srclib/apr/libtool --silent --mode=link gcc  -g -O2 -pthread    -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURC
E -D_GNU_SOURCE -DAP_HAVE_DESIGNATED_INITIALIZER   -I/home/admin/INSTALL/httpd-2.0.52/srclib/apr/include -I/home/admin/INSTALL/httpd-2.0.52/srclib/apr-util/include -I.
 -I/home/admin/INSTALL/httpd-2.0.52/os/unix -I/home/admin/INSTALL/httpd-2.0.52/server/mpm/prefork -I/home/admin/INSTALL/httpd-2.0.52/modules/http -I/home/admin/INSTALL
/httpd-2.0.52/modules/filters -I/home/admin/INSTALL/httpd-2.0.52/modules/proxy -I/home/admin/INSTALL/httpd-2.0.52/include -I/home/admin/INSTALL/httpd-2.0.52/modules/ge
nerators -I/home/admin/INSTALL/httpd-2.0.52/modules/dav/main -export-dynamic    -o httpd  modules.lo  modules/aaa/mod_access.la modules/aaa/mod_auth.la modules/aaa/mod
_auth_anon.la modules/filters/mod_include.la modules/loggers/mod_log_config.la modules/loggers/mod_logio.la modules/metadata/mod_env.la modules/metadata/mod_cern_meta.
la modules/metadata/mod_unique_id.la modules/metadata/mod_setenvif.la modules/http/mod_http.la modules/http/mod_mime.la modules/generators/mod_status.la modules/genera
tors/mod_autoindex.la modules/generators/mod_suexec.la modules/generators/mod_cgi.la modules/mappers/mod_negotiation.la modules/mappers/mod_dir.la modules/mappers/mod_
speling.la modules/mappers/mod_alias.la modules/mappers/mod_rewrite.la modules/mappers/mod_so.la server/mpm/prefork/libprefork.la server/libmain.la os/unix/libos.la  /
home/admin/INSTALL/httpd-2.0.52/srclib/pcre/libpcre.la /home/admin/INSTALL/httpd-2.0.52/srclib/apr-util/libaprutil-0.la -lgdbm -ldb-4.1 -lexpat /home/admin/INSTALL/htt
pd-2.0.52/srclib/apr/libapr-0.la -lrt -lm -lcrypt -lnsl -lpthread -ldl
server/.libs/libmain.al(main.lo): In function `main':
/home/admin/INSTALL/httpd-2.0.52/server/main.c:576: undefined reference to `ap_prelinked_modules'
/home/admin/INSTALL/httpd-2.0.52/server/main.c:576: undefined reference to `ap_prelinked_modules'
/home/admin/INSTALL/httpd-2.0.52/server/main.c:617: undefined reference to `ap_mpm_run'
server/.libs/libmain.al(main.lo): In function `suck_in_APR':
.
.
.
server/.libs/libmain.al(scoreboard.lo): In function `find_child_by_pid':
/home/admin/INSTALL/httpd-2.0.52/server/scoreboard.c:338: undefined reference to `ap_mpm_query'
server/.libs/libmain.al(scoreboard.lo): In function `ap_update_child_status_from_indexes':
/home/admin/INSTALL/httpd-2.0.52/server/scoreboard.c:379: undefined reference to `ap_my_generation'
os/unix/.libs/libos.al(unixd.lo): In function `unixd_accept':
/home/admin/INSTALL/httpd-2.0.52/os/unix/unixd.c:585: undefined reference to `ap_server_conf'
/home/admin/INSTALL/httpd-2.0.52/os/unix/unixd.c:568: undefined reference to `ap_server_conf'
collect2: ld returned 1 exit status
make[1]: *** [httpd] Error 1
make[1]: Leaving directory `/home/admin/INSTALL/httpd-2.0.52'
make: *** [all-recursive] Error 1
Hat jemand eine Idee??
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: Compile Errors

Post by Joe User »

Alexander Newald wrote:Mit gleicher Konfiguration hat es für eine Vorversion funktioniert.
Das bezweifle ich:
Alexander Newald wrote:

Code: Select all

-with-mpm=prefor
s/prefor/prefork/
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
alexander newald
Posts: 1117
Joined: 2002-09-27 00:54
Location: Hannover
Contact:
 

Re: Compile Errors

Post by alexander newald »

Oh wie schlimm, den letzten Buchstaben beim Copy & Paste abgeschnitten... Die Fehlermeldung nicht wirklich gelesen, denn dort steht es richtig drin?

Sonst eine Idee, die hilft?
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: Compile Errors

Post by Joe User »

Die verwendete apr ist inkompatibel zu Apache. Patches? Flags? ./configure?
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
alexander newald
Posts: 1117
Joined: 2002-09-27 00:54
Location: Hannover
Contact:
 

Re: Compile Errors

Post by alexander newald »

Meine ./configure steht oben, keine Patches, keine extra Flags - Was meinst du mit apr?
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: Compile Errors

Post by Joe User »

PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
alexander newald
Posts: 1117
Joined: 2002-09-27 00:54
Location: Hannover
Contact:
 

Re: Compile Errors

Post by alexander newald »

Code: Select all

/home/admin/INSTALL/httpd-2.0.52/srclib/apr/include -I/home/admin/INSTALL/httpd-2.0.52/srclib/apr-util/include
Da direkt aus der Source sollte das doch funktionieren?
sascha
Posts: 1325
Joined: 2002-04-22 23:08
 

Re: Compile Errors

Post by sascha »

Ich weiss, das hilft dir nicht unbedingt weiter aber ich habe mal eben deinen ./configure & make unter Debian-Sid ausprobiert. Lief einwandfrei durch.

Welche Distribution verwendest du?
alexander newald
Posts: 1117
Joined: 2002-09-27 00:54
Location: Hannover
Contact:
 

Re: Compile Errors

Post by alexander newald »

LFS

Das komische ist nur, dass es mit der Version, die ich vorher verwendet habe auch keinen Fehler gibt. Mir fehlt halt irgendwie der Ansatzpunkt des Fehlers...
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: Compile Errors

Post by Joe User »

Eine meine Testconfigs (Bitte selbst anpassen):

Code: Select all

cd /usr/src/httpd-2.0.52
patch -lNp1 < ../httpd_paths.diff
./buildconf
CFLAGS="-O3 -msse -mmmx -pipe -march=pentium3 -fomit-frame-pointer -fno-strict-aliasing -funroll-loops -mfpmath=sse -ffast-math -fPIC -Wall" CXXFLAGS="-O3 -msse -mmmx -pipe -march=pentium3 -fomit-frame-pointer -fno-strict-aliasing -funroll-loops -mfpmath=sse -ffast-math -fPIC -Wall" ./configure --enable-layout=SuSE91 --with-mpm=worker --enable-nonportable-atomics=yes --with-perl=`which perl` --enable-so --enable-modules="access actions alias asis auth autoindex cern_meta cgid deflate dir env expires headers imap include info log_config mime mime_magic negotiation rewrite setenvif status userdir" --enable-mods-shared="ssl" && make && make install
HTH
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Post Reply