2001-Oct-17
Ted no longer worked due to some png conflict. (I forgot to save the error message.) So I tried to install via pkgsrc (no binary package is available).gcc -I/usr/pkg/pkgsrc/editors/ted/work/.buildlink/include -O2 -I/usr/X11R6/include -I/usr/X11R6/include -I/usr/pkg/include -I/usr/include -I/usr/pkg/include -I/usr/pkg/include -I../include -I. -I../appUtil -I/usr/pkg/pkgsrc/editors/ted/work/.buildlink/include -c bmpng.c bmpng.c: In function `bmReadPngFile': bmpng.c:175: incompatible type for argument 1 of `png_info_init' bmpng.c: In function `bmPngReadPng': bmpng.c:237: incompatible type for argument 1 of `png_info_init' *** Error code 1I have two png's installed: png-1.0.8 and png-1.0.11. They both report different files required by it. When I tried to pkg_delete the old one, it listed all the packages that also required png-1.0.11. So I deleted png-1.0.8 with -f switch.
Now building Ted stopped with:
gcc -I/usr/pkg/pkgsrc/editors/ted/work/.buildlink/include -O2 -I/usr/X11R6/include -I/usr/X11R6/include -I/usr/include -I/usr/pkg/include -I/usr/pkg/include -I../include -I. -I../appUtil -I/usr/pkg/pkgsrc/editors/ted/work/.buildlink/include -c bmpng.c bmpng.c:5: png.h: No such file or directory/usr/pkg/include/png.h is now missing. And shared object "libpng.so.1" is not found by xv. (/usr/pkg/lib/libpng.so.2.0 is still installed.) So I need to reinstall png-1.0.11.
make TARGET=bin-install update ===> Deinstalling for png-1.0.12 Running PKG_DBDIR=/var/db/pkg /usr/sbin/pkg_delete -r png-1.0.11So this removed all packages depending on this. Ouch! This is going to take a while. I should have just forced a new installation of it. (Started around 10:00 a.m. and it finished at 11:09.) This built a new version of LyX and re-installed a lot of software. (The next day, I noticed that gnumeric wasn't installed.)
Then I tried to build Ted again. I was getting a lot of messages like:
config.h:45: warning: `PKGDIR' redefined *Initialization*:1: warning: this is the location of the previous definitionSo I did a make clean first. Well, it had same warning as before. ted-2.10 (Ted) successfully installed. Hopefully, it will more stable than the previous Ted installation -- which sometimes crashed and brought Blackbox down with it.
xv (xv-3.10apl1) still didn't work. It was built with -lpng.1 (png-1.0.6). So I deleted it and installed it (xv-3.10anb1) again. But it still had the "Shared object "libpng.so.1" not found" problem. So I decided to build xv from source. It used /usr/pkg/lib/libpng.so.2 and it worked!