Date: Mon, 04 Feb 2002 20:06:41 +0000 From: David Larkin <David.Larkin@DJL.co.uk> To: Alan Eldridge <alane@geeksrus.net> Cc: mharo@FreeBSD.ORG, ports@FreeBSD.ORG Subject: Re: FreeBSD Port: analog-5.1,1 Message-ID: <3C5EE9D1.7FEF7F75@DJL.co.uk> References: <3C5E988B.6F6D4C75@DJL.co.uk> <3C5EAEA8.5DA9B43B@DJL.co.uk> <3C5EC24F.1CE7C525@DJL.co.uk> <3C5EC343.234EF4E@DJL.co.uk> <3C5ED904.BC882400@DJL.co.uk> <20020204194437.GA58481@wwweasel.geeksrus.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Alan Eldridge wrote: > On Mon, Feb 04, 2002 at 06:55:00PM +0000, David Larkin wrote: > > >> eagle# /usr/local/bin/analog > >> libpng warning: Application was compiled with png.h from libpng-1.0.10 > >> libpng warning: Application is running with png.c from libpng-1.2.1 > >> gd-png: fatal libpng error: Incompatible libpng version in application and > >> library > >> Segmentation fault (core dumped) > >> > > The message is about as specific as it can get. Analog was compiled > against .h files from an old png version. > > Most likely, you've got header files from an old version of png on > your system. Remove all png packages, check for stray headers in > /usr/X11R6/include and /usr/local/include. > > -- > Alan Eldridge > *Network Access Solutions hires the mentally handicapped. Call their > customer service line for proof.* Hi, I'm a little out of my depth when it comes to shared libraries and complicated Make files, but please take a look over the following. Nothing old lying around as far as I can see tried the following Please notre that I'm using a new ports directory ftp'd from freebsd.org today. eagle# cd /usr/ports/www/analog/ eagle# make deinstall ===> Deinstalling for analog-5.1,1 ===> analog-5.1,1 not installed, skipping eagle# make clean ===> Cleaning for bzip2-1.0.1 ===> Cleaning for gettext-0.10.35_1 ===> Cleaning for gmake-3.79.1 ===> Cleaning for libtool-1.3.4_2 ===> Cleaning for gd-1.8.4_5 ===> Cleaning for jpeg-6b_1 ===> Cleaning for png-1.2.1 ===> Cleaning for freetype2-2.0.6 ===> Cleaning for analog-5.1,1 eagle# cd ../../graphics/png eagle# make deinstall ===> Deinstalling for png-1.2.1 ===> png-1.2.1 not installed, skipping eagle# make clean ===> Cleaning for png-1.2.1 eagle# find / -name png.h -print eagle# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! No file png.h anywhere on machine before attempting install of analog !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! eagle# cd /usr/ports/www/analog/ eagle# make ===> Extracting for analog-5.1,1 >> Checksum OK for analog-5.1.tar.gz. ===> analog-5.1,1 depends on shared library: gd.2 - found ===> analog-5.1,1 depends on shared library: jpeg.9 - found ===> analog-5.1,1 depends on shared library: png.5 - not found ===> Verifying install for png.5 in /usr/ports/graphics/png ===> Extracting for png-1.2.1 >> Checksum OK for libpng-1.2.1.tar.gz. ===> Patching for png-1.2.1 ===> Applying FreeBSD patches for png-1.2.1 ===> Configuring for png-1.2.1 ===> Building for png-1.2.1 cc -O -pipe -I. -DPNG_USE_PNGGCCRD -c png.c cc -O -pipe -I. -DPNG_USE_PNGGCCRD -c pngset.c cc -O -pipe -I. -DPNG_USE_PNGGCCRD -c pngget.c cc -O -pipe -I. -DPNG_USE_PNGGCCRD -c pngrutil.c cc -O -pipe -I. -DPNG_USE_PNGGCCRD -c pngtrans.c cc -O -pipe -I. -DPNG_USE_PNGGCCRD -c pngwutil.c cc -O -pipe -I. -DPNG_USE_PNGGCCRD -c pngread.c cc -O -pipe -I. -DPNG_USE_PNGGCCRD -c pngrio.c cc -O -pipe -I. -DPNG_USE_PNGGCCRD -c pngwio.c cc -O -pipe -I. -DPNG_USE_PNGGCCRD -c pngwrite.c cc -O -pipe -I. -DPNG_USE_PNGGCCRD -c pngrtran.c cc -O -pipe -I. -DPNG_USE_PNGGCCRD -c pngwtran.c cc -O -pipe -I. -DPNG_USE_PNGGCCRD -c pngmem.c cc -O -pipe -I. -DPNG_USE_PNGGCCRD -c pngerror.c cc -O -pipe -I. -DPNG_USE_PNGGCCRD -c pngpread.c cc -O -pipe -I. -DPNG_USE_PNGGCCRD -c pnggccrd.c ar rc libpng.a png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o pngwtran.o pngmem.o pngerror.o pngpread.o pnggccrd.o ranlib libpng.a cc -O -pipe -I. -DPNG_USE_PNGGCCRD -fPIC -DPIC -o png.so -c png.c cc -O -pipe -I. -DPNG_USE_PNGGCCRD -fPIC -DPIC -o pngset.so -c pngset.c cc -O -pipe -I. -DPNG_USE_PNGGCCRD -fPIC -DPIC -o pngget.so -c pngget.c cc -O -pipe -I. -DPNG_USE_PNGGCCRD -fPIC -DPIC -o pngrutil.so -c pngrutil.c cc -O -pipe -I. -DPNG_USE_PNGGCCRD -fPIC -DPIC -o pngtrans.so -c pngtrans.c cc -O -pipe -I. -DPNG_USE_PNGGCCRD -fPIC -DPIC -o pngwutil.so -c pngwutil.c cc -O -pipe -I. -DPNG_USE_PNGGCCRD -fPIC -DPIC -o pngread.so -c pngread.c cc -O -pipe -I. -DPNG_USE_PNGGCCRD -fPIC -DPIC -o pngrio.so -c pngrio.c cc -O -pipe -I. -DPNG_USE_PNGGCCRD -fPIC -DPIC -o pngwio.so -c pngwio.c cc -O -pipe -I. -DPNG_USE_PNGGCCRD -fPIC -DPIC -o pngwrite.so -c pngwrite.c cc -O -pipe -I. -DPNG_USE_PNGGCCRD -fPIC -DPIC -o png.so -c png.c cc -O -pipe -I. -DPNG_USE_PNGGCCRD -fPIC -DPIC -o pngset.so -c pngset.c cc -O -pipe -I. -DPNG_USE_PNGGCCRD -fPIC -DPIC -o pngget.so -c pngget.c cc -O -pipe -I. -DPNG_USE_PNGGCCRD -fPIC -DPIC -o pngrutil.so -c pngrutil.c cc -O -pipe -I. -DPNG_USE_PNGGCCRD -fPIC -DPIC -o pngtrans.so -c pngtrans.c cc -O -pipe -I. -DPNG_USE_PNGGCCRD -fPIC -DPIC -o pngwutil.so -c pngwutil.c cc -O -pipe -I. -DPNG_USE_PNGGCCRD -fPIC -DPIC -o pngread.so -c pngread.c cc -O -pipe -I. -DPNG_USE_PNGGCCRD -fPIC -DPIC -o pngrio.so -c pngrio.c cc -O -pipe -I. -DPNG_USE_PNGGCCRD -fPIC -DPIC -o pngwio.so -c pngwio.c cc -O -pipe -I. -DPNG_USE_PNGGCCRD -fPIC -DPIC -o pngwrite.so -c pngwrite.c cc -O -pipe -I. -DPNG_USE_PNGGCCRD -fPIC -DPIC -o pngrtran.so -c pngrtran.c cc -O -pipe -I. -DPNG_USE_PNGGCCRD -fPIC -DPIC -o pngwtran.so -c pngwtran.c cc -O -pipe -I. -DPNG_USE_PNGGCCRD -fPIC -DPIC -o pngmem.so -c pngmem.c cc -O -pipe -I. -DPNG_USE_PNGGCCRD -fPIC -DPIC -o pngerror.so -c pngerror.c cc -O -pipe -I. -DPNG_USE_PNGGCCRD -fPIC -DPIC -o pngpread.so -c pngpread.c cc -O -pipe -I. -DPNG_USE_PNGGCCRD -fPIC -DPIC -o pnggccrd.so -c pnggccrd.c cc -shared -Wl,-x,-soname,libpng.so.5 -o libpng.so.5 png.so pngset.so pngget.so pngrutil.so pngtrans.so pngwutil.so pngread.so pngrio.so pngwio.so pngwrite.so pngrtran.so pngwtran.so pngmem.so pngerror.so pngpread.so pnggccrd.so -lz -lm ===> Installing for png-1.2.1 mkdir: /usr/local/include: File exists *** Error code 1 (ignored) mkdir: /usr/local/lib: File exists *** Error code 1 (ignored) install -c -o root -g wheel -m 444 png.h pngconf.h /usr/local/include install -c -o root -g wheel -m 444 libpng.a libpng.so.5 /usr/local/lib ln -sf libpng.so.5 /usr/local/lib/libpng.so ranlib /usr/local/lib/libpng.a install -c -o root -g wheel -m 444 libpng.3 libpngpf.3 /usr/local/man/man3 install -c -o root -g wheel -m 444 png.5 /usr/local/man/man5 ===> Generating temporary packing list ===> Compressing manual pages for png-1.2.1 ===> Running ldconfig /sbin/ldconfig -m /usr/local/lib ===> Registering installation for png-1.2.1 ===> Returning to build of analog-5.1,1 .... .... ..... ..... cc -O -pipe -I/usr/local/include -I/usr/local/include/gd -o ../analog alias.o analog.o cache.o dates.o globals.o hash.o init.o init2.o input.o macinput.o macstuff.o output.o output2.o process.o settings.o sort.o tree.o utils.o win32.o libgd/gd.o libgd/gd_io.o libgd/gd_io_file.o libgd/gd_png.o libgd/gdfontf.o libgd/gdfonts.o libgd/gdtables.o libpng/png.o libpng/pngerror.o libpng/pngmem.o libpng/pngset.o libpng/pngtrans.o libpng/pngwio.o libpng/pngwrite.o libpng/pngwtran.o libpng/pngwutil.o pcre/pcre.o zlib/adler32.o zlib/crc32.o zlib/deflate.o zlib/trees.o zlib/zutil.o -lm -L/usr/local/lib -lgd -lpng -ljpeg -lz /usr/libexec/elf/ld: warning: libpng.so.4, needed by /usr/local/lib/libgd.so, not found (try using -rpath or -rpath-link) *** ***IMPORTANT: You must read the licence before using analog *** eagle# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Is this appears the problem ? .... /usr/libexec/elf/ld: warning: libpng.so.4, needed by /usr/local/lib/libgd.so, not found (try using -rpath or -rpath-link) where do I try using these arguments ? !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! eagle# eagle# make install ===> Installing for analog-5.1,1 ===> analog-5.1,1 depends on shared library: gd.2 - found ===> analog-5.1,1 depends on shared library: jpeg.9 - found ===> analog-5.1,1 depends on shared library: png.5 - found /bin/mkdir -p /usr/local/share/analog/lang /bin/mkdir -p /usr/local/www/data/images install -c -o root -g wheel -m 444 /usr/ports/www/analog/work/analog-5.1/images/* /usr/local/www/data/images install -c -o root -g wheel -m 444 /usr/ports/www/analog/work/analog-5.1/lang/* /usr/local/share/analog/lang install -c -s -o root -g wheel -m 555 /usr/ports/www/analog/work/analog-5.1/analog /usr/local/bin install -c -o root -g wheel -m 444 /usr/ports/www/analog/work/analog-5.1/analog.cfg /usr/local/etc/analog.cfg-dist /bin/mkdir -p /usr/local/share/doc/analog install -c -o root -g wheel -m 444 /usr/ports/www/analog/work/analog-5.1/docs/* /usr/local/share/doc/analog install -c -o root -g wheel -m 444 /usr/ports/www/analog/work/analog-5.1/analog.man /usr/local/man/man1/analog.1 ===> Generating temporary packing list ===> Compressing manual pages for analog-5.1,1 ===> Registering installation for analog-5.1,1 eagle# ................ after the build eagle# find / -name png.h -print /usr/local/include/png.h /usr/ports/graphics/png/work/libpng-1.2.1/png.h /usr/ports/www/analog/work/analog-5.1/src/libpng/png.h eagle# ls -al /usr/local/include/png.h /usr/ports/graphics/png/work/libpng-1.2.1/png.h /usr/ports/www/analog/work/analog-5.1/src/libpng/png.h -r--r--r-- 1 root wheel 133396 Feb 4 19:39 /usr/local/include/png.h -rw-r--r-- 1 root wheel 133396 Dec 12 23:37 /usr/ports/graphics/png/work/libpng-1.2.1/png.h -rw-r--r-- 1 root wheel 21947 Nov 7 11:06 /usr/ports/www/analog/work/analog-5.1/src/libpng/png.h eagle# date Mon Feb 4 19:57:34 GMT 2002 Where does the /usr/ports/www/analog/work/analog-5.1/src/libpng/png.h come from ? eagle# /usr/local/bin/analog /usr/libexec/ld-elf.so.1: Shared object "libpng.so.4" not found eagle# ln libpng.so.5 libpng.so.4 eagle# /usr/local/bin/analog libpng warning: Application was compiled with png.h from libpng-1.0.10 libpng warning: Application is running with png.c from libpng-1.2.1 gd-png: fatal libpng error: Incompatible libpng version in application and library Segmentation fault (core dumped) eagle# To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C5EE9D1.7FEF7F75>