Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 03 Dec 2014 13:08:49 +0000
From:      bugzilla-noreply@freebsd.org
To:        perl@FreeBSD.org
Subject:   [Bug 195605] databases/p5-DBD-mysql compile error with clang
Message-ID:  <bug-195605-14331-5DAWH7NOf3@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-195605-14331@https.bugs.freebsd.org/bugzilla/>
References:  <bug-195605-14331@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195605

--- Comment #3 from Erik Cederstrand <erik@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-195605-14331-5DAWH7NOf3>