[Bug 195605] databases/p5-DBD-mysql compile error with clang

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Dec 3 13:08:49 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195605

--- Comment #3 from Erik Cederstrand <erik at cederstrand.dk> ---
Ah, I figured it out. MySQL on this server has been compiled with GCC. I get
this in the install log:

/usr/ports/databases/p5-DBD-mysql% sudo make
[...]
I will use the following settings for compiling and testing:

  cflags        (mysql_config) = -I/usr/local/include/mysql -pipe
-fno-strict-aliasing -g -fabi-version=2 -fno-omit-frame-pointer
-fno-strict-aliasing
  embedded      (mysql_config) = 
  ldflags       (mysql_config) = -pthread
  libs          (mysql_config) = -L/usr/local/lib/mysql -lmysqlclient -lm
[...]
cc: error: unknown argument: '-fabi-version=2'
*** [dbdimp.o] Error code 1
[...]


Sure enough, mysql_config emits cflags containing "fabi-version". So
p5-DBD-mysql is getting cflags from a MySQL that was compiled with GCC and
passing that to clang.

Not sure this is even worthy of a fix. It's rather pilot error on my part.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-perl mailing list