I've spend some time investigating this issue and I have some additional
details to add.

The problem seems to be not with "knetworkconf" gui code (C++ code) but with 
perl code of backend.
When I run 
.../backends/network-conf script I see following errors
--
Can't locate /general.pl in @INC (@INC contains: 
/usr/lib/perl5/5.10.0/i586-linux-thread-multi /usr/lib/perl5/5.10.0 
/usr/lib/perl5/site_perl/5.10.0/i586-linux-thread-multi 
/usr/lib/perl5/site_perl/5.10.0 
/usr/lib/perl5/vendor_perl/5.10.0/i586-linux-thread-multi 
/usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl .) at 
../backends_back/network-conf line 52.
BEGIN failed--compilation aborted at ../backends_back/network-conf line 58.
--

But there should be no errors when running this script. When I checked all perl 
scripts I found following
--
$SCRIPTSDIR = "";
if ($SCRIPTSDIR =~ /[EMAIL PROTECTED]@]/)
...
--
When I manually edited all perl scripts and specified value of this variable 
directly in each script:
--
$SCRIPTSDIR = "/usr/share/kde4/apps/knetworkconf/backends"; 
--
(I did this on openSuse so path can be different on Ubuntu)
I was able to run this script without errors and knetworkconf started to work.

So the problem is that the value of scriptsdir variable was not defined
in backends scripts. As far as I can see from
http://websvn.kde.org/trunk/KDE/kdeadmin/knetworkconf/backends/ the same
variable is defined in system-tools-backends.pc and probably pkg-config
(http://pkg-config.freedesktop.org/wiki/FrontPage) should be used during
compilation to set values of this variable in all scripts (perl sources
have $SCRIPTSDIR = "@scriptsdir@"; definition of this variable and
probably the value should be set during compilation). I am not familiar
with CMake and I am not sure how exactly knetworkconf should be compiled
to set the values of $SCRIPTSDIR variable during compilation. But I hope
that this additional information will help to resolve this issue.

Thanks,
Serhiy

-- 
kcmshell4 kcm_knetworkconfmodule says "Could not parse the XML file"
https://bugs.launchpad.net/bugs/229366
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to