View Issue Details

IDProjectCategoryView StatusLast Update
0004547unrealmodule apipublic2016-01-13 11:10
Reportermoses Assigned Tosyzop  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionno change required 
Product Version4.0.0 
Summary0004547: Cant compile modules that use mysql
DescriptionWhen 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 ReproduceCompile a module that includes mysql/mysql.h and unrealircd-4.0.0/include/common.h
TagsNo tags attached.
3rd party modules

Activities

syzop

2016-01-13 11:10

administrator   ~0019056

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.

Issue History

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