Discussion:
[PacketFence-devel] staging PF repo code for testing
Boris Epstein
2015-06-03 17:08:47 UTC
Permalink
Hello all,

I have started making some code modifications and decided to test them. As
it was recommended to me I linked my code from the Github repo to
/usr/local/pf on my Centos 6 machine. I also compiled the pfcmd executable,
etc.

When I tried to run it I got the following error messages:

[***@pf1 ~]# service packetfence start
Starting PacketFence...Set name-type for VLAN subsystem. Should be visible
in /proc/net/vlan/config
Couldn't require pf::services::manager::httpd_admin : has '+name' given but
no name attribute already exists at
/usr/share/perl5/vendor_perl/Method/Generate/Constructor.pm line 15.
Compilation failed in require at (eval 1368) line 3.
at /usr/share/perl5/vendor_perl/Module/Pluggable.pm line 28
Couldn't require pf::services::manager::httpd_webservices : Attempt to
reload pf/services/manager/httpd.pm aborted.
Compilation failed in require at
/usr/share/perl5/vendor_perl/Module/Runtime.pm line 317.
Compilation failed in require at (eval 1763) line 3.
at /usr/share/perl5/vendor_perl/Module/Pluggable.pm line 28
Couldn't require pf::services::manager::httpd_portal : Attempt to reload
pf/services/manager/httpd.pm aborted.
Compilation failed in require at
/usr/share/perl5/vendor_perl/Module/Runtime.pm line 317.
Compilation failed in require at (eval 1767) line 3.
at /usr/share/perl5/vendor_perl/Module/Pluggable.pm line 28
Couldn't require pf::services::manager::httpd_aaa : Attempt to reload
pf/services/manager/httpd.pm aborted.
Compilation failed in require at
/usr/share/perl5/vendor_perl/Module/Runtime.pm line 317.
Compilation failed in require at (eval 1771) line 3.
at /usr/share/perl5/vendor_perl/Module/Pluggable.pm line 28
Couldn't require pf::services::manager::snort : Attempt to reload pf/
class.pm aborted.
Compilation failed in require at /usr/local/pf/lib/pf/violation_config.pm line
22.

When I link to the old, RPM-furnished content things seem to work fine.

For the background on this please see the following:

http://www.mail-archive.com/packetfence-***@lists.sourceforge.net/msg09032.html

Thanks in advance for any and all advice.

Regards,

Boris.
Boris Epstein
2015-06-03 17:11:27 UTC
Permalink
A lttle addendum to the below:

here is the code I am using:

https://github.com/borepstein/packetfence

I haven't really changed much in it, definitely have not removed (or moved)
any modules, so the error messages I got are quite puzzling to say the
least.

Boris.
Post by Boris Epstein
Hello all,
I have started making some code modifications and decided to test them. As
it was recommended to me I linked my code from the Github repo to
/usr/local/pf on my Centos 6 machine. I also compiled the pfcmd executable,
etc.
Starting PacketFence...Set name-type for VLAN subsystem. Should be visible
in /proc/net/vlan/config
Couldn't require pf::services::manager::httpd_admin : has '+name' given
but no name attribute already exists at
/usr/share/perl5/vendor_perl/Method/Generate/Constructor.pm line 15.
Compilation failed in require at (eval 1368) line 3.
at /usr/share/perl5/vendor_perl/Module/Pluggable.pm line 28
Couldn't require pf::services::manager::httpd_webservices : Attempt to
reload pf/services/manager/httpd.pm aborted.
Compilation failed in require at
/usr/share/perl5/vendor_perl/Module/Runtime.pm line 317.
Compilation failed in require at (eval 1763) line 3.
at /usr/share/perl5/vendor_perl/Module/Pluggable.pm line 28
Couldn't require pf::services::manager::httpd_portal : Attempt to reload
pf/services/manager/httpd.pm aborted.
Compilation failed in require at
/usr/share/perl5/vendor_perl/Module/Runtime.pm line 317.
Compilation failed in require at (eval 1767) line 3.
at /usr/share/perl5/vendor_perl/Module/Pluggable.pm line 28
Couldn't require pf::services::manager::httpd_aaa : Attempt to reload
pf/services/manager/httpd.pm aborted.
Compilation failed in require at
/usr/share/perl5/vendor_perl/Module/Runtime.pm line 317.
Compilation failed in require at (eval 1771) line 3.
at /usr/share/perl5/vendor_perl/Module/Pluggable.pm line 28
Couldn't require pf::services::manager::snort : Attempt to reload pf/
class.pm aborted.
Compilation failed in require at /usr/local/pf/lib/pf/violation_config.pm line
22.
When I link to the old, RPM-furnished content things seem to work fine.
Thanks in advance for any and all advice.
Regards,
Boris.
James Rouzier
2015-06-03 18:39:27 UTC
Permalink
Boris,

The problem is you may be missing some dependencies or you have a syntax
error in your code.

Here a possible fix for this.

I am assuming the following.
You are running centos or redhat

Your code is in /usr/local/pf

To get all the dependencies for packetfence without installing the
packetfence package.

yum install yum-utils

cd /usr/local/pf

sh addons/dev-helpers/centos-chroot/install-packages-from-spec.sh

This will install all the dependencies for the current devel

Make sure you have pfconfig running

/usr/local/pf/sbin/pfconfig -d

If you want to do a quick test of any changes you have done will compile.

perl -I/usr/local/pf/lib -c /usr/local/pf/lib/pf/module.pm

If you want to see if your changes will break any of our unittest do the
following.

cd /usr/local/pf/t

perl smoke.t

I hope this helps








James Rouzier
***@inverse.ca :: +1.514.755.3630 :: http://www.inverse.ca
Inverse inc. :: Leaders behind SOGo (http://www.sogo.nu) and PacketFence (http://www.packetfence.org)
Post by Boris Epstein
https://github.com/borepstein/packetfence
I haven't really changed much in it, definitely have not removed (or
moved) any modules, so the error messages I got are quite puzzling to
say the least.
Boris.
Hello all,
I have started making some code modifications and decided to test
them. As it was recommended to me I linked my code from the Github
repo to /usr/local/pf on my Centos 6 machine. I also compiled the
pfcmd executable, etc.
Starting PacketFence...Set name-type for VLAN subsystem. Should be
visible in /proc/net/vlan/config
Couldn't require pf::services::manager::httpd_admin : has '+name'
given but no name attribute already exists at
/usr/share/perl5/vendor_perl/Method/Generate/Constructor.pm line 15.
Compilation failed in require at (eval 1368) line 3.
at /usr/share/perl5/vendor_perl/Module/Pluggable.pm line 28
Attempt to reload pf/services/manager/httpd.pm
<http://httpd.pm/> aborted.
Compilation failed in require at
/usr/share/perl5/vendor_perl/Module/Runtime.pm line 317.
Compilation failed in require at (eval 1763) line 3.
at /usr/share/perl5/vendor_perl/Module/Pluggable.pm line 28
Couldn't require pf::services::manager::httpd_portal : Attempt to
reload pf/services/manager/httpd.pm <http://httpd.pm/> aborted.
Compilation failed in require at
/usr/share/perl5/vendor_perl/Module/Runtime.pm line 317.
Compilation failed in require at (eval 1767) line 3.
at /usr/share/perl5/vendor_perl/Module/Pluggable.pm line 28
Couldn't require pf::services::manager::httpd_aaa : Attempt to
reload pf/services/manager/httpd.pm <http://httpd.pm/> aborted.
Compilation failed in require at
/usr/share/perl5/vendor_perl/Module/Runtime.pm line 317.
Compilation failed in require at (eval 1771) line 3.
at /usr/share/perl5/vendor_perl/Module/Pluggable.pm line 28
Couldn't require pf::services::manager::snort : Attempt to reload
pf/class.pm <http://class.pm/> aborted.
Compilation failed in require at
/usr/local/pf/lib/pf/violation_config.pm
<http://violation_config.pm/> line 22.
When I link to the old, RPM-furnished content things seem to work fine.
Thanks in advance for any and all advice.
Regards,
Boris.
------------------------------------------------------------------------------
_______________________________________________
PacketFence-devel mailing list
https://lists.sourceforge.net/lists/listinfo/packetfence-devel
Loading...