View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004547 | unreal | module api | public | 2016-01-12 21:34 | 2016-01-13 11:10 |
Reporter | moses | Assigned To | syzop | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Product Version | 4.0.0 | ||||
Summary | 0004547: Cant compile modules that use mysql | ||||
Description | When attempting to use the mysql library (#include <mysql/mysql.h>) in a module, it will not compile as there is a conflict with the list_add function. The following error is produced: In file included from unrealircd-4.0.0/include/common.h:50:0, from unrealircd-4.0.0/include/struct.h:42, from unrealircd-4.0.0/include/unrealircd.h:6, from mymodule.c:4: unrealircd-4.0.0/include/list.h:87:14: error: conflicting types for ‘list_add’ SINLINE void list_add(struct list_head *new, struct list_head *head) ^ In file included from /usr/include/mysql/mysql.h:75:0, from mymodule.c:1: /usr/include/mysql/my_list.h:30:14: note: previous declaration of ‘list_add’ was here extern LIST *list_add(LIST *root,LIST *element); | ||||
Steps To Reproduce | Compile a module that includes mysql/mysql.h and unrealircd-4.0.0/include/common.h | ||||
Tags | No tags attached. | ||||
3rd party modules | |||||
|
You could report the same bug to MySQL :D. I think it's a bit over the top for us to go rename all the functions, though. As this is an issue in my own module and I'm in contact with the reporter to resolve it (I can workaround it just fine), I think this can be closed. |
Date Modified | Username | Field | Change |
---|---|---|---|
2016-01-12 21:34 | moses | New Issue | |
2016-01-13 10:42 | syzop | Priority | high => normal |
2016-01-13 11:10 | syzop | Note Added: 0019056 | |
2016-01-13 11:10 | syzop | Status | new => closed |
2016-01-13 11:10 | syzop | Assigned To | => syzop |
2016-01-13 11:10 | syzop | Resolution | open => no change required |
2017-01-06 15:48 | syzop | Category | module => module api |