Bugs item #3518386, was opened at 2012-04-16 02:50 Message generated for change (Settings changed) made by vladut-paiu 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: Works For Me >Priority: 2 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: Vladut-Stefan Paiu (vladut-paiu) Date: 2012-04-25 06:01 Message: Hi Nick, I have checked and double checked the menuconfig code, and the MENUCONFIG_GEN_PATH define is the one that dictates the directory, and I can't find any way in which that define can be over-ridden. As a last resort, can you please, privately, send me access to your server so I can have a look ? Regards, Vlad ---------------------------------------------------------------------- Comment By: Nick Altmann (nikbyte) Date: 2012-04-23 03:02 Message: Ops. Sorry for bug (3 replies). ---------------------------------------------------------------------- Comment By: Nick Altmann (nikbyte) Date: 2012-04-23 02:18 Message: root@opensips ~$ rpm -qa|grep opensips opensips-1.8.0.8952-1.x86_64 root@opensips ~$ which osipsconfig /usr/sbin/osipsconfig root@opensips-2-1 ~$ ls -al /usr/sbin/osipsconfig -rwxr-xr-x 1 root root 31856 Apr 23 12:06 /usr/sbin/osipsconfig (compiled today!!!) root@opensips ~$ /usr/sbin/osipsconfig Generate OpenSIPS Script -> Residential Script -> Generate Residential Script Config generated : /usr/etc/opensips/opensips_residential_2012-4-23_13:13:48.cfg = FAILED. Press any key to continue ---------------------------------------------------------------------- Comment By: Vladut-Stefan Paiu (vladut-paiu) Date: 2012-04-23 02:10 Message: Hi Nick, Ok, the compile flags seem ok, so this is really strange. Are you sure that you're not running an older osipsconfig, located in the path ? Please try to run the osipsconfig with an absolute path to make sure you are hitting the right binary file. Regards, Vlad ---------------------------------------------------------------------- Comment By: Nick Altmann (nikbyte) Date: 2012-04-23 02:01 Message: mkdir -p /usr/etc/opensips/ mkdir -p /usr/share/opensips/ cd menuconfig;make proper;make MENUCONFIG_CFG_PATH=/usr/share/opensips//menuconfig_templates/ MENUCONFIG_GEN_PATH=/etc/opensips/ MENUCONFIG_HAVE_SOURCES=0 make[1]: Entering directory `/root/rpmbuild/BUILD/opensips-1.8.0.8952-tls/menuconfig' rm -f configure rm -f cfg.o curses.o items.o commands.o menus.o parser.o main.o make[1]: Leaving directory `/root/rpmbuild/BUILD/opensips-1.8.0.8952-tls/menuconfig' make[1]: Entering directory `/root/rpmbuild/BUILD/opensips-1.8.0.8952-tls/menuconfig' gcc -g -Wall -DMENUCONFIG_CFG_PATH=\"/usr/share/opensips//menuconfig_templates/\" -DMENUCONFIG_GEN_PATH=\"/etc/opensips/\" -DMENUCONFIG_HAVE_SOURCES=0 -c -o cfg.o cfg.c gcc -g -Wall -DMENUCONFIG_CFG_PATH=\"/usr/share/opensips//menuconfig_templates/\" -DMENUCONFIG_GEN_PATH=\"/etc/opensips/\" -DMENUCONFIG_HAVE_SOURCES=0 -c -o curses.o curses.c gcc -g -Wall -DMENUCONFIG_CFG_PATH=\"/usr/share/opensips//menuconfig_templates/\" -DMENUCONFIG_GEN_PATH=\"/etc/opensips/\" -DMENUCONFIG_HAVE_SOURCES=0 -c -o items.o items.c gcc -g -Wall -DMENUCONFIG_CFG_PATH=\"/usr/share/opensips//menuconfig_templates/\" -DMENUCONFIG_GEN_PATH=\"/etc/opensips/\" -DMENUCONFIG_HAVE_SOURCES=0 -c -o commands.o commands.c gcc -g -Wall -DMENUCONFIG_CFG_PATH=\"/usr/share/opensips//menuconfig_templates/\" -DMENUCONFIG_GEN_PATH=\"/etc/opensips/\" -DMENUCONFIG_HAVE_SOURCES=0 -c -o menus.o menus.c gcc -g -Wall -DMENUCONFIG_CFG_PATH=\"/usr/share/opensips//menuconfig_templates/\" -DMENUCONFIG_GEN_PATH=\"/etc/opensips/\" -DMENUCONFIG_HAVE_SOURCES=0 -c -o parser.o parser.c gcc -g -Wall -DMENUCONFIG_CFG_PATH=\"/usr/share/opensips//menuconfig_templates/\" -DMENUCONFIG_GEN_PATH=\"/etc/opensips/\" -DMENUCONFIG_HAVE_SOURCES=0 -c -o main.o main.c gcc -o configure -g -Wall -DMENUCONFIG_CFG_PATH=\"/usr/share/opensips//menuconfig_templates/\" -DMENUCONFIG_GEN_PATH=\"/etc/opensips/\" -DMENUCONFIG_HAVE_SOURCES=0 cfg.o curses.o items.o commands.o menus.o parser.o main.o -lcurses make[1]: Leaving directory `/root/rpmbuild/BUILD/opensips-1.8.0.8952-tls/menuconfig' mkdir -p /usr/share/opensips//menuconfig_templates/ cp menuconfig/configs/* /usr/share/opensips//menuconfig_templates/ ---------------------------------------------------------------------- Comment By: Vladut-Stefan Paiu (vladut-paiu) Date: 2012-04-23 01:59 Message: Hi, Ok then, please paste the part of the installation when the osipsconfig is compiled & installed, I'm curious about the compile time defines that osipsconfig receives. Regards, Vlad ---------------------------------------------------------------------- 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 _______________________________________________ Devel mailing list Devel@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/devel