Hello, I am trying to compile perl Mail-ClamAV-0.22 (http://search.cpan.org/~sabeck/Mail-ClamAV-0.22/ClamAV.pm) for Mailscanner clamavmodule for virus checking.
At the beginning i had problem with: -- shell -- seth:~/Mail-ClamAV-0.22 # perl Makefile.PL Checking if your kit is complete... Looks good Note (probably harmless): No library found for -lclamav Writing Makefile for Mail::ClamAV -- shell -- And i solved the problem with editing two files: /usr/libdata/perl5/i386-openbsd/5.8.8/Config.pm /usr/libdata/perl5/i386-openbsd/5.8.8/Config_heavy.pl Replacing line in Config.pl From: libpth => '/usr/lib', To: libpth => '/usr/lib /usr/local/lib', And Config_heavy.pl From: libpth='/usr/lib' To: libpth='/usr/lib /usr/local/lib' And now there are no errors with missing library: -- shell -- seth:~/Mail-ClamAV-0.22 # perl Makefile.PL Checking if your kit is complete... Looks good Writing Makefile for Mail::ClamAV -- shell -- And also make accomplished successfully Now i have another problem with make test and pthreads: -- shell -- seth:~/Mail-ClamAV-0.22 # make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/Mail-ClamAV..../usr/bin/perl:/usr/local/lib/libclamav.so.8.0: undefined symbol 'pthread_create' /usr/bin/perl:/usr/local/lib/libclamav.so.8.0: undefined symbol 'pthread_getspecific' /usr/bin/perl:/usr/local/lib/libclamav.so.8.0: undefined symbol 'pthread_key_delete' /usr/bin/perl:/usr/local/lib/libclamav.so.8.0: undefined symbol 'pthread_once' /usr/bin/perl:/usr/local/lib/libclamav.so.8.0: undefined symbol 'pthread_key_create' /usr/bin/perl:/usr/local/lib/libclamav.so.8.0: undefined symbol 'pthread_mutex_unlock' /usr/bin/perl:/usr/local/lib/libclamav.so.8.0: undefined symbol 'pthread_mutex_lock' /usr/bin/perl:/usr/local/lib/libclamav.so.8.0: undefined symbol 'pthread_join' /usr/bin/perl:/usr/local/lib/libclamav.so.8.0: undefined symbol 'pthread_setspecific' t/Mail-ClamAV....ok 1/10LibClamAV Warning: *********************************************************** LibClamAV Warning: *** This version of the ClamAV engine is outdated. *** LibClamAV Warning: *** DON'T PANIC! Read http://www.clamav.net/support/faq *** LibClamAV Warning: *********************************************************** t/Mail-ClamAV....dubious Test returned status 0 (wstat 139, 0x8b) DIED. FAILED tests 3-10 Failed 8/10 tests, 20.00% okay Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/Mail-ClamAV.t 0 139 10 16 160.00% 3-10 Failed 1/1 test scripts, 0.00% okay. 8/10 subtests failed, 20.00% okay. *** Error code 255 Stop in /home/cnav/Mail-ClamAV-0.22 (line 761 of Makefile). -- shell -- -- line 761 of Makefile -- Line 761: test_dynamic :: pure_all PERL_DL_NONLAZY=1 $(FULLPERLRUN) "-MExtUtils::Command::MM" "-e" "test_harness($(TEST_VERBOSE), '$(INST_LIB)', '$(INST_ARCHLIB)')" $(TEST_FILES) -- line 761 of Makefile -- And now i am not quite sure how to solve this problem. Here are additional output from my system: -- shell -- seth:~/Mail-ClamAV-0.22 # clamav-config --libs -L/usr/local/lib -lz -L/usr/local/lib -lbz2 -R/usr/local/lib -L/usr/local/lib -lgmp -R/usr/local/lib -liconv seth:~/Mail-ClamAV-0.22 # pkg_info | grep clamav clamav-0.93.3 virus scanner -- shell -- As far as i checked in ports clamav is builded with pthread support. -- random cut clamav Makefile from ports -- WANTLIB= c milter pthread wrap z CONFIGURE_ENV+= LDFLAGS="-lpthread -L/usr/lib -L../libclamav/.libs -L${LOCALBASE}/lib" \ CPPFLAGS="-I/usr/include -I${LOCALBASE}/include" -- random cut clamav Makefile from ports -- If any of you have any ideas how to solve this problem, please help. Regards, Mariusz Makowski