Gentoo Archives: gentoo-server

From: Ben Munat <bent@×××××.com>
To: gentoo-server@l.g.o
Subject: Re: [gentoo-server] Need help installing Apache with PHP on our server
Date: Fri, 10 Feb 2006 02:09:46
Message-Id: 43EBF57E.8080504@munat.com
In Reply to: Re: [gentoo-server] Need help installing Apache with PHP on our server by Ronald Vazquez
1 Hmm, you might try emerging one of these at a time: apache, then mysql, then php. Note
2 that you can turn off all use flags in a package.use entry by doing "-*" and then turning
3 on individual flags after that; something like "=dev-lang/php-4* -* apache2 bcmath
4 berkdb...".
5
6 I'd also carefully consider what you are *really* going to need from these apps and only
7 enable that. When I first got into gentoo, I kept saying stuff like "ooh, yeah, I'll
8 probably want to generate flash with php someday, so I'll enable ming". I'm still undoing
9 all the stuff I did by taking that approach. I think it's better to enable a use flag and
10 recompile when you need it.
11
12 Otherwise, sorry but I don't know the answer to this particular failure... you might
13 check bugzilla (http://bugs.gentoo.org... hmm, although that's weird.... I just tried a
14 bunch of different searches and couldn't get ANY results!! I think gentoo's bugzilla be
15 broken!)
16
17 b
18
19 PS: I'd definitely get yourself an emerge log analyzer so you can see important
20 information in the emerge output. I use portlog-info:
21
22 http://gentooexperimental.org/archive/portlog-info/portlog-info
23
24 You set your PORT_LOGDIR in make.conf and then run this script and it spits out the
25 highlights of the emerge log...
26
27
28 Ronald Vazquez wrote:
29 > Thanks everybody for all the suggestions. OK, I tried:
30 >
31 > # emerge 'dev-lang/php-4*' mysql apache
32 >
33 > whith the following in my /etc/portage/package.use
34 >
35 > =dev-lang/php-4* -adabas -apache apache2 bcmath berkdb birdstep bzip2
36 > calendar cdb cgi cjk -cli crypt ctype curl -db2 dba -dbase -dbmaker -dbx
37 > debug discard-path doc empress empress-bcs esoob exif expat -fastbuild
38 > -fdftk filepro firebird flatfile force-cgi-redirect -frontbase ftp gd
39 > -gd-external gdbm gmp hardenedphp -hyperwave-api iconv imap -informix
40 > inifile -interbase odbc ipv6 -java-external -java-internal kerberos ldap
41 > -libedit mcal mcve memlimit mhash ming -mnogosearch -msql -mssql mysql
42 > ncurses nls -oci8 -oci8-instant-client odbc -oracle7 overload -ovrimos
43 > pecl pcntl pcre -pfpro pic posix -postgres readline -recode -sapdb
44 > session sharedext sharedmem snmp sockets solid spell -sqlite ssl -sybase
45 > -sybase-ct sysvipc -threads tiff tokenizer truetype wddx xml xmlrpc xpm
46 > xsl yaz zip zlib
47 > =dev-db/mysql-4* berkdb big-tables cluster debug doc extraengine
48 > geometry perl readline ssl tcpd utf8
49 > =net-www/apache-2.0.5* apache2 debug doc ldap mpm-prefork no-suexec ssl
50 > threads
51 >
52 >
53 > The compile bombs here:
54 >
55 > ----------------------------------------------------------------------
56 > /bin/sh /var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/libtool
57 > --preserve-dup-deps --mode=compile gcc -I/usr/local/solid/include
58 > -Iext/odbc/ -I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/odbc/
59 > -DPHP_ATOM_INC -I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/include
60 > -I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/main
61 > -I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1 -I/usr/include/libxml2
62 > -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/imap
63 > -I/usr/interbase/include
64 > -I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/mbstring/mbregex
65 > -I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/mbstring/libmbfl
66 > -I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/mbstring/libmbfl/mbfl
67 > -I/usr/include/mcal -I/usr/include/mysql -I/usr/include/pspell
68 > -I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/xml/expat
69 > -I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/TSRM
70 > -I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/Zend -O2
71 > -march=pentium4 -g -Wall -prefer-pic -c
72 > /var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/odbc/php_odbc.c -o
73 > ext/odbc/php_odbc.lo
74 > mkdir ext/odbc/.libs
75 > gcc -I/usr/local/solid/include -Iext/odbc/
76 > -I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/odbc/ -DPHP_ATOM_INC
77 > -I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/include
78 > -I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/main
79 > -I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1 -I/usr/include/libxml2
80 > -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/imap
81 > -I/usr/interbase/include
82 > -I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/mbstring/mbregex
83 > -I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/mbstring/libmbfl
84 > -I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/mbstring/libmbfl/mbfl
85 > -I/usr/include/mcal -I/usr/include/mysql -I/usr/include/pspell
86 > -I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/xml/expat
87 > -I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/TSRM
88 > -I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/Zend -O2 -march=pentium4
89 > -g -Wall -c
90 > /var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/odbc/php_odbc.c -fPIC
91 > -DPIC -o ext/odbc/.libs/php_odbc.o
92 > In file included from
93 > /var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/odbc/php_odbc.c:37:
94 > /var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/odbc/php_odbc_includes.h:185:21:
95 > WINDOWS.H: No such file or directory
96 > /var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/odbc/php_odbc.c: In
97 > function `zif_odbc_execute':
98 > /var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/odbc/php_odbc.c:977:
99 > warning: dereferencing type-punned pointer will break strict-aliasing rules
100 > /var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/odbc/php_odbc.c: In
101 > function `odbc_do_connect':
102 > /var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/odbc/php_odbc.c:2212:
103 > error: `ODBC_TYPE' undeclared (first use in this function)
104 > /var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/odbc/php_odbc.c:2212:
105 > error: (Each undeclared identifier is reported only once
106 > /var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/odbc/php_odbc.c:2212:
107 > error: for each function it appears in.)
108 > /var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/odbc/php_odbc.c:2226:
109 > warning: dereferencing type-punned pointer will break strict-aliasing rules
110 > /var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/odbc/php_odbc.c:2296:
111 > warning: dereferencing type-punned pointer will break strict-aliasing rules
112 > make: *** [ext/odbc/php_odbc.lo] Error 1
113 >
114 > !!! ERROR: dev-lang/php-4.4.1-r3 failed.
115 > !!! Function php4_4-sapi_src_compile, Line 517, Exitcode 2
116 > !!! make failed
117 > !!! If you need support, post the topmost build error, NOT this status
118 > message.
119 >
120 > Any thoughts anyone?
121 >
122 > Thanks again,
123 > RV
124 >
125 >> On 09/02/06, LYL <lyl+gentoo@××××.com> wrote:
126 >>
127 >>
128 >>> dev-lang/php is php v5.0 up, while dev-php/php is php4
129 >>>
130 >>>
131 >>
132 >>
133 >> That's not correct. Just to make it perfectly clear - *anyone* who is
134 >> currently using dev-php/{php,mod_php} in any shape or form should
135 >> migrate to dev-lang/php as soon as possible The former ebuilds are
136 >> emphatically dead and *completely* unsupported and will eventually
137 >> disappear from the portage tree! Indeed, other packages marked stable
138 >> will assume the usage of dev-lang/php. Almost anything to do with PEAR
139 >> uses a revision of the php-pear eclass which depends on dev-lang/php
140 >> for example.
141 >>
142 >> However, as Christopher remarked earlier in the thread, it is
143 >> necessary to mask out php-5 if you want to stick with php-4 (for the
144 >> simple reason that php-5 is marked stable).
145 >>
146 >> Further reading:
147 >>
148 >> http://tinyurl.com/9qwy7
149 >> http://www.gentoo.org/proj/en/php/php-upgrading.xml
150 >> http://www.gentoo.org/proj/en/php
151 >>
152 >> I'd also suggest reading
153 >> http://svn.gnqs.org/projects/gentoo-php-overlay/wiki/CommonQuestions#DoYouRecommendAnyUSEFlags.
154 >>
155 >>
156 >> Further questions are best directed towards the #gentoo-php channel on
157 >> freenode.
158 >>
159 >> Cheers,
160 >>
161 >> --Kerin
162 >>
163 >>
164 >>
165 >
166 --
167 gentoo-server@g.o mailing list

Replies

Subject Author
Re: [gentoo-server] Need help installing Apache with PHP on our server Ronald Vazquez <r.vazquez@×××××××××××××××××.com>