Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
installing apache
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
Brennos
n00b
n00b


Joined: 25 Jun 2004
Posts: 43
Location: Belgium

PostPosted: Tue Jul 06, 2004 9:21 am    Post subject: installing apache Reply with quote

I've downloaded the apache 1.3.31 source from apache.org extracted it and tried to install it as root. Which gave me the following:

athena apache_1.3.31 # ./configure
Configuring for Apache, Version 1.3.31
+ Warning: Configuring Apache with default settings.
+ This is probably not what you really want.
+ Please read the README.configure and INSTALL files
+ first or at least run './configure --help' for
+ a compact summary of available options.
+ using installation path layout: Apache (config.layout)
head: `-1' option is obsolete; use `-n 1'
Try `head --help' for more information.
head: `-1' option is obsolete; use `-n 1'
Try `head --help' for more information.
head: `-1' option is obsolete; use `-n 1'
Try `head --help' for more information.
head: `-1' option is obsolete; use `-n 1'
Try `head --help' for more information.
Creating Makefile
Creating Configuration.apaci in src
head: `-1' option is obsolete; use `-n 1'
Try `head --help' for more information.
Creating Makefile in src
+ configured for Linux platform
tail: `-1' option is obsolete; use `-n 1'
Try `tail --help' for more information.
+ setting C compiler to gcc
tail: `-1' option is obsolete; use `-n 1'
Try `tail --help' for more information.
+ setting C pre-processor to gcc -E
+ using "tr [a-z] [A-Z]" to uppercase
+ checking for system header files
tail: `-1' option is obsolete; use `-n 1'
Try `tail --help' for more information.
tail: `-1' option is obsolete; use `-n 1'
Try `tail --help' for more information.
tail: `-1' option is obsolete; use `-n 1'
Try `tail --help' for more information.
tail: `-1' option is obsolete; use `-n 1'
Try `tail --help' for more information.
tail: `-1' option is obsolete; use `-n 1'
Try `tail --help' for more information.
tail: `-1' option is obsolete; use `-n 1'
Try `tail --help' for more information.
tail: `-1' option is obsolete; use `-n 1'
Try `tail --help' for more information.
tail: `-1' option is obsolete; use `-n 1'
Try `tail --help' for more information.
+ adding selected modules
head: `-1' option is obsolete; use `-n 1'
Try `head --help' for more information.
head: `-1' option is obsolete; use `-n 1'
Try `head --help' for more information.
head: `-1' option is obsolete; use `-n 1'
Try `head --help' for more information.
head: `-1' option is obsolete; use `-n 1'
Try `head --help' for more information.
head: `-1' option is obsolete; use `-n 1'
Try `head --help' for more information.
head: `-1' option is obsolete; use `-n 1'
Try `head --help' for more information.
head: `-1' option is obsolete; use `-n 1'
Try `head --help' for more information.
head: `-1' option is obsolete; use `-n 1'
Try `head --help' for more information.
head: `-1' option is obsolete; use `-n 1'
Try `head --help' for more information.
head: `-1' option is obsolete; use `-n 1'
Try `head --help' for more information.
head: `-1' option is obsolete; use `-n 1'
Try `head --help' for more information.
head: `-1' option is obsolete; use `-n 1'
Try `head --help' for more information.
head: `-1' option is obsolete; use `-n 1'
Try `head --help' for more information.
head: `-1' option is obsolete; use `-n 1'
Try `head --help' for more information.
head: `-1' option is obsolete; use `-n 1'
Try `head --help' for more information.
head: `-1' option is obsolete; use `-n 1'
Try `head --help' for more information.
head: `-1' option is obsolete; use `-n 1'
Try `head --help' for more information.
+ using system Expat
+ checking sizeof various data types
tail: `-1' option is obsolete; use `-n 1'
Try `tail --help' for more information.
+ doing sanity check on compiler and options
Creating Makefile in src/support
Creating Makefile in src/regex
Creating Makefile in src/os/unix
Creating Makefile in src/ap
Creating Makefile in src/main
Creating Makefile in src/modules/standard
athena apache_1.3.31 # make
===> src
make[1]: Entering directory `/root/apache_1.3.31'
make[2]: Entering directory `/root/apache_1.3.31/src'
===> src/regex
make[3]: Nothing to be done for `all'.
<=== src/regex
===> src/os/unix
gcc -c -I../../os/unix -I../../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../../apaci` os.c
gcc -c -I../../os/unix -I../../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../../apaci` os-inline.c
rm -f libos.a
ar cr libos.a os.o os-inline.o
ranlib libos.a
<=== src/os/unix
===> src/ap
gcc -c -I../os/unix -I../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../apaci` ap_cpystrn.c
gcc -c -I../os/unix -I../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../apaci` ap_execve.c
gcc -c -I../os/unix -I../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../apaci` ap_fnmatch.c
gcc -c -I../os/unix -I../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../apaci` ap_getpass.c
gcc -c -I../os/unix -I../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../apaci` ap_md5c.c
gcc -c -I../os/unix -I../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../apaci` ap_signal.c
gcc -c -I../os/unix -I../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../apaci` ap_slack.c
gcc -c -I../os/unix -I../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../apaci` ap_snprintf.c
gcc -c -I../os/unix -I../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../apaci` ap_sha1.c
gcc -c -I../os/unix -I../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../apaci` ap_checkpass.c
gcc -c -I../os/unix -I../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../apaci` ap_base64.c
gcc -c -I../os/unix -I../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../apaci` ap_ebcdic.c
gcc -c -I../os/unix -I../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../apaci` ap_strtol.c
rm -f libap.a
ar cr libap.a ap_cpystrn.o ap_execve.o ap_fnmatch.o ap_getpass.o ap_md5c.o ap_signal.o ap_slack.o ap_snprintf.o ap_sha1.o ap_checkpass.o ap_base64.o ap_ebcdic.o ap_strtol.o
ranlib libap.a
<=== src/ap
===> src/main
gcc -c -I../os/unix -I../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../apaci` gen_test_char.c
gcc -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../apaci` -o gen_test_char gen_test_char.o -lm -lcrypt -lexpat./gen_test_char >test_char.h
gcc -c -I../os/unix -I../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../apaci` alloc.c
gcc -c -I../os/unix -I../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../apaci` buff.c
gcc -c -I../os/unix -I../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../apaci` http_config.c
gcc -c -I../os/unix -I../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../apaci` http_core.c
gcc -c -I../os/unix -I../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../apaci` http_log.c
gcc -c -I../os/unix -I../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../apaci` http_main.c
gcc -c -I../os/unix -I../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../apaci` http_protocol.c
gcc -c -I../os/unix -I../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../apaci` http_request.c
gcc -c -I../os/unix -I../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../apaci` http_vhost.c
gcc -c -I../os/unix -I../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../apaci` util.c
gcc -c -I../os/unix -I../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../apaci` util_date.c
gcc -c -I../os/unix -I../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../apaci` util_script.c
gcc -c -I../os/unix -I../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../apaci` util_uri.c
gcc -c -I../os/unix -I../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../apaci` util_md5.c
gcc -c -I../os/unix -I../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../apaci` rfc1413.c
rm -f libmain.a
ar cr libmain.a alloc.o buff.o http_config.o http_core.o http_log.o http_main.o http_protocol.o http_request.o http_vhost.o util.o util_date.o util_script.o util_uri.o util_md5.o rfc1413.o
ranlib libmain.a
<=== src/main
===> src/lib
<=== src/lib
===> src/modules
===> src/modules/standard
gcc -c -I../../os/unix -I../../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../../apaci` mod_env.c
gcc -c -I../../os/unix -I../../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../../apaci` mod_log_config.c
gcc -c -I../../os/unix -I../../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../../apaci` mod_mime.c
gcc -c -I../../os/unix -I../../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../../apaci` mod_negotiation.c
gcc -c -I../../os/unix -I../../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../../apaci` mod_status.c
gcc -c -I../../os/unix -I../../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../../apaci` mod_include.c
gcc -c -I../../os/unix -I../../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../../apaci` mod_autoindex.cgcc -c -I../../os/unix -I../../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../../apaci` mod_dir.c
gcc -c -I../../os/unix -I../../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../../apaci` mod_cgi.c
gcc -c -I../../os/unix -I../../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../../apaci` mod_asis.c
gcc -c -I../../os/unix -I../../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../../apaci` mod_imap.c
gcc -c -I../../os/unix -I../../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../../apaci` mod_actions.c
gcc -c -I../../os/unix -I../../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../../apaci` mod_userdir.c
gcc -c -I../../os/unix -I../../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../../apaci` mod_alias.c
gcc -c -I../../os/unix -I../../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../../apaci` mod_access.c
gcc -c -I../../os/unix -I../../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../../apaci` mod_auth.c
gcc -c -I../../os/unix -I../../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../../apaci` mod_setenvif.c
rm -f libstandard.a
ar cr libstandard.a mod_env.o mod_log_config.o mod_mime.o mod_negotiation.o mod_status.o mod_include.o mod_autoindex.o mod_dir.o mod_cgi.o mod_asis.o mod_imap.o mod_actions.o mod_userdir.o mod_alias.o mod_access.o mod_auth.o mod_setenvif.o
ranlib libstandard.a
<=== src/modules/standard
<=== src/modules
gcc -c -I./os/unix -I./include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `./apaci` modules.c
gcc -c -I./os/unix -I./include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `./apaci` buildmark.c
gcc -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `./apaci` \
-o httpd buildmark.o modules.o modules/standard/libstandard.a main/libmain.a ./os/unix/libos.a ap/libap.a regex/libregex.a -lm -lcrypt -lexpat
modules.o(.data+0x8): undefined reference to `log_config_module'
modules.o(.data+0x18): undefined reference to `include_module'
modules.o(.data+0x30): undefined reference to `actions_module'
modules.o(.data+0x54): undefined reference to `log_config_module'
modules.o(.data+0x64): undefined reference to `include_module'
modules.o(.data+0x7c): undefined reference to `actions_module'
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/root/apache_1.3.31/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/root/apache_1.3.31'
make: *** [build] Error 2


At first I tried it with serveral flags after ./configure, but even leaving them off didn't help. Any help is welcome.
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Tue Jul 06, 2004 10:04 am    Post subject: Reply with quote

Might help, might not help (can't tell if it's the root of the problem), but try modifying the configure script replacing all instances of
Code:
head -1
with
Code:
head -n 1
(similarly for tail -1). Maybe it's indirectly causing some defines to break.
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
Immortal Q
Apprentice
Apprentice


Joined: 14 Sep 2003
Posts: 241
Location: Silicone Valley

PostPosted: Wed Jul 07, 2004 3:01 am    Post subject: Reply with quote

You might just want to emerge it and save yourself the headache.
_________________
Osmos.org
Now with 20% fewer rabid primates.
Back to top
View user's profile Send private message
woolsherpahat
Guru
Guru


Joined: 09 Mar 2004
Posts: 347

PostPosted: Wed Jul 07, 2004 4:54 am    Post subject: Reply with quote

Inless you have a good reason to compile it from source I suggest you emerge it. There's numerous guides for Apache2 + SSL + PHP4 installations lurking around the forums that work great. Granted I've never used them for a Gentoo/PPC box but they were very helpful for x86s.
Back to top
View user's profile Send private message
Immortal Q
Apprentice
Apprentice


Joined: 14 Sep 2003
Posts: 241
Location: Silicone Valley

PostPosted: Wed Jul 07, 2004 5:13 am    Post subject: Reply with quote

10k1 wrote:
Inless you have a good reason to compile it from source I suggest you emerge it. There's numerous guides for Apache2 + SSL + PHP4 installations lurking around the forums that work great. Granted I've never used them for a Gentoo/PPC box but they were very helpful for x86s.

They'll work on any platform that'll compile the respective packages, and that emphatically includes PPC. Right now, the only reason NOT to use Apache2 as opposed to Apache1.3 is the thread-safe issue. Why not just emerge apache2?
If you do have a valid gripe against v2 (threads linking, etc) then go with v1.3, for which there are also ebuilds.
_________________
Osmos.org
Now with 20% fewer rabid primates.
Back to top
View user's profile Send private message
Brennos
n00b
n00b


Joined: 25 Jun 2004
Posts: 43
Location: Belgium

PostPosted: Thu Jul 08, 2004 10:45 am    Post subject: Reply with quote

I already have Apache 2 running, but I can't get PHP5 running...
Back to top
View user's profile Send private message
Immortal Q
Apprentice
Apprentice


Joined: 14 Sep 2003
Posts: 241
Location: Silicone Valley

PostPosted: Thu Jul 08, 2004 7:10 pm    Post subject: Reply with quote

Have you tried the php-cvs ebuild? I think that'll install the latest release candidate.
_________________
Osmos.org
Now with 20% fewer rabid primates.
Back to top
View user's profile Send private message
Brennos
n00b
n00b


Joined: 25 Jun 2004
Posts: 43
Location: Belgium

PostPosted: Fri Jul 09, 2004 3:04 pm    Post subject: Reply with quote

I downloaded RC3, and configured it as Apache 2 module. With apxs. But when I try to access a php file, he only gives me the phpcode, doesn't execute it.
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Fri Jul 09, 2004 3:40 pm    Post subject: Reply with quote

Have you registered the PHP handlers in the config file?
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
Immortal Q
Apprentice
Apprentice


Joined: 14 Sep 2003
Posts: 241
Location: Silicone Valley

PostPosted: Sat Jul 10, 2004 2:33 am    Post subject: Reply with quote

moocha wrote:
Have you registered the PHP handlers in the config file?


Specifically, add "-D PHP5" or the equivalent to the options in /etc/conf.d/apache2. This will force apache to include the goodies in the appropriate .conf file, and you should be good to go.
_________________
Osmos.org
Now with 20% fewer rabid primates.
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Sat Jul 10, 2004 8:28 am    Post subject: Reply with quote

Immortal Q wrote:
moocha wrote:
Have you registered the PHP handlers in the config file?


Specifically, add "-D PHP5" or the equivalent to the options in /etc/conf.d/apache2. This will force apache to include the goodies in the appropriate .conf file, and you should be good to go.


He's not emerging it, he's compiling it from source...
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
Immortal Q
Apprentice
Apprentice


Joined: 14 Sep 2003
Posts: 241
Location: Silicone Valley

PostPosted: Sat Jul 10, 2004 10:11 pm    Post subject: Reply with quote

moocha wrote:
Immortal Q wrote:
moocha wrote:
Have you registered the PHP handlers in the config file?


Specifically, add "-D PHP5" or the equivalent to the options in /etc/conf.d/apache2. This will force apache to include the goodies in the appropriate .conf file, and you should be good to go.


He's not emerging it, he's compiling it from source...


Right - I spaced, and assumed he switched to ebuilds. If not, then it sounds as if he's lacking the AddType lines and maybe the LoadModule. These, and other wonderful installation tips, can be found here.
_________________
Osmos.org
Now with 20% fewer rabid primates.
Back to top
View user's profile Send private message
Brennos
n00b
n00b


Joined: 25 Jun 2004
Posts: 43
Location: Belgium

PostPosted: Sun Jul 11, 2004 9:44 am    Post subject: Reply with quote

Yes indeed I forget to add AddType :oops: I'm sorry for asking such a stupid question...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum