(Solved) Problem with fontconfig breaking php-gd

This forum is for topics dealing with problems with software specifically in the AArch64 repo.

(Solved) Problem with fontconfig breaking php-gd

Postby paulcrawford » Mon Aug 15, 2016 3:30 am

I use php-gd to support JPGraph which presently advises that gd is not available. Indeed looking at php info gd is not loaded, although requested in php.ini.

Looking the php error log, the reason that gd is not loaded is that libfontconfig is empty:

$this->bbcode_second_pass_code('', '[15-Aug-2016 02:41:31 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/gd.so' - /usr/lib/libfontconfig.so.1: file too short in Unknown on line 0
')

Looking at the user library it is clear that libfontconfig is empty:

$this->bbcode_second_pass_code('', '# ls -l /usr/lib/
lrwxrwxrwx 1 root root 22 Aug 6 11:27 libfontconfig.so -> libfontconfig.so.1.9.2
lrwxrwxrwx 1 root root 22 Aug 6 11:27 libfontconfig.so.1 -> libfontconfig.so.1.9.2
-rwxr-xr-x 1 root root 0 Aug 6 11:27 libfontconfig.so.1.9.2
')

Looking at what is installed and trying to reinstall fontconfig shows that the package is corrupt:

$this->bbcode_second_pass_code('', '# pacman -Q fontconfig
fontconfig 2.12.1-3
[root@no php]# pacman -S fontconfig
warning: fontconfig-2.12.1-3 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) fontconfig-2.12.1-3

Total Installed Size: 1.92 MiB

:: Proceed with installation? [Y/n] Y
(1/1) checking keys in keyring [########################################################################] 100%
(1/1) checking package integrity [########################################################################] 100%
:: File /var/cache/pacman/pkg/fontconfig-2.12.1-3-aarch64.pkg.tar.xz is corrupted (invalid or corrupted package (checksum)).
Do you want to delete it? [Y/n] Y
error: failed to commit transaction (invalid or corrupted package (checksum))
Errors occurred, no packages were upgraded.
')

This is interesting as fontconfig-2.12.1-3 was installed at the same time as the uboot-odroid-c2-2015.01-10 that I had problems with last week and made my C2 unbootable (although it is working again now). Looking at the upgrade of fontconfig at that time there was no indication of any corruption but now there is.

Will there be a fontconfig-2.12.1-4-aarch64 soon to clean this up so I can get gd running again?

Thanks,

Paul
Last edited by paulcrawford on Tue Aug 16, 2016 5:16 pm, edited 1 time in total.
paulcrawford
 
Posts: 20
Joined: Sat Jan 25, 2014 1:16 am

Re: Problem with fontconfig breaking php-gd

Postby WarheadsSE » Mon Aug 15, 2016 10:38 am

1) please checked your disk
2) Ensure you have have not modified the CARCH of pacman.conf (I hope not, but hey)
3) Ensure that your package index is up to date.

As you can see from the pacman output, it was re-installing the package from your local package cache, and somehow that pkg.tar.xz has become problematic. Having removed it now, it should re-download from the mirrors
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Problem with fontconfig breaking php-gd

Postby paulcrawford » Mon Aug 15, 2016 1:34 pm

$this->bbcode_second_pass_quote('', '1')) please checked your disk


Not sure what is meant here. I am running an Odroid C2 with an eMMC card. What specifically do I need to check?

$this->bbcode_second_pass_quote('', '2')) Ensure you have have not modified the CARCH of pacman.conf (I hope not, but hey)


I don't see CARCH specifically in pacman.conf but what I do have is below:

$this->bbcode_second_pass_code('', '# cat /etc/pacman.conf
#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives

#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir = /
#DBPath = /var/lib/pacman/
#CacheDir = /var/cache/pacman/pkg/
#LogFile = /var/log/pacman.log
#GPGDir = /etc/pacman.d/gnupg/
#HookDir = /etc/pacman.d/hooks/
HoldPkg = pacman glibc
#XferCommand = /usr/bin/curl -C - -f %u > %o
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
#UseDelta = 0.7
Architecture = aarch64

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg =
#IgnoreGroup =

#NoUpgrade =
#NoExtract =

# Misc options
#UseSyslog
#Color
#TotalDownload
CheckSpace
#VerbosePkgLists

# PGP signature checking
# NOTE: None of this will work without running `pacman-key --init` first.
# The compiled in default is equivalent to the following line. This requires
# you to locally sign and trust packager keys using `pacman-key` for them to be
# considered valid.
#SigLevel = Required DatabaseOptional
#LocalFileSigLevel = Optional
#RemoteFileSigLevel = Required
# If you wish to check signatures but avoid local sign and trust issues, use
# the following line. This will treat any key imported into pacman's keyring as
# trusted.
#SigLevel = Optional TrustAll
# For now, off by default unless you read the above.
SigLevel = Never

#
# REPOSITORIES
# - can be defined here or included from another file
# - pacman will search repositories in the order defined here
# - local/custom mirrors can be added here or in separate files
# - repositories listed first will take precedence when packages
# have identical names, regardless of version number
# - URLs will have $repo replaced by the name of the current repo
# - URLs will have $arch replaced by the name of the architecture
#
# Repository entries are of the format:
# [repo-name]
# Server = ServerName
# Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#

# The testing repositories are disabled by default. To enable, uncomment the
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.

[core]
Include = /etc/pacman.d/mirrorlist

[extra]
Include = /etc/pacman.d/mirrorlist

[community]
Include = /etc/pacman.d/mirrorlist

[alarm]
Include = /etc/pacman.d/mirrorlist

[aur]
Include = /etc/pacman.d/mirrorlist

# An example of a custom package repository. See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs

')

It seems OK to me but you may see something amiss.

$this->bbcode_second_pass_quote('', '3')) Ensure that your package index is up to date.


I have run pacman -Sy several times:

$this->bbcode_second_pass_code('', '# pacman -Sy
:: Synchronizing package databases...
core is up to date
extra is up to date
community 3.4 MiB 1199K/s 00:03 [########################################################################] 100%
alarm is up to date
aur is up to date
')

$this->bbcode_second_pass_quote('', 'A')s you can see from the pacman output, it was re-installing the package from your local package cache, and somehow that pkg.tar.xz has become problematic. Having removed it now, it should re-download from the mirrors


I have removed the package from the local package cache:

$this->bbcode_second_pass_code('', '# rm /var/cache/pacman/pkg/fontconfig-2.12.1-3-aarch64.pkg.tar.xz
rm: cannot remove '/var/cache/pacman/pkg/fontconfig-2.12.1-3-aarch64.pkg.tar.xz': No such file or directory
# ls -l /var/cache/pacman/pkg|grep fontconfig
-rw-r--r-- 1 root root 807456 Apr 11 15:18 fontconfig-2.11.95-1-aarch64.pkg.tar.xz
-rw-r--r-- 1 root root 806336 Jun 18 14:14 fontconfig-2.12.0-1-aarch64.pkg.tar.xz
')

When I tried to reinstall fontconfig there was an error:

$this->bbcode_second_pass_code('', '# pacman -S fontconfig
warning: fontconfig-2.12.1-3 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) fontconfig-2.12.1-3

Total Download Size: 0.77 MiB
Total Installed Size: 1.92 MiB

:: Proceed with installation? [Y/n] Y
:: Retrieving packages...
fontconfig-2.12.1-3-aarch64 787.9 KiB 515K/s 00:02 [########################################################################] 100%
(1/1) checking keys in keyring [########################################################################] 100%
(1/1) checking package integrity [########################################################################] 100%
(1/1) loading package files [########################################################################] 100%
(1/1) checking for file conflicts [########################################################################] 100%
error: failed to commit transaction (conflicting files)
fontconfig: /etc/fonts/conf.avail/10-autohint.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/10-hinting-full.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/10-hinting-medium.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/10-hinting-none.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/10-hinting-slight.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/10-no-sub-pixel.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/10-scale-bitmap-fonts.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/10-sub-pixel-bgr.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/10-sub-pixel-rgb.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/10-sub-pixel-vbgr.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/10-sub-pixel-vrgb.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/10-unhinted.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/11-lcdfilter-default.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/11-lcdfilter-legacy.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/11-lcdfilter-light.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/20-unhint-small-vera.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/25-unhint-nonlatin.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/30-metric-aliases.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/30-urw-aliases.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/40-nonlatin.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/45-latin.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/49-sansserif.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/50-user.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/51-local.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/60-latin.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/65-fonts-persian.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/65-khmer.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/65-nonlatin.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/69-unifont.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/70-no-bitmaps.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/70-yes-bitmaps.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/80-delicious.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/90-synthetic.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/10-hinting-slight.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/10-scale-bitmap-fonts.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/20-unhint-small-vera.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/30-metric-aliases.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/30-urw-aliases.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/40-nonlatin.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/45-latin.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/49-sansserif.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/50-user.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/51-local.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/60-latin.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/65-fonts-persian.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/65-nonlatin.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/69-unifont.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/80-delicious.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/90-synthetic.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/README exists in filesystem
fontconfig: /etc/fonts/fonts.conf exists in filesystem
fontconfig: /etc/fonts/fonts.dtd exists in filesystem
fontconfig: /usr/bin/fc-cache exists in filesystem
fontconfig: /usr/bin/fc-cat exists in filesystem
fontconfig: /usr/bin/fc-list exists in filesystem
fontconfig: /usr/bin/fc-match exists in filesystem
fontconfig: /usr/bin/fc-pattern exists in filesystem
fontconfig: /usr/bin/fc-query exists in filesystem
fontconfig: /usr/bin/fc-scan exists in filesystem
fontconfig: /usr/bin/fc-validate exists in filesystem
fontconfig: /usr/include/fontconfig/fcfreetype.h exists in filesystem
fontconfig: /usr/include/fontconfig/fcprivate.h exists in filesystem
fontconfig: /usr/include/fontconfig/fontconfig.h exists in filesystem
fontconfig: /usr/lib/libfontconfig.so exists in filesystem
fontconfig: /usr/lib/libfontconfig.so.1 exists in filesystem
fontconfig: /usr/lib/libfontconfig.so.1.9.2 exists in filesystem
fontconfig: /usr/lib/pkgconfig/fontconfig.pc exists in filesystem
fontconfig: /usr/share/doc/fontconfig/fontconfig-devel.pdf exists in filesystem
fontconfig: /usr/share/doc/fontconfig/fontconfig-devel.txt exists in filesystem
fontconfig: /usr/share/licenses/fontconfig/COPYING exists in filesystem...
doc and man entries removed...
fontconfig: /usr/share/man/man5/fonts-conf.5.gz exists in filesystem
Errors occurred, no packages were upgraded.
')

So then I tried to remove fontconfig but that is not allowed since php-gd depends on it:

$this->bbcode_second_pass_code('', '# pacman -R fontconfig
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: gd: removing fontconfig breaks dependency 'fontconfig'
')

Next I removed php-gd:

$this->bbcode_second_pass_code('', '# pacman -R php-gd
checking dependencies...

Packages (1) php-gd-7.0.9-1

Total Removed Size: 0.11 MiB

:: Do you want to remove these packages? [Y/n] Y
:: Processing package changes...
(1/1) removing php-gd [########################################################################] 100%
ldconfig: File /usr/lib/libfontconfig.so is empty, not checked.
ldconfig: File /usr/lib/libfontconfig.so.1.9.2 is empty, not checked.
ldconfig: File /usr/lib/libfontconfig.so.1 is empty, not checked.
')

You can see there that the problem is with libfontconfig.so which is empty.

I then tried to remove fontconfig again but it still claimed that it was a dependency of gd:

$this->bbcode_second_pass_code('', '# pacman -R fontconfig
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: gd: removing fontconfig breaks dependency 'fontconfig'
')

So then I rebooted and tried to remove fontconfig again before and after confirming that php-gd was gone:

$this->bbcode_second_pass_code('', '# pacman -R fontconfig
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: gd: removing fontconfig breaks dependency 'fontconfig'
# pacman -Q php-gd
error: package 'php-gd' was not found
# pacman -R fontconfig
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: gd: removing fontconfig breaks dependency 'fontconfig'
')

Then I realized that php-gd may not be the issue so I removed gd and then was allowed to remove fontconfig:

$this->bbcode_second_pass_code('', '[root@normaddie-ii src]# pacman -Q gd
gd 2.2.3-2
[root@normaddie-ii src]# pacman -R gd
checking dependencies...

Packages (1) gd-2.2.3-2

Total Removed Size: 0.61 MiB

:: Do you want to remove these packages? [Y/n] Y
:: Processing package changes...
(1/1) removing gd [########################################################################] 100%
ldconfig: File /usr/lib/libfontconfig.so is empty, not checked.
ldconfig: File /usr/lib/libfontconfig.so.1.9.2 is empty, not checked.
ldconfig: File /usr/lib/libfontconfig.so.1 is empty, not checked.
[root@normaddie-ii src]# pacman -R fontconfig
checking dependencies...

Packages (1) fontconfig-2.12.1-3


:: Do you want to remove these packages? [Y/n] Y
:: Processing package changes...
(1/1) removing fontconfig [########################################################################] 100%
ldconfig: File /usr/lib/libfontconfig.so is empty, not checked.
ldconfig: File /usr/lib/libfontconfig.so.1.9.2 is empty, not checked.
ldconfig: File /usr/lib/libfontconfig.so.1 is empty, not checked.
')

Next I tried to install fontconfig again but it failed again with a conflicting files error:

$this->bbcode_second_pass_code('', '# pacman -Sy
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
alarm is up to date
aur is up to date
# pacman -S fontconfig
resolving dependencies...
looking for conflicting packages...

Packages (1) fontconfig-2.12.1-3

Total Installed Size: 1.92 MiB

:: Proceed with installation? [Y/n] Y
(1/1) checking keys in keyring [########################################################################] 100%
(1/1) checking package integrity [########################################################################] 100%
(1/1) loading package files [########################################################################] 100%
(1/1) checking for file conflicts [########################################################################] 100%
error: failed to commit transaction (conflicting files)
fontconfig: /etc/fonts/conf.avail/10-autohint.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/10-hinting-full.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/10-hinting-medium.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/10-hinting-none.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/10-hinting-slight.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/10-no-sub-pixel.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/10-scale-bitmap-fonts.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/10-sub-pixel-bgr.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/10-sub-pixel-rgb.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/10-sub-pixel-vbgr.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/10-sub-pixel-vrgb.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/10-unhinted.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/11-lcdfilter-default.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/11-lcdfilter-legacy.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/11-lcdfilter-light.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/20-unhint-small-vera.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/25-unhint-nonlatin.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/30-metric-aliases.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/30-urw-aliases.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/40-nonlatin.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/45-latin.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/49-sansserif.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/50-user.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/51-local.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/60-latin.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/65-fonts-persian.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/65-khmer.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/65-nonlatin.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/69-unifont.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/70-no-bitmaps.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/70-yes-bitmaps.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/80-delicious.conf exists in filesystem
fontconfig: /etc/fonts/conf.avail/90-synthetic.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/10-hinting-slight.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/10-scale-bitmap-fonts.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/20-unhint-small-vera.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/30-metric-aliases.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/30-urw-aliases.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/40-nonlatin.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/45-latin.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/49-sansserif.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/50-user.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/51-local.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/60-latin.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/65-fonts-persian.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/65-nonlatin.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/69-unifont.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/80-delicious.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/90-synthetic.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/README exists in filesystem
fontconfig: /etc/fonts/fonts.conf exists in filesystem
fontconfig: /etc/fonts/fonts.dtd exists in filesystem
fontconfig: /usr/bin/fc-cache exists in filesystem
fontconfig: /usr/bin/fc-cat exists in filesystem
fontconfig: /usr/bin/fc-list exists in filesystem
fontconfig: /usr/bin/fc-match exists in filesystem
fontconfig: /usr/bin/fc-pattern exists in filesystem
fontconfig: /usr/bin/fc-query exists in filesystem
fontconfig: /usr/bin/fc-scan exists in filesystem
fontconfig: /usr/bin/fc-validate exists in filesystem
fontconfig: /usr/include/fontconfig/fcfreetype.h exists in filesystem
fontconfig: /usr/include/fontconfig/fcprivate.h exists in filesystem
fontconfig: /usr/include/fontconfig/fontconfig.h exists in filesystem
fontconfig: /usr/lib/libfontconfig.so exists in filesystem
fontconfig: /usr/lib/libfontconfig.so.1 exists in filesystem
fontconfig: /usr/lib/libfontconfig.so.1.9.2 exists in filesystem
fontconfig: /usr/lib/pkgconfig/fontconfig.pc exists in filesystem
fontconfig: /usr/share/doc/fontconfig/fontconfig-devel.pdf exists in filesystem
fontconfig: /usr/share/doc/fontconfig/fontconfig-devel.txt exists in filesystem
fontconfig: /usr/share/licenses/fontconfig/COPYING exists in filesystem
fontconfig: /usr/share/man/man1/fc-cache.1.gz exists in filesystem
fontconfig: /usr/share/man/man1/fc-cat.1.gz exists in filesystem
fontconfig: /usr/share/man/man1/fc-list.1.gz exists in filesystem
fontconfig: /usr/share/man/man1/fc-match.1.gz exists in filesystem
fontconfig: /usr/share/man/man1/fc-pattern.1.gz exists in filesystem
fontconfig: /usr/share/man/man1/fc-query.1.gz exists in filesystem
fontconfig: /usr/share/man/man1/fc-scan.1.gz exists in filesystem
fontconfig: /usr/share/man/man1/fc-validate.1.gz exists in filesystem...
doc and man entries removed...
fontconfig: /usr/share/man/man5/fonts-conf.5.gz exists in filesystem
Errors occurred, no packages were upgraded.
')

I am not sure what to try next. Any ideas are welcome.

Thanks,

Paul Crawford
paulcrawford
 
Posts: 20
Joined: Sat Jan 25, 2014 1:16 am
Top

Re: Problem with fontconfig breaking php-gd

Postby WarheadsSE » Mon Aug 15, 2016 2:21 pm

fsck
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Problem with fontconfig breaking php-gd

Postby paulcrawford » Mon Aug 15, 2016 6:04 pm

I took the eMMC card and put it in a Linux machine, unmounted it and ran fsck:

$this->bbcode_second_pass_code('', '# fsck /dev/sdb1
fsck from util-linux 2.20.1
e2fsck 1.42.9 (4-Feb-2014)
/dev/sdb1: clean, 46819/477664 files, 807791/1908480 blocks
')

It seems that there is no problem with the card.

What can I try next?
paulcrawford
 
Posts: 20
Joined: Sat Jan 25, 2014 1:16 am

Re: Problem with fontconfig breaking php-gd

Postby WarheadsSE » Mon Aug 15, 2016 6:35 pm

Interesting. Then you've got an actual problem with the write-cache at some point.

My suggestion is to use --force on that particular package, and only that package.

You might want to search the rest of your system non-symlink for *.so files, in case anything else has hit this problem.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Problem with fontconfig breaking php-gd

Postby paulcrawford » Tue Aug 16, 2016 1:35 am

I did as you suggested using --force to install the fontconfig package. Then I reinstalled gd and php-gd (without --force) and rebooted. Finally JPGraph is working again!

I am also starting to figure out how to do the search for other possibly empty .so files. It will be a good experience to learn how to do that.

Thank you so much for your patience.

Paul
paulcrawford
 
Posts: 20
Joined: Sat Jan 25, 2014 1:16 am

Re: Problem with fontconfig breaking php-gd

Postby opotonil » Tue Aug 16, 2016 12:00 pm

opotonil
 
Posts: 40
Joined: Sat Feb 08, 2014 1:17 pm

Re: Problem with fontconfig breaking php-gd

Postby paulcrawford » Tue Aug 16, 2016 12:21 pm

Thank you opotonil, that was easy...
paulcrawford
 
Posts: 20
Joined: Sat Jan 25, 2014 1:16 am


Return to ARMv8

Who is online

Users browsing this forum: No registered users and 8 guests