[MDEV-13585] RocksDB plugin fails to build on macOS because of unknown type `timer_t` etc. Created: 2017-08-18  Updated: 2017-09-05  Resolved: 2017-09-05

Status: Closed
Project: MariaDB Server
Component/s: Compiling, Storage Engine - RocksDB
Affects Version/s: 10.2.8
Fix Version/s: 10.2.9

Type: Bug Priority: Major
Reporter: Dan Assignee: Varun Gupta (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Environment:

macOS 10.12.6, Xcode 8.3.3/9 beta5, Homebrew



 Description   

Hello!

When trying to build the following errors are thrown:

In file included from /tmp/mariadb-20170818-29127-1j90748/mariadb-10.2.8/storage/rocksdb/event_listener.cc:31:
In file included from /tmp/mariadb-20170818-29127-1j90748/mariadb-10.2.8/storage/rocksdb/./ha_rocksdb.h:53:
/tmp/mariadb-20170818-29127-1j90748/mariadb-10.2.8/storage/rocksdb/./rdb_io_watchdog.h:45:3: error: unknown type name 'timer_t'; did you mean 'time_t'?
[..]
In file included from /tmp/mariadb-20170818-29127-1j90748/mariadb-10.2.8/storage/rocksdb/event_listener.cc:31:
In file included from /tmp/mariadb-20170818-29127-1j90748/mariadb-10.2.8/storage/rocksdb/./ha_rocksdb.h:53:
/tmp/mariadb-20170818-29127-1j90748/mariadb-10.2.8/storage/rocksdb/./rdb_io_watchdog.h:60:13: error: use of undeclared identifier 'timer_delete'

This is probably because Apple's `time.h` doesn't declare `timer_t`, `timer_delete()` and such.

Thank you.



 Comments   
Comment by Sergei Petrunia [ 2017-08-19 ]

varun you have an OS X machine, right? Could you check this please?

Comment by Varun Gupta (Inactive) [ 2017-08-30 ]

http://lists.askmonty.org/pipermail/commits/2017-August/011429.html

Comment by Vicențiu Ciorbaru [ 2017-08-30 ]

Ok to push once the changes are made. Thanks!

https://lists.launchpad.net/maria-developers/msg10851.html

Generated at Thu Feb 08 08:06:45 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.