Make install fails

Hi

I’m trying to install Request Tracker 2.0.4 on OpenBSD 2.8 (Stable)
running on a SparcStation 5 machine. The database backend is PostgresSQL
7.1.2 specially compiled (not through ‘ports’). Perl stands at version
5.6.0. All the modules required are installed (testdeps doesn’t
complain). The install fails with the following error:
/usr/bin/perl /etc/rt/insertdata
BEGIN not safe after errors–compilation aborted at /etc/rt/insertdata
line 21.

I’ve attached a log of the make install output. Anyone knows why this
happens and how I fix it?

TIA

    Paolo

mkdir -p /usr/local/bin
mkdir -p /var/www/html/rt/data
mkdir -p /var/www/html/rt/sessiondata
mkdir -p /etc/rt
mkdir -p /usr/local/lib
mkdir -p /var/www/html/rt/html
mkdir -p /var/www/html/rt/html
/usr/bin/perl tools/initdb ‘Pg’ ‘/usr/local’ ‘localhost’ ‘dbuser’
‘rt2’ create
Now creating a database for RT.
Enter the Pg password for dbuser:
Creating Pg database rt2.
/usr/bin/perl tools/initdb ‘Pg’ ‘/usr/local’ ‘localhost’ ‘dbuser’
‘rt2’ insert
Now populating database schema.
Enter the Pg password for dbuser:
Creating database schema.
schema sucessfully inserted
cp etc/acl.Pg ‘/etc/rt/acl.Pg’
/usr/bin/perl -p -i -e " s’!!DB_TYPE!!‘Pg’g; s’!!DB_HOST!!‘localhost’g;
s’!!DB_RT_PASS!!‘rt_pass’g; s’!!DB_RT_HOST!!‘localhost’g;
s’!!DB_RT_USER!!‘rt_user’g;
s’!!DB_DATABASE!!‘rt2’g;" /etc/rt/acl.Pg
bin/initacls.Pg ‘/usr/local’ ‘localhost’ ‘dbuser’ ‘’ ‘rt2’
‘/etc/rt/acl.Pg’
Enter the postgres administrator’s database password to create a new
user for rt
DROP USER
CREATE USER
CHANGE
CHANGE
CHANGE
CHANGE
CHANGE
CHANGE
CHANGE
CHANGE
CHANGE
CHANGE
CHANGE
CHANGE
CHANGE
CHANGE
CHANGE
CHANGE
CHANGE
CHANGE
CHANGE
CHANGE
CHANGE
CHANGE
CHANGE
CHANGE
CHANGE
CHANGE
CHANGE
CHANGE
CHANGE
CHANGE
CHANGE
CHANGE
CHANGE
CHANGE
[ -f /etc/rt/rt.conf ] && mv /etc/rt/rt.conf /etc/rt/rt.conf.old &&
chmod 000
/etc/rt/rt.conf.old
cp -rp ./etc/config.pm /etc/rt/rt.conf
/usr/bin/perl -p -i -e " s’!!DB_TYPE!!‘Pg’g; s’!!DB_HOST!!‘localhost’g;
s’!!DB_RT_PASS!!‘rt_pass’g; s’!!DB_RT_USER!!‘rt_user’g;
s’!!DB_DATABASE!!‘rt2’g;
s’!!MASON_HTML_PATH!!‘/var/www/html/rt/html’g;
s’!!MASON_LOCAL_HTML_PATH!!‘/var/www/html/rt/html’g;
s’!!MASON_SESSION_PATH!!‘/var/www/html/rt/sessiondata’g;
s’!!MASON_DATA_PATH!!‘/var/www/html/rt/data’g;
s’!!RT_LOG_PATH!!‘/var/log/rt’g;
s’!!RT_VERSION!!‘2.0.4’g; " /etc/rt/rt.conf
[ -d /usr/local/lib ] || mkdir /usr/local/lib
chown -R root /usr/local/lib
chgrp -R wheel /usr/local/lib
chmod -R 0755 /usr/local/lib
( cd ./lib; /usr/bin/perl Makefile.PL INSTALLSITELIB=/usr/local/lib
INSTALLMAN1DIR=/usr/local/man/man1 INSTALLMAN3DIR=/usr/local/man/man3
&& make && make test
&& /usr/bin/perl -p -i -e " s’!!RT_VERSION!!‘2.0.4’g;" blib/lib/RT.pm ;
make install )
Writing Makefile for RT
Manifying blib/man3/RT::Links.3p
Manifying blib/man3/RT::Watchers.3p
Manifying blib/man3/RT::Group.3p
Manifying blib/man3/RT::Keyword.3p
Manifying blib/man3/RT::Record.3p
Manifying blib/man3/RT::ScripConditions.3p
Manifying blib/man3/RT::Action::Generic.3p
Manifying blib/man3/RT::Transaction.3p
Manifying blib/man3/RT::Interface::Email.3p
Manifying blib/man3/RT::Link.3p
Manifying blib/man3/RT.3p
Manifying blib/man3/RT::Watcher.3p
Manifying blib/man3/RT::ObjectKeywords.3p
Manifying blib/man3/RT::EasySearch.3p
Manifying blib/man3/RT::ScripActions.3p
Manifying blib/man3/RT::Scrip.3p
Manifying blib/man3/RT::GroupMembers.3p
Manifying blib/man3/RT::Transactions.3p
Manifying blib/man3/RT::Scrips.3p
Manifying blib/man3/RT::Action::SendEmail.3p
Manifying blib/man3/RT::User.3p
Manifying blib/man3/RT::ScripCondition.3p
Manifying blib/man3/RT::Users.3p
Manifying blib/man3/RT::Ticket.3p
Manifying blib/man3/RT::ACE.3p
Manifying blib/man3/RT::Queue.3p
Manifying blib/man3/RT::Interface::CLI.3p
Manifying blib/man3/RT::Tickets.3p
Manifying blib/man3/RT::GroupMember.3p
Manifying blib/man3/RT::Template.3p
Manifying blib/man3/RT::Templates.3p
Manifying blib/man3/RT::Queues.3p
Manifying blib/man3/RT::Date.3p
Manifying blib/man3/RT::CurrentUser.3p
Manifying blib/man3/RT::ScripAction.3p
Manifying blib/man3/RT::Keywords.3p
Manifying blib/man3/RT::ObjectKeyword.3p
Manifying blib/man3/RT::Attachment.3p
Manifying blib/man3/RT::Groups.3p
Manifying blib/man3/RT::KeywordSelect.3p
Manifying blib/man3/RT::Condition::Generic.3p
Manifying blib/man3/RT::Handle.3p
Manifying blib/man3/RT::ACL.3p
Manifying blib/man3/RT::Attachments.3p
PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib
-I/usr/libdata/perl5/sparc-openbsd/5.6.0 -I/usr/libdata/perl5 test.pl
1…1
ok 1
Skipping /usr/local/lib/RT.pm (unchanged)
Skipping /usr/local/lib/RT/KeywordSelects.pm (unchanged)
Skipping /usr/local/lib/RT/Links.pm (unchanged)
Skipping /usr/local/lib/RT/Watchers.pm (unchanged)
Skipping /usr/local/lib/RT/Group.pm (unchanged)
Skipping /usr/local/lib/RT/Keyword.pm (unchanged)
Skipping /usr/local/lib/RT/Record.pm (unchanged)
Skipping /usr/local/lib/RT/ScripConditions.pm (unchanged)
Skipping /usr/local/lib/RT/Transaction.pm (unchanged)
Skipping /usr/local/lib/RT/Link.pm (unchanged)
Skipping /usr/local/lib/RT/Watcher.pm (unchanged)
Skipping /usr/local/lib/RT/ObjectKeywords.pm (unchanged)
Skipping /usr/local/lib/RT/EasySearch.pm (unchanged)
Skipping /usr/local/lib/RT/ScripActions.pm (unchanged)
Skipping /usr/local/lib/RT/Scrip.pm (unchanged)
Skipping /usr/local/lib/RT/GroupMembers.pm (unchanged)
Skipping /usr/local/lib/RT/Transactions.pm (unchanged)
Skipping /usr/local/lib/RT/Scrips.pm (unchanged)
Skipping /usr/local/lib/RT/User.pm (unchanged)
Skipping /usr/local/lib/RT/ScripCondition.pm (unchanged)
Skipping /usr/local/lib/RT/Users.pm (unchanged)
Skipping /usr/local/lib/RT/Ticket.pm (unchanged)
Skipping /usr/local/lib/RT/ACE.pm (unchanged)
Skipping /usr/local/lib/RT/Queue.pm (unchanged)
Skipping /usr/local/lib/RT/Tickets.pm (unchanged)
Skipping /usr/local/lib/RT/Template.pm (unchanged)
Skipping /usr/local/lib/RT/GroupMember.pm (unchanged)
Skipping /usr/local/lib/RT/Templates.pm (unchanged)
Skipping /usr/local/lib/RT/Queues.pm (unchanged)
Skipping /usr/local/lib/RT/Date.pm (unchanged)
Skipping /usr/local/lib/RT/CurrentUser.pm (unchanged)
Skipping /usr/local/lib/RT/ScripAction.pm (unchanged)
Skipping /usr/local/lib/RT/Keywords.pm (unchanged)
Skipping /usr/local/lib/RT/ObjectKeyword.pm (unchanged)
Skipping /usr/local/lib/RT/Attachment.pm (unchanged)
Skipping /usr/local/lib/RT/Groups.pm (unchanged)
Skipping /usr/local/lib/RT/KeywordSelect.pm (unchanged)
Skipping /usr/local/lib/RT/Handle.pm (unchanged)
Skipping /usr/local/lib/RT/ACL.pm (unchanged)
Skipping /usr/local/lib/RT/Attachments.pm (unchanged)
Skipping /usr/local/lib/RT/Interface/Email.pm (unchanged)
Skipping /usr/local/lib/RT/Interface/CLI.pm (unchanged)
Skipping /usr/local/lib/RT/Interface/Web.pm (unchanged)
Skipping /usr/local/lib/RT/Condition/NewDependency.pm (unchanged)
Skipping /usr/local/lib/RT/Condition/StatusChange.pm (unchanged)
Skipping /usr/local/lib/RT/Condition/AnyTransaction.pm (unchanged)
Skipping /usr/local/lib/RT/Condition/Generic.pm (unchanged)
Skipping /usr/local/lib/RT/Action/Generic.pm (unchanged)
Skipping /usr/local/lib/RT/Action/OpenDependent.pm (unchanged)
Skipping /usr/local/lib/RT/Action/StallDependent.pm (unchanged)
Skipping /usr/local/lib/RT/Action/Notify.pm (unchanged)
Skipping /usr/local/lib/RT/Action/SendEmail.pm (unchanged)
Skipping /usr/local/lib/RT/Action/README.hackers (unchanged)
Skipping /usr/local/lib/RT/Action/ResolveMembers.pm (unchanged)
Skipping /usr/local/lib/RT/Action/NotifyAsComment.pm (unchanged)
Skipping /usr/local/lib/RT/Action/Autoreply.pm (unchanged)
Installing /usr/local/man/man3/RT::Links.3p
Installing /usr/local/man/man3/RT::Watchers.3p
Installing /usr/local/man/man3/RT::Group.3p
Installing /usr/local/man/man3/RT::Keyword.3p
Installing /usr/local/man/man3/RT::Record.3p
Installing /usr/local/man/man3/RT::ScripConditions.3p
Installing /usr/local/man/man3/RT::Action::Generic.3p
Installing /usr/local/man/man3/RT::Transaction.3p
Installing /usr/local/man/man3/RT::Interface::Email.3p
Installing /usr/local/man/man3/RT::Link.3p
Installing /usr/local/man/man3/RT.3p
Installing /usr/local/man/man3/RT::Watcher.3p
Installing /usr/local/man/man3/RT::ObjectKeywords.3p
Installing /usr/local/man/man3/RT::EasySearch.3p
Installing /usr/local/man/man3/RT::ScripActions.3p
Installing /usr/local/man/man3/RT::Scrip.3p
Installing /usr/local/man/man3/RT::GroupMembers.3p
Installing /usr/local/man/man3/RT::Transactions.3p
Installing /usr/local/man/man3/RT::Scrips.3p
Installing /usr/local/man/man3/RT::Action::SendEmail.3p
Installing /usr/local/man/man3/RT::User.3p
Installing /usr/local/man/man3/RT::ScripCondition.3p
Installing /usr/local/man/man3/RT::Users.3p
Installing /usr/local/man/man3/RT::Ticket.3p
Installing /usr/local/man/man3/RT::ACE.3p
Installing /usr/local/man/man3/RT::Queue.3p
Installing /usr/local/man/man3/RT::Interface::CLI.3p
Installing /usr/local/man/man3/RT::Tickets.3p
Installing /usr/local/man/man3/RT::GroupMember.3p
Installing /usr/local/man/man3/RT::Template.3p
Installing /usr/local/man/man3/RT::Templates.3p
Installing /usr/local/man/man3/RT::Queues.3p
Installing /usr/local/man/man3/RT::Date.3p
Installing /usr/local/man/man3/RT::CurrentUser.3p
Installing /usr/local/man/man3/RT::ScripAction.3p
Installing /usr/local/man/man3/RT::Keywords.3p
Installing /usr/local/man/man3/RT::ObjectKeyword.3p
Installing /usr/local/man/man3/RT::Attachment.3p
Installing /usr/local/man/man3/RT::Groups.3p
Installing /usr/local/man/man3/RT::KeywordSelect.3p
Installing /usr/local/man/man3/RT::Condition::Generic.3p
Installing /usr/local/man/man3/RT::Handle.3p
Installing /usr/local/man/man3/RT::ACL.3p
Installing /usr/local/man/man3/RT::Attachments.3p
Writing /usr/local/lib/auto/RT/.packlist
Appending installation info to
/usr/libdata/perl5/sparc-openbsd/5.6.0/perllocal.pod
cp -rp ./webrt/* /var/www/html/rt/html
cp -p ./bin/webmux.pl /usr/local/bin/webmux.pl
cp -p ./bin/rt-mailgate /usr/local/bin/rt-mailgate
cp -p ./bin/rtadmin /usr/local/bin/rtadmin
cp -p ./bin/rt /usr/local/bin/rt
cp -p ./bin/mason_handler.fcgi /usr/local/bin/mason_handler.fcgi
cp -p ./bin/mason_handler.scgi /usr/local/bin/mason_handler.scgi
/usr/bin/perl -p -i -e "s’!!RT_PATH!!‘/usr/local’g;
s’!!PERL!!‘/usr/bin/perl’g;
s’!!RT_VERSION!!‘2.0.4’g; s’!!RT_ETC_PATH!!‘/etc/rt’g;
s’!!RT_LIB_PATH!!'/usr/local/lib’g;"
/usr/local/bin/webmux.pl /usr/local/bin/mason_handler.fcgi
/usr/local/bin/mason_handler.scgi
/usr/local/bin/rt /usr/local/bin/rtadmin /usr/local/bin/rt-mailgate

Make the libraries readable

chmod -R 0755 /usr/local
chown -R root /usr/local/lib
chgrp -R wheel /usr/local/lib
chown -R root /usr/local/bin
chgrp -R rt /usr/local/bin
chmod 0755 /usr/local/bin
chmod 0755 /usr/local/bin
chmod 0755 /etc/rt
chmod 0500 /etc/rt/*
#TODO: the config file should probably be able to have its

owner set seperately from the binaries.

chown -R root /etc/rt
chgrp -R rt /etc/rt
chmod 0550 /etc/rt/rt.conf

Make the interfaces executable and setgid rt

chown root /usr/local/bin/rt-mailgate /usr/local/bin/mason_handler.fcgi
/usr/local/bin/mason_handler.scgi /usr/local/bin/rt
/usr/local/bin/rtadmin
chgrp rt /usr/local/bin/rt-mailgate /usr/local/bin/mason_handler.fcgi
/usr/local/bin/mason_handler.scgi /usr/local/bin/rt
/usr/local/bin/rtadmin
chmod 0755 /usr/local/bin/rt-mailgate /usr/local/bin/mason_handler.fcgi
/usr/local/bin/mason_handler.scgi /usr/local/bin/rt
/usr/local/bin/rtadmin
chmod g+s /usr/local/bin/rt-mailgate /usr/local/bin/mason_handler.fcgi
/usr/local/bin/mason_handler.scgi /usr/local/bin/rt
/usr/local/bin/rtadmin

Make the web ui readable by all.

chmod -R u+rwX,go-w,go+rX /var/www/html/rt/html /var/www/html/rt/html
chown -R root /var/www/html/rt/html /var/www/html/rt/html
chgrp -R wheel /var/www/html/rt/html /var/www/html/rt/html

Make the web ui’s data dir writable

chmod 0770 /var/www/html/rt/data /var/www/html/rt/sessiondata
chown -R www /var/www/html/rt/data /var/www/html/rt/sessiondata
chgrp -R www /var/www/html/rt/data /var/www/html/rt/sessiondata
cp -rp ./tools/insertdata /etc/rt
/usr/bin/perl -p -i -e " s’!!RT_ETC_PATH!!‘/etc/rt’g;
s’!!RT_LIB_PATH!!'/usr/local/lib’g;"/etc/rt/insertdata
BEGIN not safe after errors–compilation aborted at /etc/rt/insertdata
line 21.
/usr/bin/perl /etc/rt/insertdata

*** Error code 255

Stop in /home/paolo/src/rt-2-0-4 (line 178 of Makefile).

Hi

I’m trying to install Request Tracker 2.0.4 on OpenBSD 2.8 (Stable)
running on a SparcStation 5 machine. The database backend is PostgresSQL
7.1.2 specially compiled (not through ‘ports’). Perl stands at version
5.6.0. All the modules required are installed (testdeps doesn’t
complain). The install fails with the following error:
/usr/bin/perl /etc/rt/insertdata
BEGIN not safe after errors–compilation aborted at /etc/rt/insertdata
line 21.

I’ve attached a log of the make install output. Anyone knows why this
happens and how I fix it?

TIA

Paolo

rt-install.log (11.4 KB)