Opened 14 years ago

Closed 14 years ago

#26051 closed defect (invalid)

apache2, mysql5: universal i386/ppc build failure on 10.6

Reported by: pilot@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: Cc: imajes@…, ryandesign (Ryan Carsten Schmidt)
Port: apache2 mysql5

Description

for sample try to install Apache2, main.log list of goups erorr with openssl, like:

:info:build /opt/local/include/openssl/opensslconf.h:121:2: error: #else without #if
:info:build /opt/local/include/openssl/opensslconf.h:122:1: warning: "RC4_INT" redefined
:info:build /opt/local/include/openssl/opensslconf.h:120:1: warning: this is the location of the previous definition
:info:build /opt/local/include/openssl/opensslconf.h:123:2: error: #endif without #if
:info:build /opt/local/include/openssl/opensslconf.h:124:1: warning: missing terminating ' character
:info:build /opt/local/include/openssl/opensslconf.h:124: error: missing terminating ' character
:info:build /opt/local/include/openssl/opensslconf.h:125:2: error: #endif without #if
:info:build /opt/local/include/openssl/opensslconf.h:133:2: error: #endif without #if
:info:build ab.c: In function 'ssl_print_cert_info':
:info:build ab.c:514: error: 'X509_CINF' has no member named 'version'
:info:build ab.c:514: warning: format '%ld' expects type 'long int', but argument 3 has type 'int'
:info:build ab.c:516: error: 'X509_CINF' has no member named 'validity'
:info:build ab.c:520: error: 'X509_CINF' has no member named 'validity'
:info:build ab.c: In function 'ssl_print_info':
:info:build ab.c:546: error: expected expression before ')' token
:info:build ab.c:549: error: expected expression before ')' token
:info:build lipo: can't figure out the architecture type of: /var/tmp//ccaPcCVf.out
:info:build make[2]: *** [ab.lo] Error 1
:info:build make[2]: *** Waiting for unfinished jobs....
:info:build make[1]: *** [all-recursive] Error 1
:info:build make: *** [all-recursive] Error 1
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_apache2/work/httpd-2.2.15" && /usr/bin/make -j2 all " returned error 2
:error:build Target org.macports.build returned: shell command failed
:debug:build Backtrace: shell command failed
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"

Attachments (2)

main.log (157.5 KB) - added by pilot@… 14 years ago.
apache2 installation main.log
main.2.log (46.6 KB) - added by pilot@… 14 years ago.
install mysql5

Download all attachments as: .zip

Change History (15)

Changed 14 years ago by pilot@…

Attachment: main.log added

apache2 installation main.log

comment:1 Changed 14 years ago by pilot@…

Cc: pilot@… added

Cc Me!

comment:2 Changed 14 years ago by pilot@…

OS: Snow Leopard last

Changed 14 years ago by pilot@…

Attachment: main.2.log added

install mysql5

comment:3 Changed 14 years ago by jmroot (Joshua Root)

Cc: imajes@… ryandesign@… added; pilot@… removed
Milestone: MacPorts 1.9.2
Port: apache2 mysql5 added
Summary: All that deps from openssl can't installapache2, mysql5: universal i386/ppc build failure on 10.6
Type: requestdefect

As per the ticket guidelines linked prominently from the New Ticket page, don't set the milestone field, and remember to fill in the Port field and cc the maintainer.

comment:4 Changed 14 years ago by pilot@…

thanks, i understand for future.

What you think about this defect with openssl

comment:5 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

The real error in the apache2 log file appears to be

:info:build /opt/local/include/openssl/opensslconf.h:118: error: expected identifier or '(' before '\x6d61743d'

The real error in the mysql5 log file appears to be

:info:configure checking for SSL... configure: error: Could not link with SSL libs at /opt/local

The apache2 log does indeed show that you are trying to build universal for ppc and i386 and that you are on Snow Leopard. This makes no sense; Snow Leopard does not run on PowerPC. The only universal build we support on Snow Leopard is i386 and x86_64. Why do you want to build for PowerPC on Snow Leopard?

comment:6 in reply to:  5 Changed 14 years ago by pilot@…

The apache2 log does indeed show that you are trying to build universal for ppc and i386 and that you are on Snow Leopard. This makes no sense; Snow Leopard does not run on PowerPC. The only universal build we support on Snow Leopard is i386 and x86_64. Why do you want to build for PowerPC on Snow Leopard?

If i build package only for intel architecture more then 50% ports in macports list not installed or not work together

comment:7 Changed 14 years ago by pilot@…

only with universal version of installation i install more then 100 ports, in other hand with intel architecture i can't do that

comment:8 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

That doesn't sound accurate. MacPorts works great on Snow Leopard building only for Intel architectures. Perhaps you migrated from Leopard or earlier to Snow Leopard and did not follow the Migration procedure? If that's not it, you'll have to elaborate on the problems you were having when building only for Intel architectures. It is not expected for you to need to build for PowerPC architectures on Snow Leopard; indeed, it would be more expected for that not to work at all since nobody's ever tested that.

comment:9 Changed 14 years ago by pilot@…

I will try migration procedure, remove all ports, clear all, then first what i do install the apache2:

apache2 +darwin+preforkmpm+universal

when all deps is intalled including openssl, macports try to install apache2 port, and show error listed on top of this conversation.

For instance i can try to install apache2 only for intel architecture

comment:10 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

This ticket has talked about building universal for ppc and i386, which is not how things usually build universal on Snow Leopard; if that's how things are building universal for you, that means the universal_archs line in your macports.conf says ppc i386 when it should say x86_64 i386, either because you manually changed the line to read ppc i386, or because you upgraded from Leopard or earlier to Snow Leopard and did not follow Migration including updating your macports.conf with the new defaults. You should compare every line of your macports.conf with the default configuration in the file macports.conf.default and adopt all the changes from it, unless there are specific changes you do want to retain.

comment:11 Changed 14 years ago by pilot@…

thanks i understand, and go to modify my macports.conf

comment:12 in reply to:  10 Changed 14 years ago by pilot@…

Replying to ryandesign@…:

This ticket has talked about building universal for ppc and i386, which is not how things usually build universal on Snow Leopard; if that's how things are building universal for you, that means the universal_archs line in your macports.conf says ppc i386 when it should say x86_64 i386, either because you manually changed the line to read ppc i386, or because you upgraded from Leopard or earlier to Snow Leopard and did not follow Migration including updating your macports.conf with the new defaults. You should compare every line of your macports.conf with the default configuration in the file macports.conf.default and adopt all the changes from it, unless there are specific changes you do want to retain.

Thanks, real problem is in my macports.conf file, i will replace i386 pcc - with x86_64 i386 - and all ports installed successful!

comment:13 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: newclosed

Great, I'm glad you got it working.

Note: See TracTickets for help on using tickets.