Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#41978 closed defect (invalid)

mysql5 @5.1.72: C compiler cannot create executables

Reported by: malmuc@… Owned by: pixilla (Bradley Giesbrecht)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: mkae (Marko Käning), ryandesign (Ryan Carsten Schmidt)
Port: mysql5

Description

If I try to install kmymoney4 (or kmymoney4-devel) installation fails while processing the mysql5 port. A Google search revealed mysql5 may be outdated and one should install mysql55 instead which installs without any problems. Doesn't help for kmymoney4 though.

I'm running Mavericks including Xcode 5.0.2 with a fresh Mac Ports installation.

Attachments (2)

main.log (77.6 KB) - added by malmuc@… 10 years ago.
log for port install kmymoney4
main.2.log (6.5 KB) - added by malmuc@… 10 years ago.
mysql5 log file

Download all attachments as: .zip

Change History (8)

Changed 10 years ago by malmuc@…

Attachment: main.log added

log for port install kmymoney4

Changed 10 years ago by malmuc@…

Attachment: main.2.log added

mysql5 log file

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

Cc: ryandesign@… added
Owner: changed from macports-tickets@… to pixilla@…
Port: kmymoney4 kmymoney4-devel removed
Summary: kmymoney4 @4.6.4 mysql5 dependency brokenmysql5 @5.1.72: C compiler cannot create executables

mysql5 installs fine for me on Mavericks, though you are correct that it is deprecated and should not be used anymore. kmymoney4 does not depend on mysql5. It depends on kdepimlibs4, which depends on akonadi, which depends on mysql5, but only because mysql5 is a default variant. You can install akonadi with a different MySQL-compatible variant if you prefer:

$ port variants akonadi
akonadi has the variants:
   debug: Enable debug binaries
   docs: Build documentation
   mariadb: build with mariadb port
     * conflicts with mysql5 mysql51 mysql55 mysql56 percona sqlite
[+]mysql5: build with mysql5 port
     * conflicts with mariadb mysql51 mysql55 mysql56 percona sqlite
   mysql51: build with mysql51 port
     * conflicts with mariadb mysql5 mysql55 mysql56 percona sqlite
   mysql55: build with mysql55 port
     * conflicts with mariadb mysql5 mysql51 mysql56 percona sqlite
   mysql56: build with mysql56 port
     * conflicts with mariadb mysql5 mysql51 mysql55 percona sqlite
   no_root: Run the akonadi server start as MacPorts install user.
   percona: build with percona port
     * conflicts with mariadb mysql5 mysql51 mysql55 mysql56 sqlite
   sqlite: Use sqlite backend instead of MySQL
     * conflicts with mariadb mysql5 mysql51 mysql55 mysql56 percona
   universal: Build for multiple architectures

For example:

sudo port install akonadi +mysql56

The plan is to make a newer MySQL the default variant, once all ports that use MySQL offer such variants; see #39961.

So I'm inclined to make this ticket about the mysql5 build failure you encountered. The log says:

:info:configure configure: error: in `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mysql5/mysql5/work/mysql-5.1.72':
:info:configure configure: error: C compiler cannot create executables
:info:configure See `config.log' for more details.

Please attach the config.log so we can see why the C compiler couldn't create executables. The usual reason why is in the FAQ.

comment:2 Changed 10 years ago by mkae (Marko Käning)

Surprisingly it is working fine here on 10.9 as you can see:

$ port installed *mysql*
The following ports are currently installed:
  mysql5 @5.1.72_0 (active)
  mysql5-server @5.1.72_0 (active)
  p5.12-dbd-mysql @4.20.0_1+mysql5 (active)
  py26-mysql @1.2.3_1+mysql5 (active)
  qt4-mac-mysql5-plugin @4.8.5_0 (active)

Thanks, Ryan, for reassigning this to the MySQL port.

comment:3 Changed 10 years ago by malmuc@…

Layer 8 issue... I was really missing the command line tools. My bad... Thanks, Ryan and mk!

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

Resolution: invalid
Status: newclosed

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

Has duplicate #42003.

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

Has duplicate #42423.

Note: See TracTickets for help on using tickets.