Anope IRC Services

Anope Support => 1.8.x/1.7.x Support (Read Only) => Topic started by: David Lane on November 08, 2013, 12:03:52 PM

Title: anope 1.8.8 compile error with MySQL
Post by: David Lane on November 08, 2013, 12:03:52 PM
Not 100% sure what is blowing up here....

make[1]: Entering directory `/home/dlane/source/anope-1.8.8/src'
gcc -pipe -g -O2 -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -grecord-gcc-switches  -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fPIC  -g -static-libgcc -fno-omit-frame-pointer -fno-strict-aliasing  -DMY_PTHREAD_FASTMUTEX=1 -export-dynamic -I../include/ -c actions.c
In file included from /usr/include/mysql/services.h:22:0,
                 from actions.c:14:
/usr/include/mysql/service_thd_alloc.h:46:38: error: expected â)â before âunsignedâ
   void *(*thd_alloc_func)(MYSQL_THD, unsigned int);
                                      ^
/usr/include/mysql/service_thd_alloc.h:47:39: error: expected â)â before âunsignedâ


Bug?  Or am I missing some libraries?
Title: Re: anope 1.8.8 compile error with MySQL
Post by: Adam on November 08, 2013, 02:32:02 PM
This is because Anope has a file named services.h that conflicts with MySQL's.

IIRC the way to fix it is to edit src/Makefile and change line 28 to:

Code: [Select]
        $(CC) -I../include/  $(CFLAGS) -c $<

I've only ever seen a few people with this problem, could you give us your system details?