libmagic files missing??

Vizion vizion at vizion.occoxmail.com
Fri Sep 9 17:41:23 PDT 2005


On Friday 09 September 2005 17:19,  the author Giorgos Keramidas contributed 
to the dialogue on-
 Re: libmagic files missing??: 

>On 2005-09-09 15:46, Vizion <vizion at vizion.occoxmail.com> wrote:
>> Hi
>>
>> Here is the listing of:
>> /usr/src/lib/libmagic
>> dns1# ls -l
>> total 1276
>> -rw-r--r--  1 root  wheel     1619 Dec 16  2004 Makefile
>> -r--r--r--  1 root  wheel     3859 Apr  2 22:28 Makefile,v
>> -rw-r--r--  1 root  wheel     5783 Aug  9  2004 config.h
>> -r--r--r--  1 root  wheel     6277 Apr  2 22:28 config.h,v
>> -rw-r--r--  1 root  wheel  1236221 Sep  9 15:34 magic
>> -rwxr-xr-x  1 root  wheel    22879 Sep  9 15:34 mkmagic
>>
>> I am getting compile problems over libmagic and am wondering how I can be
>> certain that all libmagic files are on the system.
>>
>> dns1# pwd
>> /usr/share/misc
>> dns1# ls -l | grep magic
>> -r--r--r--  1 root  wheel   360801 Nov  4  2004 magic
>> -r--r--r--  1 root  wheel   771456 Nov  4  2004 magic.mgc
>> -r--r--r--  1 root  wheel    30231 Nov  4  2004 magic.mime
>> -r--r--r--  1 root  wheel    41728 Nov  4  2004 magic.mime.mgc
>>
>> /usr/ports/lang/php5-extensions compile reporting it cannot find libmagic
>>
>> Can anyone please  point a fingure in the right direction
>
>Do you have a log of the build errors?
>
>You can generate a log file of the complete process by running:
>
>	# script ~/logfile
>	Script started, output file is /root/logfile
>	# cd /usr/ports/lang/php5-extensions
>	# make install
>	[...]


Here is what I have -- is that enough?
I seriously need to fix this as quickly as I can -- but I want als to be 
respectful of your time

**************************************
/usr/ports/lang/php5-extensions
dns1# make clean
===>  Cleaning for pecl-zip-1.0
===>  Cleaning for php5-bz2-5.0.5
===>  Cleaning for php5-zlib-5.0.5
===>  Cleaning for unzip-5.52_2
===>  Cleaning for fribidi-0.10.4_1
===>  Cleaning for libiconv-1.9.2_1
===>  Cleaning for pecl-fribidi-1.0
===>  Cleaning for php5-iconv-5.0.5
===>  Cleaning for php5-mbstring-5.0.5
===>  Cleaning for mysql-client-5.0.12
===>  Cleaning for php5-filepro-5.0.5
===>  Cleaning for php5-mysql-5.0.5
===>  Cleaning for php5-mysqli-5.0.5
===>  Cleaning for php5-pgsql-5.0.5
===>  Cleaning for php5-sqlite-5.0.5
===>  Cleaning for postgresql-client-7.4.8
===>  Cleaning for autoconf-2.13.000227_5
===>  Cleaning for autoconf-2.53_3
===>  Cleaning for autoconf-2.59_2
===>  Cleaning for automake-1.5_2,1
===>  Cleaning for bison-1.75_2,1
===>  Cleaning for gettext-0.14.5
===>  Cleaning for gmake-3.80_2
===>  Cleaning for imake-6.8.2
===>  Cleaning for libidn-0.5.18
===>  Cleaning for libltdl-1.5.20
===>  Cleaning for libtool-1.3.5_2
===>  Cleaning for libtool-1.5.20
===>  Cleaning for m4-1.4.3
===>  Cleaning for p5-gettext-1.03
===>  Cleaning for php5-dio-5.0.5
===>  Cleaning for php5-gettext-5.0.5
===>  Cleaning for php5-ncurses-5.0.5
===>  Cleaning for php5-pcntl-5.0.5
===>  Cleaning for php5-pcre-5.0.5
===>  Cleaning for php5-shmop-5.0.5
===>  Cleaning for php5-sysvmsg-5.0.5
===>  Cleaning for php5-sysvsem-5.0.5
===>  Cleaning for php5-tokenizer-5.0.5
===>  Cleaning for pkgconfig-0.17.2
===>  Cleaning for t1lib-5.0.1,1
===>  Cleaning for zziplib-0.10.82
===>  Cleaning for curl-7.14.1
===>  Cleaning for php5-curl-5.0.5
===>  Cleaning for php5-ftp-5.0.5
===>  Cleaning for ImageMagick-6.2.2.1
===>  Cleaning for jasper-1.701.0
===>  Cleaning for jbigkit-1.6
===>  Cleaning for jpeg-6b_3
===>  Cleaning for lcms-1.14,1
===>  Cleaning for libfpx-1.2.0.12
===>  Cleaning for libungif-4.1.3
===>  Cleaning for ming-0.2a_1
===>  Cleaning for pecl-imagick-0.9.11_2
===>  Cleaning for php5-exif-5.0.5
===>  Cleaning for php5-gd-5.0.5
===>  Cleaning for php5-ming-5.0.5
===>  Cleaning for png-1.2.8_2
===>  Cleaning for tiff-3.7.3
===>  Cleaning for perl-5.8.7
===>  Cleaning for php5-5.0.5
===>  Cleaning for cclient-2004d,1
===>  Cleaning for php5-imap-5.0.5
===>  Cleaning for php5-bcmath-5.0.5
===>  Cleaning for help2man-1.35.1
===>  Cleaning for php5-calendar-5.0.5
===>  Cleaning for mpeg2codec-1.2_1
===>  Cleaning for net-snmp-5.2.1.2
===>  Cleaning for php5-snmp-5.0.5
===>  Cleaning for pecl-yaz-1.0.3
===>  Cleaning for php5-soap-5.0.5
===>  Cleaning for php5-sockets-5.0.5
===>  Cleaning for php5-xmlrpc-5.0.5
===>  Cleaning for yaz-2.1.8
===>  Cleaning for freetype2-2.1.10_1
===>  Cleaning for ghostscript-gnu-7.07_13
===>  Cleaning for gsfonts-8.11_2
===>  Cleaning for pdflib-6.0.2
===>  Cleaning for pecl-pdflib-2.0.4
===>  Cleaning for libgcrypt-1.2.1_1
===>  Cleaning for libgpg-error-1.0_1
===>  Cleaning for libmcrypt-2.5.7_1
===>  Cleaning for mhash-0.9.2
===>  Cleaning for php5-mcrypt-5.0.5
===>  Cleaning for php5-mhash-5.0.5
===>  Cleaning for php5-openssl-5.0.5
===>  Cleaning for pecl-fileinfo-1.0
===>  Cleaning for php5-posix-5.0.5
===>  Cleaning for aspell-0.60.3
===>  Cleaning for expat-1.95.8_3
===>  Cleaning for libxml2-2.6.21
===>  Cleaning for libxslt-1.1.15
===>  Cleaning for php5-ctype-5.0.5
===>  Cleaning for php5-dom-5.0.5
===>  Cleaning for php5-pspell-5.0.5
===>  Cleaning for php5-simplexml-5.0.5
===>  Cleaning for php5-wddx-5.0.5
===>  Cleaning for php5-xml-5.0.5
===>  Cleaning for php5-xsl-5.0.5
===>  Cleaning for apache-1.3.33_2
===>  Cleaning for apache-2.0.54_4
===>  Cleaning for mnogosearch31-3.1.21
===>  Cleaning for php5-mnogosearch-5.0.5
===>  Cleaning for php5-session-5.0.5
===>  Cleaning for php5-tidy-5.0.5
===>  Cleaning for tidy-lib-050826
===>  Cleaning for fontconfig-2.2.3,1
===>  Cleaning for xorg-libraries-6.8.2
===>  Cleaning for php5-extensions-1.0
dns1# 
****************************************************** 
dns1# make
===>  Vulnerability check disabled, database not found
===>  Found saved configuration for php5-extensions-1.0
===>  Extracting for php5-extensions-1.0
===>  Patching for php5-extensions-1.0
===>  Configuring for php5-extensions-1.0
dns1#
*********************************************************
dns1# make install
===>  Installing for php5-extensions-1.0
===>   php5-extensions-1.0 depends on file: /usr/local/include/php/main/php.h 
- found
===>   php5-extensions-1.0 depends on 
file: /usr/local/lib/php/20041030/bcmath.so - found
===>   php5-extensions-1.0 depends on file: /usr/local/lib/php/20041030/bz2.so 
- found
===>   php5-extensions-1.0 depends on 
file: /usr/local/lib/php/20041030/calendar.so - found
===>   php5-extensions-1.0 depends on 
file: /usr/local/lib/php/20041030/ctype.so - found
===>   php5-extensions-1.0 depends on 
file: /usr/local/lib/php/20041030/curl.so - found
===>   php5-extensions-1.0 depends on file: /usr/local/lib/php/20041030/dio.so 
- found
===>   php5-extensions-1.0 depends on file: /usr/local/lib/php/20041030/dom.so 
- found
===>   php5-extensions-1.0 depends on 
file: /usr/local/lib/php/20041030/exif.so - found
===>   php5-extensions-1.0 depends on 
file: /usr/local/lib/php/20041030/fileinfo.so - not found
===>    Verifying install for /usr/local/lib/php/20041030/fileinfo.so 
in /usr/ports/sysutils/pecl-fileinfo
===>  Vulnerability check disabled, database not found
===>  Extracting for pecl-fileinfo-1.0
=> Checksum OK for PECL/Fileinfo-1.0.tgz.
===>  Patching for pecl-fileinfo-1.0
===>  Applying FreeBSD patches for pecl-fileinfo-1.0
===>   Ignoring 
patchfile /usr/ports/sysutils/pecl-fileinfo/files/patch-config.m4,v
===>   pecl-fileinfo-1.0 depends on executable: phpize - found
===>   pecl-fileinfo-1.0 depends on file: /usr/local/bin/autoconf259 - found
===>  PHPizing for pecl-fileinfo-1.0
Configuring for:
PHP Api Version:         20031224
Zend Module Api No:      20041030
Zend Extension Api No:   220040412
===>  Configuring for pecl-fileinfo-1.0
configure: WARNING: you should use --build, --host, --target
checking build system type... i386-portbld-freebsd5.3
checking host system type... i386-portbld-freebsd5.3
checking for i386-portbld-freebsd5.3-gcc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking whether cc understands -c and -o together... yes
checking if compiler supports -R... yes
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php 
-I/usr/local/include/php/main -I/usr/local/include/php/TSRM 
-I/usr/local/include/php/Zend
checking for PHP extension directory... /usr/local/lib/php/20041030
checking for re2c... exit 0;
checking for gawk... gawk
checking for fileinfo support... yes, shared
checking for magic files in default path... not found
configure: error: Please reinstall the libmagic distribution
===>  Script "configure" failed unexpectedly.
Please report the problem to ale at FreeBSD.org [maintainer] and attach the
"/usr/ports/sysutils/pecl-fileinfo/work/Fileinfo-1.0/config.log" including
the output of the failure of your make command. Also, it might be a good idea
to provide an overview of all packages installed on your system (e.g. an `ls
/var/db/pkg`).
*** Error code 1

Stop in /usr/ports/sysutils/pecl-fileinfo.
*** Error code 1

Stop in /usr/ports/lang/php5-extensions.

***********************************************************


dns1# locate libmagic
/usr/lib/libmagic.a
/usr/lib/libmagic.so
/usr/lib/libmagic.so.1
/usr/lib/libmagic_p.a
/usr/share/man/cat3/libmagic.3.gz
/usr/share/man/man3/libmagic.3.gz
/usr/src/contrib/file/libmagic.man
/usr/src/contrib/file/libmagic.man,v
/usr/src/lib/libmagic
/usr/src/lib/libmagic/Makefile
/usr/src/lib/libmagic/Makefile,v
/usr/src/lib/libmagic/config.h
/usr/src/lib/libmagic/config.h,v
********************************
dns1# cd /usr/lib
dns1# ls -l | grep magic
-r--r--r--   1 root  wheel    65030 Nov  4  2004 libmagic.a
lrwxrwxrwx   1 root  wheel       13 Apr 28  2004 libmagic.so -> libmagic.so.1
-r--r--r--   1 root  wheel    52848 Nov  4  2004 libmagic.so.1
-r--r--r--   1 root  wheel    66438 Nov  4  2004 libmagic_p.a
********************************
dns1# cd /usr/lib
dns1# ls -l | grep magic
-r--r--r--   1 root  wheel    65030 Nov  4  2004 libmagic.a
lrwxrwxrwx   1 root  wheel       13 Apr 28  2004 libmagic.so -> libmagic.so.1
-r--r--r--   1 root  wheel    52848 Nov  4  2004 libmagic.so.1
-r--r--r--   1 root  wheel    66438 Nov  4  2004 libmagic_p.a
dns1# cd /usr/src/lib/libmagic
dns1# ls -l
total 1276
-rw-r--r--  1 root  wheel     1619 Dec 16  2004 Makefile
-r--r--r--  1 root  wheel     3859 Apr  2 22:28 Makefile,v
-rw-r--r--  1 root  wheel     5783 Aug  9  2004 config.h
-r--r--r--  1 root  wheel     6277 Apr  2 22:28 config.h,v
-rw-r--r--  1 root  wheel  1236221 Sep  9 15:34 magic
-rwxr-xr-x  1 root  wheel    22879 Sep  9 15:34 mkmagic
dns1#                                                       




Thanks 

david
>
>	# exit
>	exit
>
>	Script done, output file is /root/logfile
>	#

-- 
40 yrs navigating and computing in blue waters.
English Owner & Captain of British Registered 60' bluewater Ketch S/V Taurus.
 Currently in San Diego, CA. Sailing bound for Europe via Panama Canal after 
completing engineroom refit.


More information about the freebsd-questions mailing list