Page 1 of 1

Compile Errors

Posted: 2004-10-11 17:42
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??

Re: Compile Errors

Posted: 2004-10-11 20:54
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/

Re: Compile Errors

Posted: 2004-10-12 12:39
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?

Re: Compile Errors

Posted: 2004-10-12 21:25
by Joe User
Die verwendete apr ist inkompatibel zu Apache. Patches? Flags? ./configure?

Re: Compile Errors

Posted: 2004-10-13 03:59
by alexander newald
Meine ./configure steht oben, keine Patches, keine extra Flags - Was meinst du mit apr?

Re: Compile Errors

Posted: 2004-10-13 10:07
by Joe User

Re: Compile Errors

Posted: 2004-10-13 14:00
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?

Re: Compile Errors

Posted: 2004-10-13 16:43
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?

Re: Compile Errors

Posted: 2004-10-13 16:52
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...

Re: Compile Errors

Posted: 2004-10-13 21:34
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