Bug #65105 mysql-connector-c headers not installed
Submitted: 25 Apr 2012 19:01 Modified: 21 Feb 2013 16:04
Reporter: Braden McDaniel Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / C Severity:S3 (Non-critical)
Version:6.0.2 OS:MacOS (10.7.3)
Assigned to: Rafal Somla CPU Architecture:Any
Tags: cmake, headers, install

[25 Apr 2012 19:01] Braden McDaniel
Description:
"make install" does not install the C header files on Mac OS X 10.7 (Lion). I've tried both the 6.0.2 release as well as the cmake-out-of-tree-build branch and they both exhibit this problem. The problem does appear to be particular to Mac OS X; I could not reproduce the problem on (Fedora 16) Linux using the same version of cmake (2.8.7).

I am using MacPorts cmake 2.8.7.

How to repeat:
$ mkdir build
$ cd build
$ cmake -G "Unix Makefiles" /path/to/mysql-c-connector-src
$ make
$ mkdir ../dest
$ make install DESTDIR=../dest
[25 Apr 2012 20:02] Sveta Smirnova
Thank you for the report.

I can not repeat described behavior:

[sveta@delly mysql-connector-c-6.0.2]$ ls ../dest/
usr
[sveta@delly mysql-connector-c-6.0.2]$ ls ../dest/usr/local/mysql/
bin  COPYING  EXCEPTIONS-CLIENT  include  lib  README
[sveta@delly mysql-connector-c-6.0.2]$ ls ../dest/usr/local/mysql/include/
atomic        lf.h         my_attribute.h  my_dir.h      my_net.h         mysql_time.h     my_tree.h           sha1.h             thr_alarm.h
base64.h      m_ctype.h    my_base.h       my_getopt.h   my_no_pthread.h  mysql_version.h  my_trie.h           sha2.h             thr_lock.h
config-win.h  m_string.h   my_bit.h        my_global.h   my_nosys.h       my_stacktrace.h  my_uctype.h         sql_common.h       typelib.h
decimal.h     my_aes.h     my_bitmap.h     myisampack.h  my_pthread.h     mysys            my_vle.h            sslopt-case.h      violite.h
errmsg.h      my_alarm.h   my_charsets.h   my_libwrap.h  mysql_com.h      mysys_err.h      my_xml.h            sslopt-longopts.h  waiting_threads.h
hash.h        my_alloc.h   my_config.h     my_list.h     mysqld_error.h   my_sys.h         queues.h            sslopt-vars.h      wqueue.h
keycache.h    my_atomic.h  my_dbug.h       my_md5.h      mysql.h          my_time.h        service_versions.h  t_ctype.h

As you see headers are installed.

But I compiled in source directory, because compiling in build dir failed du to bug #64908. Probably this was the reason. Have you modified source code to be able to build in separate dir?
[25 Apr 2012 21:14] Braden McDaniel
Sorry for that confusing bit; as I mentioned, I tried this with both 6.0.2 pristine and the cmake-out-of-build-tree branch in bzr. I see the problem both places; but it does appear to be confined to Mac OS X.

I retested with a new pristine source tree from the 6.0.2 distribution tarball:

$ cd mysql-connector-c-6.0.2
$ cmake -G "Unix Makefiles"
$ make
$ mkdir ../dest
$ make DESTDIR=../dest install

$ du -c ../dest/usr/local/mysql/include
0	../dest/usr/local/mysql/include
0	total

What version of Mac OS X are you using? What version of cmake?
[26 Apr 2012 6:51] Valeriy Kravchuk
Indeed, not repeatable on FC14 with cmake 2.8.4. So looks like Mac OS X 10.7.x and/or cmake version specific problem.
[1 May 2012 15:20] Braden McDaniel
I believe this is a bug with CMake. I've filed it in that project's bug tracker:

http://public.kitware.com/Bug/view.php?id=13177
[21 Feb 2013 14:02] Santo Leto
Hi,

CMake bug 0013177 has been fixed in version 2.8.9
Can we close this now?

Thanks
[21 Feb 2013 16:04] Braden McDaniel
Yes, this can be closed.