[OpenSER-Users] Compiling

Henning Westerholt henning.westerholt at 1und1.de
Mon Oct 22 15:52:03 CEST 2007


On Monday 22 October 2007, Gerson Matiolli wrote:
> Hi, all
>
> I am using Fedora 7 and openser-1.2.2-tls
>
> I need to change the contents of the file lcr_mod.c (MAX_NO_OF_LCRS 8000)
>
>
> When compiling using the command:
> make include_modules="mysql" modules
>
> Two errors are found. What can be?
>
>
> make[1]: Entrando no diretório `/root/openser-1.2.2-tls/modules/mysql'
> make[1]: Saindo do diretório `/root/openser-1.2.2-tls/modules/mysql'
> make[1]: Entrando no diretório `/root/openser-1.2.2-tls/modules/mysql'
> Compiling dbase.c
> gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -Wall
> -minline-all-stringops -falign-loops -ftree-vectorize -mtune=athlon64   
> -DNAME='"openser"' -DVERSION='"1.2.2-notls"' -DARCH='"i386"' -DOS='"linux"'
> -DCOMPILER='"gcc 4.1.2"' -D__CPU_i386 -D__OS_linux -D__SMP_yes
> -DCFG_DIR='"/usr/local/etc/openser/"' -DPKG_MALLOC -DSHM_MEM  -DSHM_MMAP
> -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES
> -DSTATISTICS -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 -DHAVE_TIMEGM -DHAVE_EPOLL -DHAVE_SIGIO_RT -DHAVE_SELECT
> -I/usr/local/include -I/usr/local/include/mysql
> -I/usr/local/mysql/include/mysql -I/usr/local/mysql/include
> -I/usr/include/mysql -c dbase.c -o dbase.o dbase.c:29:25: error:
> mysql/mysql.h: Arquivo ou diretório não encontrado dbase.c:30:26: error:
> mysql/errmsg.h: Arquivo ou diretório não encontrado In file included from

Hello Gerson,

you probably haven't installed the development headers for mysql, or the 
includes are not found. Look for a package called mysql-devel or something 
like that.

As additional hint, you should not compile any source packages as the root 
user.

Cheers,

Henning




More information about the Users mailing list