[OpenSIPS-Devel] [ opensips-Bugs-3518386 ] osipsconfig - wrong path

SourceForge.net noreply at sourceforge.net
Mon Apr 23 10:58:14 CEST 2012


Bugs item #3518386, was opened at 2012-04-16 02:50
Message generated for change (Comment added) made by nikbyte
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3518386&group_id=232389

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: tools
Group: 1.8.x
Status: Open
Resolution: Accepted
Priority: 7
Private: No
Submitted By: Nick Altmann (nikbyte)
Assigned to: Vladut-Stefan Paiu (vladut-paiu)
Summary: osipsconfig - wrong path

Initial Comment:
Configuration files in /etc, but wrong path used when osipsconfig tries to generate config:

Config generated : /usr/etc/opensips/opensips_residential_2012-4-16_13:24:43.cfg =  FAILED. Press any key to continue


----------------------------------------------------------------------

>Comment By: Nick Altmann (nikbyte)
Date: 2012-04-23 01:58

Message:
I'm on the latest SVN.

But cfg-target in my example is cfg-target=%{_sysconfdir}/opensips/ 
In general Make.conf when make opensipsmc
MENUCONFIG_GEN_PATH=$(cfg-target)

So, MENUCONFIG_GEN_PATH=/etc/opensips/

----------------------------------------------------------------------

Comment By: Vladut-Stefan Paiu (vladut-paiu)
Date: 2012-04-23 01:53

Message:
Hi,

From your paste, LOCALBASE is /usr/ thus the configuration files would get
dumped in /usr/etc/, not in /etc/ as you said in the initial comment.

Are you running the lastest OpenSIPS 1.8 ? There were some issues recently
fixed about this. If not, please do a svn update and try again.

Also, can you please do 
    make opensipsmc
and paste here the output ? 

The MENUCONFIG_CFG_PATH define represents where the m4 templates are
located, and MENUCONFIG_GEN_PATH is the path where the actual cfgs will get
dumped.

Regards,
Vlad



----------------------------------------------------------------------

Comment By: Nick Altmann (nikbyte)
Date: 2012-04-16 19:54

Message:
There are:
LOCALBASE=/usr CFLAGS="%{optflags}" %{__make} all %{?_smp_mflags} TLS=1 \
  exclude_modules="%EXCLUDE_MODULES" \
  cfg-target=%{_sysconfdir}/opensips/ \
  modules-prefix=%{buildroot}/%{_prefix} \
  modules-dir=%{_lib}/%{name}/modules

opensips compiles with /etc/opensips for configs, but osipsconfig tries to
write files to /usr/etc/opensips ...



----------------------------------------------------------------------

Comment By: Nick Altmann (nikbyte)
Date: 2012-04-16 19:50

Message:
I build my own rpm.

----------------------------------------------------------------------

Comment By: Vladut-Stefan Paiu (vladut-paiu)
Date: 2012-04-16 12:22

Message:
Hi Nick,

How are you running osipsconfig ? From debs, or sources & make install ?

Regards,
Vlad

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3518386&group_id=232389



More information about the Devel mailing list