[Users] Cannot compile MySQL in 1.0.0

Papadopoulos Georgios geop at altectelecoms.gr
Mon Nov 7 15:01:54 CET 2005


 
The Makefile for mysql module is identical in 0.9.5 and 1.0.0. 
I just had to add:
	-I/usr/src/mysql-4.1.10/include
in DEFS, because this is where I found MySQL header files.

George


> -----Original Message-----
> From: Bogdan-Andrei Iancu [mailto:bogdan at voice-system.ro] 
> Sent: Monday, November 07, 2005 3:56 PM
> To: Papadopoulos Georgios
> Cc: users at openser.org
> Subject: Re: [Users] Cannot compile MySQL in 1.0.0
> 
> George,
> 
> my mistake - I meant "mysql" module, not "acc" - is any 
> difference between the Makefiles for this module? what was 
> the path you had to add?
> 
> regards,
> bogdan
> 
> Papadopoulos Georgios wrote:
> 
> >The Makefile for mysql module is identical in 0.9.5 and 1.0.0.
> >What does the acc module have to do with this? Anyway, the 
> Makefile for 
> >acc module in 1.0.0 has
> >DEFS+=-DSQL_ACC
> >whereas in 0.9.5 it is commented out.
> >
> >I updated the -I line in modules/mysql and works fine. So I 
> guess the 
> >mysql module did not use the MySQL header files in 0.9.5.
> >
> >thanks a lot
> >
> >George
> > 
> >
> >  
> >
> >>-----Original Message-----
> >>From: Bogdan-Andrei Iancu [mailto:bogdan at voice-system.ro]
> >>Sent: Monday, November 07, 2005 2:45 PM
> >>To: Papadopoulos Georgios
> >>Cc: users at openser.org
> >>Subject: Re: [Users] Cannot compile MySQL in 1.0.0
> >>
> >>Hi George,
> >>
> >>it seams that the mysql hdr files (devel package) are not found. 
> >>Please check with your package manager which is the correct path to 
> >>these files and update the "-I....." in modules/acc/Makefile
> >>
> >>BTW, is any difference between the makefile for acc module between 
> >>your
> >>0.9.5 and 1.0.0 versions?
> >>
> >>regards,
> >>bogdan
> >>
> >>Papadopoulos Georgios wrote:
> >>
> >>    
> >>
> >>>Hello,
> >>>
> >>>I am trying to upgrade from 0.9.5 to 1.0.0 and I am having trouble 
> >>>compiling the MySQL module (worked fine with 0.9.5).
> >>>I tried both openser-1.0.0_src.tar.gz and
> >>>      
> >>>
> >>openser-1.0.0-tls_src.tar.gz,
> >>    
> >>
> >>>but the error was the same.
> >>>Am I missing something?
> >>>
> >>>gcc -fPIC -DPIC -g -O9 -funroll-loops   -Wall  -mcpu=ultrasparc
> >>>-mtune=ultrasparc    -DNAME='"openser"' -DVERSION='"1.0.0"'
> >>>-DARCH='"sparc64"' -DOS='"linux"' -DCOMPILER='"gcc 3.3"' 
> >>>-D__CPU_sparc64 -D__OS_linux -DCFG_DIR='"/usr/local/etc/openser/"' 
> >>>-DPKG_MALLOC -DSHM_MEM  -DSHM_MMAP -DDNS_IP_HACK -DUSE_IPV6
> >>>      
> >>>
> >>-DUSE_MCAST
> >>    
> >>
> >>>-DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DF_MALLOC  
> -DFAST_LOCK 
> >>>-DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024  -DHAVE_GETHOSTBYNAME2 
> >>>-DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL 
> >>>-DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -I/usr/local/include 
> >>>-I/usr/local/include/mysql -I/usr/local/mysql/include 
> >>>-I/usr/include/mysql -c db_mod.c -o db_mod.o
> >>>db_mod.c:35:19: mysql.h: No such file or directory
> >>>db_mod.c: In function `mysql_mod_init':
> >>>db_mod.c:87: warning: implicit declaration of function 
> >>>`mysql_get_client_info'
> >>>db_mod.c:87: warning: format argument is not a pointer (arg 3)
> >>>db_mod.c:87: warning: format argument is not a pointer (arg 3)
> >>>db_mod.c:87: warning: format argument is not a pointer (arg 3)
> >>>db_mod.c:87: warning: format argument is not a pointer (arg 3)
> >>>db_mod.c:87: warning: format argument is not a pointer (arg 3)
> >>>db_mod.c:87: warning: format argument is not a pointer (arg 3)
> >>>db_mod.c:87: warning: format argument is not a pointer (arg 3)
> >>>make: *** [db_mod.o] Error 1
> >>>
> >>>thank you in advance
> >>>
> >>>George
> >>>      
> >>>
> 
> 

Disclaimer
The information in this e-mail and any attachments is confidential. It is intended solely for the attention and use of the named addressee(s). If you are not the intended recipient, or person responsible for delivering this information to the intended recipient, please notify the sender immediately. Unless you are the intended recipient or his/her representative you are not authorized to, and must not, read, copy, distribute, use or retain this message or any part of it. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses.






More information about the sr-users mailing list