Snow Leopard Apache + PHP + MySQL

Craig Hoffman choffman at eclimb.net
Sat Aug 29 07:03:42 PDT 2009


Installing apache2 without the universal flag (sudo port install -f  
apache2) seems to work until it gets to building Apache2.

Then it errors -
--->  Building apache2
Error: Target org.macports.build returned: shell command " cd "/opt/ 
local/var/macports/build/ 
_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_apache2 
/work/httpd-2.2.11" && /usr/bin/make -j4 all " returned error 2
Command output:       _main in ab.o
   "_BIO_new_fp", referenced from:
       _main in ab.o
       _main in ab.o
   "_apr_file_open", referenced from:
       _main in ab.o
   "_apr_socket_close", referenced from:
       _start_connect in ab.o
       _close_connection in ab.o
       _test in ab.o
       _test in ab.o
   "_SSL_read", referenced from:
       _test in ab.o
   "_SSL_CTX_set_info_callback", referenced from:
       _main in ab.o
   "_SSL_get_peer_certificate", referenced from:
       _ssl_proceed_handshake in ab.o
       _ssl_proceed_handshake in ab.o
   "_apr_pool_create_ex", referenced from:
       _start_connect in ab.o
       _main in ab.o
   "_ASN1_UTCTIME_print", referenced from:
       _ssl_print_cert_info in ab.o
       _ssl_print_cert_info in ab.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//cc23mk54.out (No such file or  
directory)
make[2]: *** [ab] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

Error: Status 1 encountered during processing

Hmm.... Ideas?


On Aug 29, 2009, at 7:22 AM, Ryan Schmidt wrote:

> On Aug 29, 2009, at 08:12, Craig Hoffman wrote:
>
>> On Aug 29, 2009, at 2:49 AM, Ryan Schmidt wrote:
>>
>>> On Aug 28, 2009, at 22:36, Craig Hoffman wrote:
>>>
>>>> Error: The following dependencies failed to build: apr apr-util  
>>>> db46 expat libiconv gperf sqlite3 ncurses ncursesw readline  
>>>> openssl zlib pcre bzip2
>>>> Error: Status 1 encountered during processing.
>>>
>>> You've omitted the details which would enable us to know what's  
>>> going on. We need to see the lines before this Error statement. We  
>>> need to know which dependency failed to build and with what error  
>>> message.
>>
>> Here you go:
>> rror: Target org.macports.build returned: shell command " cd "/opt/ 
>> local/var/macports/build/ 
>> _opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_apr 
>> /work/apr-1.3.8" && /usr/bin/make -j4 all " returned error 2
>> Command output: random/unix/sha2.c:716: warning: right shift count  
>> >= width of type
>> random/unix/sha2.c:716: warning: left shift count >= width of type
>> random/unix/sha2.c:718: warning: left shift count >= width of type
>> random/unix/sha2.c:718: warning: left shift count >= width of type
>> random/unix/sha2.c:718: warning: right shift count >= width of type
>> random/unix/sha2.c:723: warning: left shift count >= width of type
>> random/unix/sha2.c:723: warning: right shift count >= width of type
>> random/unix/sha2.c:723: warning: right shift count >= width of type
>> random/unix/sha2.c:739: warning: left shift count >= width of type
>> random/unix/sha2.c:739: warning: left shift count >= width of type
>> random/unix/sha2.c:741: warning: left shift count >= width of type
>> random/unix/sha2.c:741: warning: right shift count >= width of type
>> random/unix/sha2.c:744: warning: left shift count >= width of type
>> random/unix/sha2.c:744: warning: left shift count >= width of type
>> random/unix/sha2.c:744: warning: right shift count >= width of type
>> random/unix/sha2.c:746: warning: left shift count >= width of type
>> random/unix/sha2.c:746: warning: right shift count >= width of type
>> random/unix/sha2.c:746: warning: right shift count >= width of type
>> random/unix/sha2.c: In function 'apr__SHA512_Last':
>> random/unix/sha2.c:831: warning: right shift count >= width of type
>> random/unix/sha2.c:831: warning: left shift count >= width of type
>> random/unix/sha2.c:832: warning: right shift count >= width of type
>> random/unix/sha2.c:832: warning: left shift count >= width of type
>> random/unix/sha2.c: In function 'apr__SHA512_Final':
>> random/unix/sha2.c:882: warning: right shift count >= width of type
>> random/unix/sha2.c:882: warning: left shift count >= width of type
>> random/unix/sha2.c: In function 'apr__SHA384_Final':
>> random/unix/sha2.c:957: warning: right shift count >= width of type
>> random/unix/sha2.c:957: warning: left shift count >= width of type
>> make: *** [all-recursive] Error 1
>>
>> Error: The following dependencies failed to build: apr apr-util  
>> db46 expat libiconv gperf sqlite3 ncurses ncursesw readline openssl  
>> zlib pcre bzip2
>>
>> Hopefully this helps.
>
> Could you clean apr and try again with the debug flag and send us  
> the output?
>
> sudo port clean apr
> sudo port -d install apr 2>&1 | tee ~/Desktop/apr.txt
>
> Then attach apr.txt from your desktop to your reply email.
>
>
> If you are trying to build apr with the universal variant, then you  
> may be running into
>
> http://trac.macports.org/ticket/17090
>
>
>

_______________________
Craig Hoffman
iChat / AIM: mountain.dog
_______________________







More information about the macports-users mailing list