Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Проблема при установке Apache 2 [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Russian
View previous topic :: View next topic  
Author Message
Laitr Keiows
Moderator
Moderator


Joined: 04 Jul 2005
Posts: 891
Location: Kobe, Japan

PostPosted: Tue Dec 13, 2005 10:42 pm    Post subject: Проблема при установке Apache 2 [solved] Reply with quote

Code:
checking for APR-util... yes
  adding "-L/usr/lib" to LDFLAGS
  adding "-I/usr/include/db4.2" to INCLUDES
checking for i686-pc-linux-gnu-gcc... i386-pc-linux-gnu-gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.

!!! ERROR: net-www/apache-2.0.54-r31 failed.
!!! Function src_compile, Line 161, Exitcode 77
!!! bad ./configure please submit bug report to bugs.gentoo.org. Include your config.layout and config.log


Смотрю config.log, и что я вижу:
Code:
CC='i386-pc-linux-gnu-gcc'
CFLAGS='-march=pentium-m -O2 -pipe -fomit-frame-pointer -pthread'
CORE_IMPLIB=''
CORE_IMPLIB_FILE=''
CPP='i386-pc-linux-gnu-gcc -E'


Конфиг GCC:
Code:
localhost apache-2.0.54-r31 # gcc-config -l
 [1] i686-pc-linux-gnu-3.4.4 *
 [2] i686-pc-linux-gnu-3.4.4-hardened


Подскажите пожалуйста в чем тут дело, откуда ноги у CC='i386-pc-linux-gnu-gcc'?


Last edited by Laitr Keiows on Thu Dec 15, 2005 1:02 am; edited 1 time in total
Back to top
View user's profile Send private message
Laitr Keiows
Moderator
Moderator


Joined: 04 Jul 2005
Posts: 891
Location: Kobe, Japan

PostPosted: Wed Dec 14, 2005 2:38 am    Post subject: Reply with quote

Code:
Configuring Apache Portable Runtime library ...

checking for APR... yes
  setting CC to "i386-pc-linux-gnu-gcc"
  setting CPP to "i386-pc-linux-gnu-gcc -E"
  adding "-pthread" to CFLAGS
  setting CPPFLAGS to " -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE"
  setting LDFLAGS to " "
  setting INCLUDES to " -I/usr/include/apr-0 "

Configuring Apache Portable Runtime Utility library...

checking for APR-util... yes
  adding "-L/usr/lib" to LDFLAGS
  adding "-I/usr/include/db4.2" to INCLUDES
checking for i686-pc-linux-gnu-gcc... i386-pc-linux-gnu-gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.

!!! ERROR: net-www/apache-2.0.54-r31 failed.
!!! Function src_compile, Line 161, Exitcode 77
!!! bad ./configure please submit bug report to bugs.gentoo.org. Include your config.layout and config.log
!!! If you need support, post the topmost build error, NOT this status message.


Подстановка СС вручную в make.conf не помогает :(
Back to top
View user's profile Send private message
Sasha2
Apprentice
Apprentice


Joined: 18 Jun 2005
Posts: 206

PostPosted: Wed Dec 14, 2005 7:28 am    Post subject: Reply with quote

А симлинк с i386 на i686?
Back to top
View user's profile Send private message
Laitr Keiows
Moderator
Moderator


Joined: 04 Jul 2005
Posts: 891
Location: Kobe, Japan

PostPosted: Wed Dec 14, 2005 8:11 am    Post subject: Reply with quote

Sasha2 wrote:
А симлинк с i386 на i686?

Проблемы это не решает, та же самая ошибка.
Пробовал обнулять CFLAGS и CXXFLAGS, не помогла.
Code:
localhost portage # ls -la /etc/make.profile
lrwxrwxrwx  1 root root 48 Nov 28 00:09 /etc/make.profile -> ../usr/portage/profiles/default-linux/x86/2005.1
Back to top
View user's profile Send private message
ba
l33t
l33t


Joined: 25 May 2003
Posts: 804

PostPosted: Wed Dec 14, 2005 9:25 am    Post subject: Reply with quote

Code:
emerge info
покажи
Back to top
View user's profile Send private message
rusxakep
Guru
Guru


Joined: 09 Jul 2004
Posts: 458
Location: Moscow, Russia

PostPosted: Wed Dec 14, 2005 9:33 am    Post subject: Reply with quote

и cat /etc/fstab
Back to top
View user's profile Send private message
Laitr Keiows
Moderator
Moderator


Joined: 04 Jul 2005
Posts: 891
Location: Kobe, Japan

PostPosted: Wed Dec 14, 2005 9:45 am    Post subject: Reply with quote

ba wrote:
Code:
emerge info
покажи

Code:
Portage 2.0.51.22-r3 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6.1                                              2-co-0.7.1 i686)
=================================================================
System uname: 2.6.12-co-0.7.1 i686 Intel(R) Pentium(R) M processor 1.60GHz
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.4, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/                                              config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/                                              distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 alsa apache2 apm arts avi berkdb bitmap-fonts bzip2 cjk crypt curl eds                                               emboss encode expat foomaticdb gd gif gstreamer gtk2 imap imlib jpeg libg++ libw                                              ww mad maildir mikmod motif mp3 mpeg mysql ncurses nls no-htdocs nptl nptlonly o                                              gg oggvorbis opengl oss pam pam-mysql pcre pdflib png python quicktime readline                                               sasl ssl tcpd tiff truetype truetype-fonts type1-fonts unicode userlocales utf8                                               vhosts vorbis xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVER                                              LAY


При чем тут fstab?
Глючный cofs никак не участвует в работе системы.
Back to top
View user's profile Send private message
ba
l33t
l33t


Joined: 25 May 2003
Posts: 804

PostPosted: Wed Dec 14, 2005 10:08 am    Post subject: Reply with quote

Code:
echo $PATH

еще
Back to top
View user's profile Send private message
Laitr Keiows
Moderator
Moderator


Joined: 04 Jul 2005
Posts: 891
Location: Kobe, Japan

PostPosted: Wed Dec 14, 2005 10:21 am    Post subject: Reply with quote

ba wrote:
Code:
echo $PATH

еще

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.4.4

Все что угодно кроме апача собирается и работает, а апач ни в какую!
Back to top
View user's profile Send private message
rusxakep
Guru
Guru


Joined: 09 Jul 2004
Posts: 458
Location: Moscow, Russia

PostPosted: Wed Dec 14, 2005 12:02 pm    Post subject: Reply with quote

Во-первых. Разберись с i386. Должно быть i686.

Configuring Apache Portable Runtime library ...

checking for APR... yes
setting CC to "i686-pc-linux-gnu-gcc"
setting CPP to "i686-pc-linux-gnu-gcc -E"
adding "-pthread" to CFLAGS
setting CPPFLAGS to " -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE"
setting LDFLAGS to " "
setting INCLUDES to " -I/usr/include/apr-0 "

Configuring Apache Portable Runtime Utility library...

checking for APR-util... yes
adding "-L/usr/lib" to LDFLAGS
adding "-I/usr/include/db4.2" to INCLUDES
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes


это от apache 2.0.55 на gcc 3.3.6, как видишь определяется все нормально.

config.log (поможет):

configure:3447: checking for C compiler default output file name
configure:3450: i686-pc-linux-gnu-gcc -march=pentium4 -O2 -pipe -fomit-frame-poi
nter -pthread -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_
SOURCE -D_GNU_SOURCE -L/usr/lib conftest.c >&5
configure:3453: $? = 0
configure:3499: result: a.out
configure:3504: checking whether the C compiler works
configure:3510: ./a.out
configure:3513: $? = 0
configure:3530: result: yes

найди у себя в /var/tmp/apache-2.0.54..... тоже самое и поймешь в чем ошибка.
Back to top
View user's profile Send private message
Laitr Keiows
Moderator
Moderator


Joined: 04 Jul 2005
Posts: 891
Location: Kobe, Japan

PostPosted: Thu Dec 15, 2005 1:03 am    Post subject: Reply with quote

Проблема решилась пересборкой apr и apr-util
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Russian 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