Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: anope 1.8.8 compile error with MySQL  (Read 3990 times)

0 Members and 1 Guest are viewing this topic.

David Lane

  • Anope User
  • Offline Offline
  • Posts: 1
anope 1.8.8 compile error with MySQL
« 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?
Logged

Adam

  • Team
  • *
  • Offline Offline
  • Posts: 463
Re: anope 1.8.8 compile error with MySQL
« Reply #1 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?
Logged
Pages: [1]   Go Up