3.0.2 Makefile issues continued - FreeBSD 6
Installing on Linux went like a charm, no issues. However, there are some issues when building on FreeBSD. Some comments: - The xmlrpc module links to -lresolv, something that doesn't exist on FreeBSD and can be removed. - Libraries in /usr/local/lib was not found, but it seems like include files in /usr/local/include was found by some modules, but not all. Setting CPATH solved issues here. - There's no point in even trying to compile iptrtpproxy on systems that are not Linux, right? - There are many compiler warnings that should be looked at - In order to get INADDR_LOOPBACK, that is used in presence_dialoginfo and other modules I ended up copying the definition of INADDR_LOOPBACK into ip_addr.h... It's in netinet/in.h but must be disabled for some reason. Also getting this at make install (but not make modules), guessing it belongs to kamctl installation: MYSQLON=yes make -C ../../utils/kamctl/ install-modules "../../Makefile.defs", line 88: Missing dependency operator Error expanding embedded variable. gmake[1]: *** [install-mysql-scripts] Error 2 gmake[1]: Leaving directory `/s/usr-local/src/kamailio-3.0.2/modules/db_mysql' gmake: *** [install-modules] Error 1 I had to exclude all db modules in order to get around this. I guess someone with some more experience of the build system needs to look at this :-) Cheers, /O
On Jul 27, 2010 at 12:18, Olle E. Johansson <oej@edvina.net> wrote:
Installing on Linux went like a charm, no issues. However, there are some issues when building on FreeBSD.
Some comments: - The xmlrpc module links to -lresolv, something that doesn't exist on FreeBSD and can be removed.
It doesn't link to -lresolv. You probably mean sercmd (freshly fixed). (git grep "\-lresolv" modules* doesn't return anything).
- Libraries in /usr/local/lib was not found, but it seems like include files in /usr/local/include was found by some modules, but not all. Setting CPATH solved issues here.
Fixed.
- There's no point in even trying to compile iptrtpproxy on systems that are not Linux, right?
Yes, it needs a special linux kernel module.
- There are many compiler warnings that should be looked at - In order to get INADDR_LOOPBACK, that is used in presence_dialoginfo and other modules I ended up copying the definition of INADDR_LOOPBACK into ip_addr.h... It's in netinet/in.h but must be disabled for some reason.
Fixed.
Also getting this at make install (but not make modules), guessing it belongs to kamctl installation:
MYSQLON=yes make -C ../../utils/kamctl/ install-modules "../../Makefile.defs", line 88: Missing dependency operator
Fixed. Thanks, Andrei
participants (2)
-
Andrei Pelinescu-Onciul -
Olle E. Johansson