Uprade for the GD Library (FreeBSD 7.2-RELEASE)

jwnetsource

Verified User
Joined
Nov 12, 2009
Messages
59
Location
Southeast Michigan
I'm having problems with Wordpress and uploading jpg files. It seems the errors are pointing to the GD library.

I would like to upgrade (FreeBSD 7.2-RELEASE) the GD library, but the last time I manually upgraded from ports I broke Direct Admin really bad.

Is there a process for upgrding the GD library without breaking Direct Admin on my FreeBSD box.

Thanks and Happy Holidays!



Code:
Warning: imagecreatefromstring() [function.imagecreatefromstring]: gd-jpeg: JPEG library reports unrecoverable error: in /absolute/path/domain.com/public_html/wp-includes/media.php on line 258

Warning: imagecreatefromstring() [function.imagecreatefromstring]: Passed data is not in 'JPEG' format in /absolute/path/domain.com/public_html/wp-includes/media.php on line 258

Warning: imagecreatefromstring() [function.imagecreatefromstring]: Couldn't create GD Image Stream out of Data in /absolute/path/domain.com/public_html/wp-includes/media.php on line 258

Warning: imagecreatefromstring() [function.imagecreatefromstring]: gd-jpeg: JPEG library reports unrecoverable error: in /absolute/path/domain.com/public_html/wp-includes/media.php on line 258

Warning: imagecreatefromstring() [function.imagecreatefromstring]: Passed data is not in 'JPEG' format in /absolute/path/domain.com/public_html/wp-includes/media.php on line 258

Warning: imagecreatefromstring() [function.imagecreatefromstring]: Couldn't create GD Image Stream out of Data in /absolute/path/domain.com/public_html/wp-includes/media.php on line 258

Warning: imagecreatefromstring() [function.imagecreatefromstring]: gd-jpeg: JPEG library reports unrecoverable error: in /absolute/path/domain.com/public_html/wp-includes/media.php on line 258

Warning: imagecreatefromstring() [function.imagecreatefromstring]: Passed data is not in 'JPEG' format in /absolute/path/domain.com/public_html/wp-includes/media.php on line 258

Warning: imagecreatefromstring() [function.imagecreatefromstring]: Couldn't create GD Image Stream out of Data in /absolute/path/domain.com/public_html/wp-includes/media.php on line 258

Warning: imagecreatefromstring() [function.imagecreatefromstring]: gd-jpeg: JPEG library reports unrecoverable error: in /absolute/path/domain.com/public_html/wp-includes/media.php on line 258

Warning: imagecreatefromstring() [function.imagecreatefromstring]: Passed data is not in 'JPEG' format in /absolute/path/domain.com/public_html/wp-includes/media.php on line 258

Warning: imagecreatefromstring() [function.imagecreatefromstring]: Couldn't create GD Image Stream out of Data in /absolute/path/domain.com/public_html/wp-includes/media.php on line 258

Warning: imagecreatefromstring() [function.imagecreatefromstring]: gd-jpeg: JPEG library reports unrecoverable error: in /absolute/path/domain.com/public_html/wp-includes/media.php on line 258

Warning: imagecreatefromstring() [function.imagecreatefromstring]: Passed data is not in 'JPEG' format in /absolute/path/domain.com/public_html/wp-includes/media.php on line 258

Warning: imagecreatefromstring() [function.imagecreatefromstring]: Couldn't create GD Image Stream out of Data in /absolute/path/domain.com/public_html/wp-includes/media.php on line 258

Warning: Cannot modify header information - headers already sent by (output started at /absolute/path/domain.com/public_html/wp-includes/media.php:258) in /absolute/path/domain.com/public_html/wp-includes/pluggable.php on line 866
 
Wrong JPEG library version: library is 80, caller expects 62
Wrong JPEG library version: library is 80, caller expects 62
Wrong JPEG library version: library is 80, caller expects 62
 
Problem remains - still not able to upload JPGs via wordpress. PNGs, et. al. upload just fine.

Upgraded GD from ports
Upgrade PHP to 5.3.8

Did:
Code:
./build update
./build php n

The script error messages remain as indicated above.

Also:
Code:
Configure Command 	'./configure' '--with-apxs2' '--with-curl=/usr/local/lib' '--with-gd' '--enable-gd-native-ttf' '--with-ttf' '--with-gettext' '--with-jpeg-dir=/usr/local/lib' '--with-freetype-dir=/usr/local/lib' '--with-kerberos' '--with-openssl' '--with-mcrypt' '--with-mhash' '--with-mysql=/usr/local/mysql' '--with-mysqli=/usr/local/bin/mysql_config' '--with-pcre-regex=/usr/local' '--with-pdo-mysql=/usr/local/mysql' '--with-pear' '--with-png-dir=/usr/local/lib' '--with-zlib' '--with-zlib-dir=/usr/local/lib' '--enable-zip' '--with-iconv=/usr/local' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-mbstring'

and

Code:
GD Support 	enabled
GD Version 	bundled (2.0.34 compatible)
FreeType Support 	enabled
FreeType Linkage 	with freetype
FreeType Version 	2.4.8
GIF Read Support 	enabled
GIF Create Support 	enabled
JPEG Support 	enabled
libJPEG Version 	6b
PNG Support 	enabled
libPNG Version 	1.2.44
WBMP Support 	enabled
XBM Support 	enabled
 
Whoa, you're in luck! I started writing a guide on how to fix GD in FreeBSD last week when I ran into some trouble. I will make the instructions pretty after; go ahead and follow these steps:

How to Fix FreeBSD, GD, libjpeg, suPHP, AP2, PHP 5.2.17

*** DO NOT BUILD LIBJPEG WITH CUSTOMBUILD ***

Tested on FreeBSD 8.2 x64.

1) portupgrade -f jpeg

2) portupgrade -f gd

3) In configure.php5 (custombuild/custom/ap2/configure.php5) add/modify:

with-gd=/usr/local/lib \

NOTE: If you're using suPHP or another custom config, add the gd path in the appropriate place.

4) Symlinks in /usr/local/lib/ (to point to /usr/local/include)
# ln -s /usr/local/include/gd.h gd.h
# ln -s /usr/local/include/gd_io.h gd_io.h
# ln -s /usr/local/include/gdcache.h gdcache.h
# ln -s /usr/local/include/gdfont1.h gdfont1.h
# ln -s /usr/local/include/gdfontg.h gdfontg.h
# ln -s /usr/local/include/gdfontmb.h gdfontmb.h
# ln -s /usr/local/include/gdfonts.h gdfonts.h
# ln -s /usr/local/include/gdfontt.h gdfontt.h
# ln -s /usr/local/include/gdfx.h gdfx.h
# ln -s /usr/local/include/gdhelpers.h gdhelpers.h

5) Symlink libjpeg.so

# ln -s libjpeg.so.11 libjpeg.so

6) ./build clean
7) ./build php n
 
Hi mmx,

Thanks for your advice. I followed your suggestion. Still does not work, but we have reduced the erroro messages. What remains is:
Code:
Warning: imagecreatefromstring() [function.imagecreatefromstring]: Passed data is not in 'JPEG' format in /usr/home/proairman/domains/proairman.com/public_html/wp-includes/media.php on line 258

Warning: imagecreatefromstring() [function.imagecreatefromstring]: Couldn't create GD Image Stream out of Data in /usr/home/proairman/domains/proairman.com/public_html/wp-includes/media.php on line 258

Warning: imagecreatefromstring() [function.imagecreatefromstring]: Passed data is not in 'JPEG' format in /usr/home/proairman/domains/proairman.com/public_html/wp-includes/media.php on line 258

Warning: imagecreatefromstring() [function.imagecreatefromstring]: Couldn't create GD Image Stream out of Data in /usr/home/proairman/domains/proairman.com/public_html/wp-includes/media.php on line 258

Warning: imagecreatefromstring() [function.imagecreatefromstring]: Passed data is not in 'JPEG' format in /usr/home/proairman/domains/proairman.com/public_html/wp-includes/media.php on line 258

Warning: imagecreatefromstring() [function.imagecreatefromstring]: Couldn't create GD Image Stream out of Data in /usr/home/proairman/domains/proairman.com/public_html/wp-includes/media.php on line 258

Warning: Cannot modify header information - headers already sent by (output started at /usr/home/proairman/domains/proairman.com/public_html/wp-includes/media.php:258) in /usr/home/proairman/domains/proairman.com/public_html/wp-includes/pluggable.php on line 866

FYI: we are working with FreeBSD 7.2-RELEASE. See http://dev.airsafetygroup.com/phpinfo.php for server details.


In '/usr/local/lib' note the symbolic links:
Code:
lrwxr-xr-x   1 root  wheel       23 Dec 24 17:14 gd.h -> /usr/local/include/gd.h
lrwxr-xr-x   1 root  wheel       26 Dec 24 17:14 gd_io.h -> /usr/local/include/gd_io.h
lrwxr-xr-x   1 root  wheel       28 Dec 24 17:14 gdcache.h -> /usr/local/include/gdcache.h
lrwxr-xr-x   1 root  wheel       28 Dec 24 17:14 gdfont1.h -> /usr/local/include/gdfont1.h
lrwxr-xr-x   1 root  wheel       28 Dec 24 17:14 gdfontg.h -> /usr/local/include/gdfontg.h
lrwxr-xr-x   1 root  wheel       29 Dec 24 17:14 gdfontmb.h -> /usr/local/include/gdfontmb.h
lrwxr-xr-x   1 root  wheel       28 Dec 24 17:14 gdfonts.h -> /usr/local/include/gdfonts.h
lrwxr-xr-x   1 root  wheel       28 Dec 24 17:14 gdfontt.h -> /usr/local/include/gdfontt.h
lrwxr-xr-x   1 root  wheel       25 Dec 24 17:14 gdfx.h -> /usr/local/include/gdfx.h
lrwxr-xr-x   1 root  wheel       30 Dec 24 17:14 gdhelpers.h -> /usr/local/include/gdhelpers.h

My 'custombuild/custom/ap2/configure.php5' contains:
Code:
#!/bin/sh
./configure \
        --with-apxs2 \
        --with-curl=/usr/local/lib \
        --with-gd=/usr/local/lib \
        --enable-gd-native-ttf \
        --with-ttf \
        --with-gettext \
        --with-jpeg-dir=/usr/local/lib \
        --with-freetype-dir=/usr/local/lib \
        --with-kerberos \
        --with-openssl \
        --with-mcrypt \
        --with-mhash \
        --with-mysql=/usr/local/mysql \
        --with-mysqli=/usr/local/bin/mysql_config \
        --with-pcre-regex=/usr/local \
        --with-pdo-mysql=/usr/local/mysql \
        --with-pear \
        --with-png-dir=/usr/local/lib \
        --with-zlib \
        --with-zlib-dir=/usr/local/lib \
        --enable-zip \
        --with-iconv=/usr/local \
        --enable-bcmath \
        --enable-calendar \
        --enable-ftp \
        --enable-magic-quotes \
        --enable-sockets \
        --enable-mbstring

I'm curious about the date stamp on 'libjpeg.so' and 'libjpeg.so.11'
Code:
-rw-r--r--  1 root  wheel  200582 Dec 22 07:41 libjpeg.a
-rwxr-xr-x  1 root  wheel     917 May 22  2010 libjpeg.la
lrwxr-xr-x  1 root  wheel      13 May 22  2010 libjpeg.so -> libjpeg.so.11
-rwxr-xr-x  1 root  wheel  235640 May 22  2010 libjpeg.so.11

Any other ideas?

Happy Holidays!
 
Last edited:
FYI: we are working with FreeBSD 7.2-RELEASE. See http://dev.airsafetygroup.com/phpinfo.php for server details.

No worries with 7.2, I have 7.4 as my production. :)

Ah ha, I think your GD (and possibly jpeg) is outdated. I am running GD 2.0.34. When was the last time you updated your ports?

# portsnap fetch update
# portupgrade -f jpeg
# portupgrade -f gd
# ./build clean
# ./build php n

By the way, if you are on 7.2, at least move up to 7.4. I highly recommend it now after the recent chroot and pam vulnerabilities were announced. In case you don't know how:

# freebsd-update upgrade -r 7.4-RELEASE
# freebsd-update install

You'll have to reboot. You might have to run "freebsd-update install" again if it tells you to do so.

Also, there is a good chance you have to recompile/portupgrade some packages & ports, especially if they haven't been upgraded in a while. If you upgrade Perl and whatnot, recompiling your DirectAdmin services are highly recommend (Exim, Apache, PHP, etc). Let me know if you need some help in regards to this.

You're welcome; it's my pleasure to help out. Happy holidays to you as well! :)
 
Thanks again.

By the way, if you are on 7.2, at least move up to 7.4. I highly recommend it now after the recent chroot and pam vulnerabilities were announced. In case you don't know how:

# freebsd-update upgrade -r 7.4-RELEASE
# freebsd-update install

I'll look at this. If memory serves me correctly, I've address this problem seperate from the upgrade.

I'm very leary about messing with FreeBSD outside of DirectAdmin. I once upgraded (PHP I think) from ports and totaly mangled DirectAdmin. What affect would/could:
Code:
# freebsd-update upgrade -r 7.4-RELEASE
# freebsd-update install

have on DirectAdmin
 
Also, there is a good chance you have to recompile/portupgrade some packages & ports, especially if they haven't been upgraded in a while. If you upgrade Perl and whatnot, recompiling your DirectAdmin services are highly recommend (Exim, Apache, PHP, etc). Let me know if you need some help in regards to this.

Muy thoughts now are:
Code:
# freebsd-update -r 7.4-RELEASE upgrade
# freebsd-update install
#shutdown -r now
#freebsd-update install
#portupgrade -af

Then the DirectAdmin...... What is the recomended way to udate DirectAdmin without breaking things after running the FreeBSD udates?

Thanks!
 
Muy thoughts now are:
Code:
# freebsd-update -r 7.4-RELEASE upgrade
# freebsd-update install
#shutdown -r now
#freebsd-update install
#portupgrade -af

Then the DirectAdmin...... What is the recomended way to udate DirectAdmin without breaking things after running the FreeBSD udates?

Thanks!

Don't be scared updating FreeBSD. I know my heart stops too when I run that freebsd-update command, but I have successfully migrated 7.x to 8.2 without any issues. The upgrades become painless when you have experience and backups of important files.

Can you please show me the output of:

# pkg_version
# pkg_info
# perl -v
# openssl version

This way, I can give you some tips and tricks on what needs to be done with little trouble.

The commands you wrote above are correct; I will extend the instructions to cover DirectAdmin updates/recompiles as well. I am planning to release a guide very soon to show how one can migrate bsdpan modules and some services to the ports system, including updating OpenSSL and OpenSSH on FreeBSD.

Moving on, here is a short overview of what to do. If you paste me the outputs of the requested commands above, I can help you cover your bases with little downtime.

Before we begin, put WITHOUT_X11=yes and MAKE_IDEA=yes in /etc/make.conf.

WITHOUT_X11: don't compile X11 binaries and libraries in FreeBSD (so all that X11 junk doesn't get installed).
MAKE_IDEA: see this page.

  1. # cp -Rp /etc /etc.old (keep a backup copy of /etc configuration files)
  2. # export EDITOR=ee (if you want to use "ee" as your editor when migrating /etc files)
  3. # freebsd-update -r 7.4-RELEASE upgrade
  4. # freebsd-update install

    If it starts asking you to merge/update configuration files in /etc, pay special attention to sshd_config, passwd, fstab and hosts files. I don't think you will have much to do here if you are updating 7.2 to 7.4. Worst case, your /etc backup from before will come in handy if something breaks.

    Just a note: updating /etc is confusing, because you're going to see an attempt of the upgrade process merging files together (<<<<<<<<< and >>>>>>>>>> everywhere). To keep things simple, modify the files the way you want them to be. That means removing whatever was added by the upgrade process (the <<< and >>>, along with "8.2 below", etc) and save them as finals. Does that make sense?
    --
  5. # shutdown -r now
  6. # freebsd-update install
  7. # shutdown -r now (to complete all updates)
  8. # portsnap fetch update (get fresh indexes for 7.4)

    You can run portupgrade -af, but I like doing things manually.

    Ports that may or may not need updating are (or needs to be recompiled with -f): perl, pcre, automake, autoconf, automake-wrapper, autoconf-wrapper, p5* modules (do portupgrade -f p5*), libtool, openssl/openssh-portable (if installed from ports), wget, clamav, cyrus-sasl, gd, gettext, glib, gmake, jpeg, libidn, libiconv, and others.
    --
  9. # cd /usr/local/directadmin/custombuild
    You may or may not need to update everything. I don't like using "./build all d" because I have some of the packages installed by DirectAdmin migrated over to ports, such as libs (e.g. libtool, libjpeg [jpeg]), freetype, libconv, clamav, gd, pcre, etc.

    I have this in my options.conf, allowing me to manage system-level libraries and tools via ports.

    autoconf=no
    automake=no
    libtool=no
    --
  10. # ./build clean
  11. # ./build update
  12. # ./build exim
  13. # ./build mysql
  14. # ./build dovecot
  15. # ./build apache
  16. # ./build curl
  17. # ./build php n
  18. # ./build proftpd/pureftpd
  19. # ./build phpmyadmin and the webmail apps

I hope this keeps you on the right path. As always, have local access to your machine in case you need to drop down to single-user mode and fix some files in /etc after a bad migration. In all my years of updating FreeBSD, the only time(s) I have bunked something was during the merging of /etc (back when buildworld was popular) but freebsd-update makes it easier now. Just pay attention!
 
Last edited:
Sure:

# pkg_version
Code:
autoconf                            =
autoconf-wrapper                    =
automake                            =
automake-wrapper                    =
bigreqsproto                        =
bison                               =
bsdpan-DB_File                      !
bsdpan-Digest                       <
bsdpan-Digest-SHA1                  <
bsdpan-Error                        <
bsdpan-HTML-Parser                  <
bsdpan-IO-Socket-SSL                <
bsdpan-Mail-SpamAssassin            >
bsdpan-Net-CIDR-Lite                <
bsdpan-Net-DNS                      <
bsdpan-Net-IP                       <
bsdpan-NetAddr-IP                   >
bsdpan-Net_SSLeay.pm                !
bsdpan-Storable                     <
bsdpan-Sys-Hostname-Long            =
bsdpan-URI                          <
bsdpan-libwww-perl                  !
cvsup-without-gui                   =
cyrus-sasl                          =
db41                                =
exim-4.69                           !
expat                               =
ezm3                                =
fontconfig                          =
freetype2                           =
gd                                  =
gettext                             =
gmake                               =
gnupg                               =
help2man                            =
inputproto                          =
jpeg                                =
kbproto                             =
libICE                              =
libSM                               =
libX11                              =
libXau                              =
libXaw                              =
libXdmcp                            =
libXext                             =
libXmu                              =
libXp                               =
libXpm                              =
libXt                               =
libassuan                           =
libcheck                            =
libgcrypt                           =
libgpg-error                        =
libiconv                            =
libksba                             =
libpthread-stubs                    =
libtool                             =
libxcb                              =
libxml2                             =
m4                                  =
mysql-client                        =
oniguruma                           =
p5-Archive-Tar                      =
p5-Compress-Raw-Bzip2               =
p5-Compress-Raw-Zlib                =
p5-Compress-Zlib                    =
p5-Crypt-OpenSSL-Bignum             =
p5-Crypt-OpenSSL-RSA                =
p5-Crypt-OpenSSL-Random             =
p5-Digest                           =
p5-Digest-HMAC                      =
p5-Digest-SHA                       =
p5-Digest-SHA1                      =
p5-Encode-Detect                    =
p5-ExtUtils-CBuilder                =
p5-ExtUtils-Install                 =
p5-ExtUtils-ParseXS                 =
p5-HTML-Parser                      =
p5-HTML-Tagset                      =
p5-IO-Compress-Base                 =
p5-IO-Compress-Bzip2                =
p5-IO-Compress-Zlib                 =
p5-IO-Socket-INET6                  =
p5-IO-Socket-SSL                    =
p5-IO-String                        =
p5-IO-Zlib                          =
p5-Mail-DKIM                        =
p5-Mail-SpamAssassin                =
p5-Mail-Tools                       =
p5-Math-BigInt                      =
p5-Module-Build                     =
p5-Net-CIDR-Lite                    =
p5-Net-DNS                          =
p5-Net-IP                           =
p5-Net-SSLeay                       =
p5-NetAddr-IP                       =
p5-Socket6                          =
p5-Storable                         =
p5-Sys-Hostname-Long                =
p5-Test-Harness                     =
p5-Time-HiRes                       =
p5-TimeDate                         =
p5-URI                              =
p5-YAML                             =
p5-gettext                          =
perl                                =
php5-gd                             =
php5-mbstring                       =
php5-session                        =
pkg-config                          =
png                                 =
portaudit                           =
portupgrade                         =
printproto                          =
proftpd                             !
pth                                 =
python26                            =
razor-agents                        =
rsync                               =
ruby                                =
ruby18-bdb                          =
screen                              =
t1lib                               =
vm-pop3d                            !
xcb-proto                           =
xcmiscproto                         =
xextproto                           =
xf86bigfontproto                    =
xorg-macros                         =
xproto                              =
xtrans                              =

# pkg_info
Code:
autoconf-2.62       Automatically configure source code on many Un*x platforms 
autoconf-wrapper-20071109 Wrapper script for GNU autoconf
automake-1.10.1     GNU Standards-compliant Makefile generator (1.10)
automake-wrapper-20071109 Wrapper script for GNU automake
bigreqsproto-1.1.0  BigReqs extension headers
bison-2.4.1,1       A parser generator from FSF, (mostly) compatible with Yacc
bsdpan-DB_File-1.815 DB_File - Perl5 access to Berkeley DB version 1.x
bsdpan-Digest-1.15  Digest - Modules that calculate message digests
bsdpan-Digest-SHA1-2.11 Digest::SHA1 - Perl interface to the SHA-1 algorithm
bsdpan-Error-0.17015 Error - Error/exception handling in an OO-ish way
bsdpan-HTML-Parser-3.56 HTML::Parser - HTML parser class
bsdpan-IO-Socket-SSL-1.06 IO::Socket::SSL -- Nearly transparent SSL encapsulation for
bsdpan-Mail-SpamAssassin-3.002005 Mail::SpamAssassin - Spam detector and markup engine
bsdpan-Net-CIDR-Lite-0.20 Net::CIDR::Lite - Perl extension for merging IPv4 or IPv6 C
bsdpan-Net-DNS-0.60 Net::DNS - Perl interface to the DNS resolver
bsdpan-Net-IP-1.25  Net::IP - Perl extension for manipulating IPv4/IPv6 address
bsdpan-NetAddr-IP-4.027 NetAddr::IP - Manages IPv4 and IPv6 addresses and subnets
bsdpan-Net_SSLeay.pm-1.30 Net::SSLeay - Perl extension for using OpenSSL
bsdpan-Storable-2.16 Storable - persistence for Perl data structures
bsdpan-Sys-Hostname-Long-1.4 Sys::Hostname::Long - Try every conceivable way to get full
bsdpan-URI-1.35     URI - Uniform Resource Identifiers (absolute and relative)
bsdpan-libwww-perl-5.834 LWP - The World-Wide Web library for Perl
cvsup-without-gui-16.1h_4 File distribution system optimized for CVS (non-GUI version
cyrus-sasl-2.1.23   RFC 2222 SASL (Simple Authentication and Security Layer)
db41-4.1.25_4       The Berkeley DB package, revision 4.1
exim-4.69-1         exim 4.69 mail server
expat-2.0.1_1       XML 1.0 parser written in C
ezm3-1.2_1          Easier, more portable Modula-3 distribution for building CV
fontconfig-2.8.0,1  An XML-based font configuration API for X Windows
freetype2-2.3.12    A free and portable TrueType font rendering engine
gd-2.0.35_7,1       A graphics library for fast creation of images
gettext-0.17_1      GNU gettext package
gmake-3.81_3        GNU version of 'make' utility
gnupg-2.0.14_1      The GNU Privacy Guard
help2man-1.38.2     Automatically generating simple manual pages from program o
inputproto-2.0      Input extension headers
jpeg-8_2            IJG's jpeg compression utilities
kbproto-1.0.4       KB extension headers
libICE-1.0.6,1      Inter Client Exchange library for X11
libSM-1.1.1,1       Session Management library for X11
libX11-1.3.3,1      X11 library
libXau-1.0.5        Authentication Protocol library for X11
libXaw-1.0.7,1      X Athena Widgets library
libXdmcp-1.0.3      X Display Manager Control Protocol library
libXext-1.1.1,1     X11 Extension library
libXmu-1.0.5,1      X Miscellaneous Utilities libraries
libXp-1.0.0,1       X print library
libXpm-3.5.7        X Pixmap library
libXt-1.0.7         X Toolkit library
libassuan-1.0.5     IPC library used by GnuPG and gpgme
libcheck-0.9.8      A unit test framework for C
libgcrypt-1.4.5     General purpose crypto library based on code used in GnuPG
libgpg-error-1.7    Common error values for all GnuPG components
libiconv-1.13.1_1   A character set conversion library
libksba-1.0.7       KSBA is an X.509 Library
libpthread-stubs-0.3_3 This library provides weak aliases for pthread functions
libtool-2.2.6b      Generic shared library support script
libxcb-1.6          The X protocol C-language Binding (XCB) library
libxml2-2.7.7       XML parser library for GNOME
m4-1.4.14,1         GNU m4
mysql-client-5.1.47 Multithreaded SQL database (client)
oniguruma-4.7.1     A BSDL Regular Expressions library compatible with POSIX/GN
p5-Archive-Tar-1.60 Perl module for creation and manipulation of tar files
p5-Compress-Raw-Bzip2-2.027 Low-Level Interface to bzip2 compression library
p5-Compress-Raw-Zlib-2.027 Low-Level Interface to zlib compression library
p5-Compress-Zlib-2.015 Perl5 interface to zlib compression library
p5-Crypt-OpenSSL-Bignum-0.04 OpenSSL's multiprecision integer arithmetic
p5-Crypt-OpenSSL-RSA-0.26 Perl5 module to RSA encode and decode strings using OpenSSL
p5-Crypt-OpenSSL-Random-0.04 Perl5 interface to the OpenSSL pseudo-random number generat
p5-Digest-1.16      Modules that calculate message digests
p5-Digest-HMAC-1.02 Perl5 interface to HMAC Message-Digest Algorithms
p5-Digest-SHA-5.48  Perl extension for SHA-1/224/256/384/512
p5-Digest-SHA1-2.12 Perl interface to the SHA-1 Algorithm
p5-Encode-Detect-1.01 An Encode::Encoding subclass that detects the encoding of d
p5-ExtUtils-CBuilder-0.2703,1 Compile and link C code for Perl modules
p5-ExtUtils-Install-1.54 Perl extension to install files from here to there
p5-ExtUtils-ParseXS-2.22.03 Converts Perl XS code into C code
p5-HTML-Parser-3.65 Perl5 module for parsing HTML documents
p5-HTML-Tagset-3.20 Some useful data table in parsing HTML
p5-IO-Compress-Base-2.015 Base Class for IO::Uncompress modules
p5-IO-Compress-Bzip2-2.015 An interface to allow writing bzip2 compressed data to file
p5-IO-Compress-Zlib-2.015 Perl5 interface for reading and writing of (g)zip files
p5-IO-Socket-INET6-2.61 Perl module with object interface to AF_INET6 domain socket
p5-IO-Socket-SSL-1.33 Perl5 interface to SSL sockets
p5-IO-String-1.08   Simplified Perl5 module to handle I/O on in-core strings
p5-IO-Zlib-1.10     IO:: style interface to Compress::Zlib
p5-Mail-DKIM-0.38   Perl5 module to process and/or create DKIM email
p5-Mail-SpamAssassin-3.3.1 A highly efficient mail filter for identifying spam
p5-Mail-Tools-2.06  Perl5 modules for dealing with Internet e-mail messages
p5-Math-BigInt-1.89 Math::BigInt - Arbitrary size integer math package
p5-Module-Build-0.3607 Build and install Perl modules
p5-Net-CIDR-Lite-0.21 Perl extension for merging IPv4 or IPv6 CIDR addresses
p5-Net-DNS-0.66     Perl5 interface to the DNS resolver, and dynamic updates
p5-Net-IP-1.25_1    Perl extension for manipulating IPv4/IPv6 addresses
p5-Net-SSLeay-1.36  Perl5 interface to SSL
p5-NetAddr-IP-4.02.7 Perl module for working with IP addresses and blocks thereo
p5-Socket6-0.23     IPv6 related part of the C socket.h defines and structure m
p5-Storable-2.21    Persistency for perl data structures
p5-Sys-Hostname-Long-1.4 Try every conceivable way to get full hostname
p5-Test-Harness-3.21 Run perl standard test scripts with statistics
p5-Time-HiRes-1.9721,1 A perl5 module implementing High resolution time, sleep, an
p5-TimeDate-1.20,1  Perl5 module containing a better/faster date parser for abs
p5-URI-1.54         Perl5 interface to Uniform Resource Identifier (URI) refere
p5-YAML-0.71        YAML implementation in Perl
p5-gettext-1.05_2   Message handling functions
perl-5.10.1_1       Practical Extraction and Report Language
php5-gd-5.3.2       The gd shared extension for php
php5-mbstring-5.3.2 The mbstring shared extension for php
php5-session-5.3.2  The session shared extension for php
pkg-config-0.23_1   A utility to retrieve information about installed libraries
png-1.4.1_1         Library for manipulating PNG images
portaudit-0.5.15    Checks installed ports against a list of security vulnerabi
portupgrade-2.4.6_4,2 FreeBSD ports/packages administration and management tool s
printproto-1.0.4    Print extension headers
proftpd-1.3.1       Highly configurable ftp daemon
pth-2.0.7           GNU Portable Threads
python26-2.6.5      An interpreted object-oriented programming language
razor-agents-2.84   A distributed, collaborative, spam detection and filtering 
rsync-3.0.7         A network file distribution/synchronization utility
ruby-1.8.7.248_2,1  An object-oriented interpreted scripting language
ruby18-bdb-0.6.5_1  Ruby interface to Sleepycat's Berkeley DB revision 2 or lat
screen-4.0.3_7      A multi-screen window manager
t1lib-5.1.2_1,1     A Type 1 Rasterizer Library for UNIX/X11
vm-pop3d-1.1.7f     A virtual POP3 server
xcb-proto-1.6       The X protocol C-language Binding (XCB) protocol
xcmiscproto-1.2.0   XCMisc extension headers
xextproto-7.1.1     XExt extension headers
xf86bigfontproto-1.2.0 XFree86-Bigfont extension headers
xorg-macros-1.6.0   X.Org development aclocal macros
xproto-7.0.16       X11 protocol headers
xtrans-1.2.5        Abstract network code for X

# perl -v

Code:
This is perl, v5.10.1 (*) built for i386-freebsd-64int


# openssl
Code:
OpenSSL 0.9.8e 23 Feb 2007
 
Everything looks good. I see that some PHP packages were installed via ports, namely:

Code:
php5-gd                             =
php5-mbstring                       =
php5-session                        =

These could interfere with DirectAdmin. I don't know if you are using these explicitly, but removing them is probably a wise idea to keep clutter down.

# pkg_delete php5-gd-5.3.2

and so forth.

You also have duplicate Perl modules installed (bsdpan and ports [the p5s] such as "Digest-SHA1"). This won't hinder your 7.4 upgrade process, so you can ignore the instructions that follow.

You can run:

# pkgdb -Ff

To remove the duplicates. Skip da_exim and da_proftpd and only remove the duplicate bsdpan/p5 modules. Don't touch Mail-SpamAssassin for now. It will ask you in the following sequence (example below):

Code:
Duplicated origin: security/p5-Digest-SHA - bsdpan-Digest-SHA-5.62 p5-Digest-SHA-5.70
Unregister any of them? [no]

Say yes. It will then ask:

Code:
Unregister bsdpan-Digest-SHA-5.62 keeping the installed files intact? [no]

Say yes. It will then show:

Code:
 Unregister bsdpan-Digest-SHA-5.62 keeping the installed files intact? [no] yes
  -> p5-Digest-SHA-5.70 is kept.
  --> Saving the bsdpan-Digest-SHA-5.62's +CONTENTS file as /var/db/pkg/p5-Digest-SHA-5.70/+CONTENTS.bsdpan-Digest-SHA-5.62
  --> Unregistering bsdpan-Digest-SHA-5.62
  --> Done.
[Updating the pkgdb <format:bdb_btree> in /var/db/pkg ... - 111 packages found (-1 +0) (...) done]
Stale dependency: p5-Mail-DKIM-0.39 -> bsdpan-Digest-SHA-5.62 (security/p5-Digest-SHA):
Fixed. (-> p5-Digest-SHA-5.70)

It basically replaces the bsdpan module with the ports one, allowing better management in the future. All this will be detailed in my guide/howto very soon.
 
I wonder if this is related to my problem if timthumb.php not working for Wordpress themes on my server?
 
Back
Top