[OpenSER-Devel] Problem with 1.3 mysql module and FreeBSD

Ovidiu Sas osas at voipembedded.com
Tue Jan 15 21:26:50 UTC 2008


It is compiling ok under debian.


make[1]: Entering directory `/usr/src/openser/modules/mysql'
Compiling dbase.c
gcc -fPIC -DPIC  -DMOD_NAME='"mysql"'    -DNAME='"openser"'
-DVERSION='"1.4.0dev0-notls"' -DARCH='"i386"' -DOS='"linux"'
-DCOMPILER='"gcc 4.1.2"' -D__CPU_i386 -D__OS_linux -D__SMP_no
-DCFG_DIR='"/usr/local/etc/openser/"' -DPKG_MALLOC -DSHM_MEM
-DSHM_MMAP -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE
-DHAVE_RESOLV_RES -DSTATISTICS -DCHANGEABLE_DEBUG_LEVEL -DF_MALLOC
-DSVNREVISION='"2:3524M"'  -DEXTRA_DEBUG -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/include -c dbase.c -o dbase.o
Compiling db_mod.c
gcc -fPIC -DPIC  -DMOD_NAME='"mysql"'    -DNAME='"openser"'
-DVERSION='"1.4.0dev0-notls"' -DARCH='"i386"' -DOS='"linux"'
-DCOMPILER='"gcc 4.1.2"' -D__CPU_i386 -D__OS_linux -D__SMP_no
-DCFG_DIR='"/usr/local/etc/openser/"' -DPKG_MALLOC -DSHM_MEM
-DSHM_MMAP -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE
-DHAVE_RESOLV_RES -DSTATISTICS -DCHANGEABLE_DEBUG_LEVEL -DF_MALLOC
-DSVNREVISION='"2:3524M"'  -DEXTRA_DEBUG -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/include -c db_mod.c -o db_mod.o
Compiling my_con.c
gcc -fPIC -DPIC  -DMOD_NAME='"mysql"'    -DNAME='"openser"'
-DVERSION='"1.4.0dev0-notls"' -DARCH='"i386"' -DOS='"linux"'
-DCOMPILER='"gcc 4.1.2"' -D__CPU_i386 -D__OS_linux -D__SMP_no
-DCFG_DIR='"/usr/local/etc/openser/"' -DPKG_MALLOC -DSHM_MEM
-DSHM_MMAP -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE
-DHAVE_RESOLV_RES -DSTATISTICS -DCHANGEABLE_DEBUG_LEVEL -DF_MALLOC
-DSVNREVISION='"2:3524M"'  -DEXTRA_DEBUG -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/include -c my_con.c -o my_con.o
Compiling res.c
gcc -fPIC -DPIC  -DMOD_NAME='"mysql"'    -DNAME='"openser"'
-DVERSION='"1.4.0dev0-notls"' -DARCH='"i386"' -DOS='"linux"'
-DCOMPILER='"gcc 4.1.2"' -D__CPU_i386 -D__OS_linux -D__SMP_no
-DCFG_DIR='"/usr/local/etc/openser/"' -DPKG_MALLOC -DSHM_MEM
-DSHM_MMAP -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE
-DHAVE_RESOLV_RES -DSTATISTICS -DCHANGEABLE_DEBUG_LEVEL -DF_MALLOC
-DSVNREVISION='"2:3524M"'  -DEXTRA_DEBUG -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/include -c res.c -o res.o
Compiling row.c
gcc -fPIC -DPIC  -DMOD_NAME='"mysql"'    -DNAME='"openser"'
-DVERSION='"1.4.0dev0-notls"' -DARCH='"i386"' -DOS='"linux"'
-DCOMPILER='"gcc 4.1.2"' -D__CPU_i386 -D__OS_linux -D__SMP_no
-DCFG_DIR='"/usr/local/etc/openser/"' -DPKG_MALLOC -DSHM_MEM
-DSHM_MMAP -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE
-DHAVE_RESOLV_RES -DSTATISTICS -DCHANGEABLE_DEBUG_LEVEL -DF_MALLOC
-DSVNREVISION='"2:3524M"'  -DEXTRA_DEBUG -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/include -c row.c -o row.o
Compiling val.c
gcc -fPIC -DPIC  -DMOD_NAME='"mysql"'    -DNAME='"openser"'
-DVERSION='"1.4.0dev0-notls"' -DARCH='"i386"' -DOS='"linux"'
-DCOMPILER='"gcc 4.1.2"' -D__CPU_i386 -D__OS_linux -D__SMP_no
-DCFG_DIR='"/usr/local/etc/openser/"' -DPKG_MALLOC -DSHM_MEM
-DSHM_MMAP -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE
-DHAVE_RESOLV_RES -DSTATISTICS -DCHANGEABLE_DEBUG_LEVEL -DF_MALLOC
-DSVNREVISION='"2:3524M"'  -DEXTRA_DEBUG -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/include -c val.c -o val.o
Linking mysql.so
gcc -shared  -Wl,-O2 -Wl,-E    dbase.o db_mod.o my_con.o res.o row.o
val.o  -L/usr/lib/mysql -lmysqlclient -o mysql.so
make[1]: Leaving directory `/usr/src/openser/modules/mysql'


On Jan 15, 2008 4:15 PM, Bogdan-Andrei Iancu <bogdan at voice-system.ro> wrote:
> Hi Jesus,
>
> I made a fix on SVN trunk. Instead of removing "mysql/" from the C
> include directive (which may lead to some ambiguity in file names), I
> preferred to remove the "/mysql" from the compile include path...
>
> I will ask as many people as possible to test this and see if there are
> any problems, as we will need to do a backport, but not before being
> 100% it is ok.
>
> Regards,
> Bogdan
>
>
> Jesus Rodriguez wrote:
> > Hi Bogdan,
> >
> >
> >> That is strange as also on linux the include dir is similarly reported:
> >> $ mysql_config  --include
> >> -I/usr/include/mysql
> >>
> >> I will investigate a bit .......
> >
> >
> > Could you take a look on this?. I'm waiting to commit the 1.3.0 port
> > on FreeBSD cvs until we can fix this.
> >
> > Thanks.
> >
> > Saludos
> > JesusR.
> >
> >
> >
> >
> >
> >> Jesus Rodriguez wrote:
> >>> Hello,
> >>>
> >>> While i was updating the FreeBSD port to 1.3 i found that mysql
> >>> module  does not compile. The problem is that if autodetection of
> >>> mysql client  configuration is used, the includes <mysql/xxxxx> are
> >>> not found.
> >>>
> >>> Mysql module Makefile executes:
> >>>
> >>> root at wandabsd /var/tmp/openser-1.3.0-tls/modules/mysql]#
> >>> mysql_config  --include
> >>> -I/usr/local/include/mysql
> >>>
> >>>
> >>> Now, for example at db_mode.c line 35 we have:
> >>>
> >>> #include <mysql/mysql.h>
> >>>
> >>>
> >>> which means that mysql.h is not found as all the others include
> >>> <mysql/ xxxx>. By the moment i will solve this in the port setting
> >>> "CROSS_COMPILE=true" to avoid autodetection but i think that this
> >>> should be fixed and maybe a new source tarball created.
> >>>
> >>> Regards... and sorry for not testing a simple build on FreeBSD
> >>> before :-/
> >>>
> >>> Saludos
> >>> JesusR.
> >>>
> >>> ------------------------------------
> >>> Jesus Rodriguez
> >>> VozTelecom Sistemas, S.L.
> >>> jesusr at voztele.com
> >>> http://www.voztele.com
> >>> Tel. 902360305
> >>> -------------------------------------
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> _______________________________________________
> >>> Devel mailing list
> >>> Devel at lists.openser.org
> >>> http://lists.openser.org/cgi-bin/mailman/listinfo/devel
> >>>
> >>>
> >>
> >>
> >
> >
> >
> >
> >
> > Saludos
> > JesusR.
> >
> > ------------------------------------
> > Jesus Rodriguez
> > VozTelecom Sistemas, S.L.
> > jesusr at voztele.com
> > http://www.voztele.com
> > Tel. 902360305
> > -------------------------------------
> >
> >
> >
> >
> >
>
>
> _______________________________________________
> Devel mailing list
> Devel at lists.openser.org
> http://lists.openser.org/cgi-bin/mailman/listinfo/devel
>



More information about the Devel mailing list