Greg
animals language
brewing multimedia
cooking music
fiction opinion
gardening photography
general technology
history
Greg's diary
January 2012
Translate this page
Select day:
Mo Tu We Th Fr Sa Su
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31
Select month in 2012:
Jan Feb Mar Apr
May Jun Jul Aug
Sep Oct Nov Dec
Today's diary entry
Diary index
About this diary
Previous month
Next month
Greg's home page
Greg's photos
Network link stats
Greg's other links
Copyright information
    
Groogle
This view of the diary is limited to these topics: technology. There may be lack of continuity in the text, and some days may be completely missing. In case of doubt, please enable the complete display.

Monday, 2 January 2012 Dereel Images for 2 January 2012
Top of page
previous day
next day
last day

Reprocessing old photos
Topic: photography, opinion, technology Link here

After getting the Olympus E-510 in August 2007, It took me quite some time to get good results from the postprocessing. Some of it was a learning experience, some was lack of suitable software. I've learnt a lot since then, and I've found ways to improve the quality of the images, but can DxO Optics "Pro" do better? Trawled through my old diary entries and got as far as three years ago, when I had serious issues with exposure and gradation. It proves that, for some reason, some of the images really were underexposed, but DxO brought much better results. Here the comparison of processing the same image with ufraw 0.13, ufraw 0.14.1, dcraw and DxO. Mouseover shows the next image for comparison.


  This should be ufraw-0.13.jpeg.  Is it missing?
Image title: ufraw 0.13          Dimensions:          3720 x 2800, 1600 kB
Make a single page with this image Hide this image
Make this image a thumbnail Make thumbnails of all images on this page
Make this image small again Display small version of all images on this page
All images taken on Saturday, 20 December 2008, thumbnails          All images taken on Saturday, 20 December 2008, small
Diary entry for Saturday, 20 December 2008 Complete exposure details

 
  This should be ufraw-0.14.1.optimized.jpeg.  Is it missing?
Image title: ufraw 0.14.1.optimized          Dimensions:          3720 x 2800, 1808 kB
Make a single page with this image Hide this image
Make this image a thumbnail Make thumbnails of all images on this page
Make this image small again Display small version of all images on this page
All images taken on Saturday, 20 December 2008, thumbnails          All images taken on Saturday, 20 December 2008, small
Diary entry for Saturday, 20 December 2008 Complete exposure details

 
  This should be dcraw.optimized.jpeg.  Is it missing?
Image title: dcraw.optimized          Dimensions:          3720 x 2800, 1952 kB
Make a single page with this image Hide this image
Make this image a thumbnail Make thumbnails of all images on this page
Make this image small again Display small version of all images on this page
All images taken on Saturday, 20 December 2008, thumbnails          All images taken on Saturday, 20 December 2008, small
Diary entry for Saturday, 20 December 2008 Complete exposure details

 
  This should be verandah-n-dup.jpeg.  Is it missing?
Image title: verandah n dup          Dimensions:          3648 x 2736, 2128 kB
Make a single page with this image Hide this image
Make this image a thumbnail Make thumbnails of all images on this page
Make this image small again Display small version of all images on this page
All images taken on Saturday, 20 December 2008, thumbnails          All images taken on Saturday, 20 December 2008, small
Diary entry for Saturday, 20 December 2008 Complete exposure details

 

Also reprocessed the panoramas. I couldn't completely fix the verandah panorama, because I took it without parallax correction, but the results look a lot better.


  This should be verandah-panorama.jpeg.  Is it missing?
Image title: verandah panorama          Dimensions:          4719 x 1796, 2272 kB
Make a single page with this image Hide this image
Make this image a thumbnail Make thumbnails of all images on this page
Make this image small again Display small version of all images on this page
All images taken on Saturday, 20 December 2008, thumbnails          All images taken on Saturday, 20 December 2008, small
Diary entry for Saturday, 20 December 2008 Complete exposure details

 

  This should be panorama-to-house.jpeg.  Is it missing?
Image title: panorama to house          Dimensions:          4908 x 1601, 2672 kB
Make a single page with this image Hide this image
Make this image a thumbnail Make thumbnails of all images on this page
Make this image small again Display small version of all images on this page
All images taken on Saturday, 20 December 2008, thumbnails          All images taken on Saturday, 20 December 2008, small
Diary entry for Saturday, 20 December 2008 Complete exposure details

 

Another couple of comparisons are the backlit flower baskets:


  This should be flower-basket-1.jpeg.  Is it missing?
Image title: flower basket 1          Dimensions:          3648 x 2736, 992 kB
Make a single page with this image Hide this image
Make this image a thumbnail Make thumbnails of all images on this page
Make this image small again Display small version of all images on this page
All images taken on Saturday, 20 December 2008, thumbnails          All images taken on Saturday, 20 December 2008, small
Diary entry for Saturday, 20 December 2008 Complete exposure details

 

  This should be flower-basket-2.jpeg.  Is it missing?
Image title: flower basket 2          Dimensions:          3648 x 2736, 1072 kB
Make a single page with this image Hide this image
Make this image a thumbnail Make thumbnails of all images on this page
Make this image small again Display small version of all images on this page
All images taken on Saturday, 20 December 2008, thumbnails          All images taken on Saturday, 20 December 2008, small
Diary entry for Saturday, 20 December 2008 Complete exposure details

 

That one's not as clear-cut.

How well could I have done without DxO, just with better tuned ufraw? I don't know, and I don't intend to look yet. First there are other images to compare.


Tuesday, 3 January 2012 Dereel Images for 3 January 2012
Top of page
previous day
next day
last day

More photo processing comparisons
Topic: photography, technology Link here

Spent much of the day with further reprocessing old photos. The results were quite useful. On 4 April 2009 I had another case where a panorama changed from “useless” to “acceptable”:


  This should be north-view-panorama-old.jpeg.  Is it missing?
Image title: north view panorama old          Dimensions:          7760 x 1549, 3200 kB
Make a single page with this image Hide this image
Make this image a thumbnail Make thumbnails of all images on this page
Make this image small again Display small version of all images on this page
All images taken on Saturday, 4 April 2009, thumbnails          All images taken on Saturday, 4 April 2009, small
Diary entry for Saturday, 4 April 2009 Complete exposure details

 

  This should be north-view-panorama.jpeg.  Is it missing?
Image title: north view panorama          Dimensions:          7536 x 1397, 3408 kB
Make a single page with this image Hide this image
Make this image a thumbnail Make thumbnails of all images on this page
Make this image small again Display small version of all images on this page
All images taken on Saturday, 4 April 2009, thumbnails          All images taken on Saturday, 4 April 2009, small
Diary entry for Saturday, 4 April 2009 Complete exposure details

 

If it hadn't been for the reflections of the sun in the lens, it wouldn't have been at all bad, though it's clear that it challenges the limits of the dynamics.

Then I looked at some comparisons I had done on 12 April 2009, where I had had extreme problems with contrast. At the time I hadn't realized that some of the camera functions, such as “vivid” and “soft” images, only applied to the JPEG output. In addition, I didn't find a camera JPEG image for all the comparison photos, so today's comparisons aren't all they could be.

A few days later I received a comparison photo for the first sequence from Michael <no surname> in South Australia, processed with Photomatix. In the following comparison I have the original from the camera, the best I could do to improve it with ufraw, the results from Photomatix and the output from DxO Optics "Pro". As usual, moving the mouse over the image gives the next in sequence.


  This should be Centre-weighted-from-camera.jpeg.  Is it missing?
Image title: Centre weighted from camera          Dimensions:          1024 x 768, 180 kB
Make a single page with this image Hide this image
Make this image a thumbnail Make thumbnails of all images on this page
Make this image small again Display small version of all images on this page
All images taken on Sunday, 12 April 2009, thumbnails          All images taken on Sunday, 12 April 2009, small
Diary entry for Sunday, 12 April 2009 Complete exposure details

 
  This should be Optimized-Centre-weighted-ufraw-frobbed.jpeg.  Is it missing?
Image title: Optimized Centre weighted ufraw frobbed          Dimensions:          3720 x 2800, 2160 kB
Make a single page with this image Hide this image
Make this image a thumbnail Make thumbnails of all images on this page
Make this image small again Display small version of all images on this page
All images taken on Sunday, 12 April 2009, thumbnails          All images taken on Sunday, 12 April 2009, small
Diary entry for Sunday, 12 April 2009 Complete exposure details

   
This should be P4127387_tonemapped.jpeg.  Is it missing?
Image title: P4127387_tonemapped
Complete exposure details
Dimensions: 600 x 452, 124 kB
Dimensions of original: 600 x 452, 124 kB
Display this image:
thumbnail    hidden   alone on page
Display all images on this page as:
thumbnails    this size
Show for Sunday, 19 April 2009:
thumbnails    small images    diary entry

  This should be DxO-1.jpeg.  Is it missing?
Image title: DxO 1          Dimensions:          3648 x 2736, 3008 kB
Make a single page with this image Hide this image
Make this image a thumbnail Make thumbnails of all images on this page
Make this image small again Display small version of all images on this page
All images taken on Sunday, 12 April 2009, thumbnails          All images taken on Sunday, 12 April 2009, small
Diary entry for Sunday, 12 April 2009 Complete exposure details

 

I think it's fair to say that DxO produces by far the best image, and probably about as good an image as I could hope for from this particularly difficult scene. The shadows are more dynamic than Photomatix, and the highlights are much more natural. Conceivably Photomatix could do better—Michael said that he didn't try too hard, which is understandable—but then DxO might do better too, and there's only so much work I want to put into these images.

The other image wasn't really a good comparison 3 years ago, but here it is with DxO, which once again does a good job:


  This should be Optimized-vivid-olympus-converted.jpeg.  Is it missing?
Image title: Optimized vivid olympus converted          Dimensions:          3648 x 2736, 2048 kB
Make a single page with this image Hide this image
Make this image a thumbnail Make thumbnails of all images on this page
Make this image small again Display small version of all images on this page
All images taken on Sunday, 12 April 2009, thumbnails          All images taken on Sunday, 12 April 2009, small
Diary entry for Sunday, 12 April 2009 Complete exposure details

 
  This should be DxO-2.jpeg.  Is it missing?
Image title: DxO 2          Dimensions:          3648 x 2736, 2896 kB
Make a single page with this image Hide this image
Make this image a thumbnail Make thumbnails of all images on this page
Make this image small again Display small version of all images on this page
All images taken on Sunday, 12 April 2009, thumbnails          All images taken on Sunday, 12 April 2009, small
Diary entry for Sunday, 12 April 2009 Complete exposure details

 

A couple of months later I tried some different scenes, this time comparing images from the Olympus E-510 and the E-30. No hard contrast, just overall image gradation. Today I was more interested in the postprocessing, and tried the following: JPEG original from the E-30, DxO with no correction, DxO with default correction, DxO with “realistic” HDR-style tone mapping, and DxO with “artistic” HDR-style tone mapping.


  This should be E-30-2-jpeg.jpeg.  Is it missing?
Image title: E 30 2 jpeg          Dimensions:          4100 x 3084, 2912 kB
Make a single page with this image Hide this image
Make this image a thumbnail Make thumbnails of all images on this page
Make this image small again Display small version of all images on this page
All images taken on Sunday, 5 July 2009, thumbnails          All images taken on Sunday, 5 July 2009, small
Diary entry for Sunday, 5 July 2009 Complete exposure details

 
  This should be E-30-2-no-correction-orig.jpeg.  Is it missing?
Image title: E 30 2 no correction orig          Dimensions:          4032 x 3024, 2544 kB
Make a single page with this image Hide this image
Make this image a thumbnail Make thumbnails of all images on this page
Make this image small again Display small version of all images on this page
All images taken on Sunday, 5 July 2009, thumbnails          All images taken on Sunday, 5 July 2009, small
Diary entry for Sunday, 5 July 2009 Complete exposure details

 
  This should be E-30-2-DxO-default-orig.jpeg.  Is it missing?
Image title: E 30 2 DxO default orig          Dimensions:          4032 x 3024, 2976 kB
Make a single page with this image Hide this image
Make this image a thumbnail Make thumbnails of all images on this page
Make this image small again Display small version of all images on this page
All images taken on Sunday, 5 July 2009, thumbnails          All images taken on Sunday, 5 July 2009, small
Diary entry for Sunday, 5 July 2009 Complete exposure details

 
  This should be E-30-2-DxO-HDR-realistic-orig.jpeg.  Is it missing?
Image title: E 30 2 DxO HDR realistic orig          Dimensions:          4032 x 3024, 3024 kB
Make a single page with this image Hide this image
Make this image a thumbnail Make thumbnails of all images on this page
Make this image small again Display small version of all images on this page
All images taken on Sunday, 5 July 2009, thumbnails          All images taken on Sunday, 5 July 2009, small
Diary entry for Sunday, 5 July 2009 Complete exposure details

 
  This should be E-30-2-DxO-HDR-artistic-orig.jpeg.  Is it missing?
Image title: E 30 2 DxO HDR artistic orig          Dimensions:          4032 x 3024, 3152 kB
Make a single page with this image Hide this image
Make this image a thumbnail Make thumbnails of all images on this page
Make this image small again Display small version of all images on this page
All images taken on Sunday, 5 July 2009, thumbnails          All images taken on Sunday, 5 July 2009, small
Diary entry for Sunday, 5 July 2009 Complete exposure details

 

The tone mapping doesn't seem to make much difference, presumably because the dynamic range was limited, but the “artistic” version makes it gaudy enough. Better than default? Here's the comparison:


  This should be E-30-2-DxO-default-orig.jpeg.  Is it missing?
Image title: E 30 2 DxO default orig          Dimensions:          4032 x 3024, 2976 kB
Make a single page with this image Hide this image
Make this image a thumbnail Make thumbnails of all images on this page
Make this image small again Display small version of all images on this page
All images taken on Sunday, 5 July 2009, thumbnails          All images taken on Sunday, 5 July 2009, small
Diary entry for Sunday, 5 July 2009 Complete exposure details

 

A matter of taste, I suppose.


Wednesday, 4 January 2012 Dereel
Top of page
previous day
next day
last day

Migrating to amd64, next try
Topic: technology Link here

So far my experience has shown that DxO Optics "Pro" is quite a useful program. The only problem, apart from the fact that it needs Microsoft to run, is that it uses so much memory that I can't run it on VirtualBox on my 32 bit machine. I started trying to upgrade to amd64 (64 bits, without the memory limitations) nearly 8 months ago, and gave it up two weeks later because of X issues. I then tried again in August, but the pain of upgrading was just too much.

By today I had forgotten some of the pain, and so started trying to upgrade again. I've had the machine running as a test machine all this time, so all I really needed to do is to upgrade the kernel and the ports. The kernel upgrade was trivial. The ports, once again, were not.

First,

===>>> Warning: java/jdk16 is interactive, and will likely
       require attention during the build

So? Why does it stop there and wait (maybe all night) for me to take notice of it for the hundredth time? The same happens for postfix.

Then there was one I hadn't seen before:

===>>> Launching child to update php52-5.2.17_1 to php52-5.2.17_5
===>>> Port directory: /usr/ports/lang/php52

===>>> This port is marked DEPRECATED
===>>> PHP 5.2 series is not supported anymore, migrate now

===>>> If you are sure you can build it, remove the
      DEPRECATED line in the Makefile and try again.

OK, so what's the replacement? php53? No, they've done almost the right thing and removed part of the version number from the preferred version. It's called php5, though it should be called php of course. But I had to go looking for that. People tell me I should be reading (/usr/ports/)UPDATING, but why? Why can't that information be output when the build fails? In any case, I couldn't find any mention of php52 there (in a file nearly 100 pages long). And after that, of course, I could wait for the messages about java16 and postfix.

The next one was a superb shoot-in-foot incident:

===>>> Upgrade of portmaster-3.9.1 to portmaster-3.11 succeeded
===>>> Delete portmaster-3.9.1.tar.gz? y/n [n] y
===>>> Delete portmaster-3.9.1.tar.gz.asc? y/n [n] y
===>>> Returning to update check of installed ports
===>>> Launching child to install devel/qmake4
/usr/local/sbin/portmaster: /usr/local/sbin/portmaster: not found

Why that? It says it has upgraded it, so there was no reason to keep the old version. But there was no new porrtmaster installed. Why not? I couldn't even find the backup I had asked for, so I had to reinstall it first.

And that's as far as I got in a whole day. This process should run in the background without my intervention and give me a summary of anything that fails. And failure should be a rare event, not like every time I've tried to upgrade ports in the last few years. No wonder Kirk McKusick has given up on straight FreeBSD.


Thursday, 5 January 2012 Dereel Images for 5 January 2012
Top of page
previous day
next day
last day

Ports build, continued
Topic: technology Link here

Continued with my ports build today. Came into the office and found an old acquaintance:

cd x2p; LD_LIBRARY_PATH=/src/FreeBSD/ports/lang/perl5.12/work/perl-5.12.4 /usr/bin/make s2p
make: don't know how to make s2p. Stop
*** Error code 2

Stop in /home/ports/lang/perl5.12/work/perl-5.12.4.

In summary: I still don't know how to build perl from the Ports Collection. Maybe if I blew everything away and started again, it would be better. But that's not sure, and it could be even more pain. As I did last time, I just downloaded the package, once I found it:

=== root@defake (/dev/pts/0) /usr/ports 90 -> pkg_add -r perl5
Error: Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8-stable/Latest/perl5.tbz: File unavailable (e.g., file not found, no access)
pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8-stable/Latest/perl5.tbz' by URL
=== root@defake (/dev/pts/0) /usr/ports 91 -> pkg_add -r perl
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8-stable/Latest/perl.tbz... Done.
Removing stale symlinks from /usr/bin...
    Skipping /usr/bin/perl
    Skipping /usr/bin/perl5
Done.
Creating various symlinks in /usr/bin...
    Symlinking /usr/local/bin/perl5.12.4 to /usr/bin/perl
    Symlinking /usr/local/bin/perl5.12.4 to /usr/bin/perl5
Done.
Cleaning up /etc/make.conf... Done.
Spamming /etc/make.conf... Done.
Cleaning up /etc/manpath.config... Done.
Spamming /etc/manpath.config... Done.
=== root@defake (/dev/pts/0) /usr/ports 92 ->

But that's perl-5.12. There's a 5.14 out there. That must be newer. Why have I been given an old version of perl? See if I care.

Then there was docbook. I seem to have 7 different versions installed. It reinstalled 6 of them:

drwxr-xr-x  2 root  wheel  512 Jan  5 11:44 docbook-1.4
drwxr-xr-x  2 root  wheel  512 Aug  8 15:26 docbook-4.1_4
drwxr-xr-x  2 root  wheel  512 Jan  5 11:44 docbook-4.2
drwxr-xr-x  2 root  wheel  512 Jan  5 11:44 docbook-4.3
drwxr-xr-x  2 root  wheel  512 Jan  5 11:44 docbook-4.4_2
drwxr-xr-x  2 root  wheel  512 Jan  5 11:44 docbook-4.5_2
drwxr-xr-x  2 root  wheel  512 Jan  5 11:44 docbook-5.0_1

Why? And why?


Friday, 6 January 2012 Dereel Images for 6 January 2012
Top of page
previous day
next day
last day

More ports pain
Topic: technology Link here

Continued with my attempts to update the ports tree today. More pain. First it died in libass, whatever that may be:

===>  Configuring for libass-0.10.0
cd: can't cd to /home/ports/multimedia/libass/work/libass-0.10.0
env: ./configure: No such file or directory
===>  Script "configure" failed unexpectedly.

What's that? Took a look in the build directory, and sure, ./configure is there. But the directory name is libass-0.9.13, not libass-0.10.0. Why that? Did a make clean, built, and it installed.

It went on, though, although I removed the C option. Later I got a crash after this message:

===>>> pkg-message for compat7x-amd64-7.3.703000.201008_1
*******************************************************************************
*                                                                             *
* Do not forget to add COMPAT_FREEBSD7 into                                   *
* your kernel configuration (enabled by default).                             *
*                                                                             *
* To configure and recompile your kernel see:                                 *
* http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html *
*                                                                             *
*******************************************************************************

And of course COMPAT_FREEBSD7 was set in the kernel config. Ran things again, and the message didn't occur again. Instead, firefox died with:

configure: error: Perl 5.006 or higher is required.
===>  Script "configure" failed unexpectedly.
Please report the problem to gecko@FreeBSD.org [maintainer] and attach the
"/home/ports/www/firefox/work/mozilla-release/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

That's ridiculous. I had just (with much pain) installed version 5.12.4. Did some old version get left behind? I should have checked config.log, but instead I checked with ktrace and found the same thing:

 46354 sh       CALL  execve(0x800c06e08,0x800c06eb0,0x800c2c608)
 46354 sh       NAMI  "/usr/local/bin/perl5.10.1"
 46354 sh       RET   execve -1 errno 2 No such file or directory
 46354 sh       CALL  write(0x2,0x800c16080,0x32)
 46354 sh       GIO   fd 2 wrote 50 bytes
       "./configure: /usr/local/bin/perl5.10.1: not found
       "
 46354 sh       RET   write 50/0x32
 46354 sh       CALL  exit(0x7f)

Well, it's right there. There is no perl5.10.1. But the error message is misleading: it suggests that there is an old version of perl there. And where did it get that from, anyway? It didn't try anything else. This one is apparently (marginally) my fault: I ran portmaster with the C option, which tells it not to run a make clean before building. Of course, the build process should have noticed that the config.status was out of date, but that one is understandable. Moral: don't use the C option.

So finally firefox version 9 was installed, so portmaster went off and started building firefox version 5. Why? And how? We don't have a version 5 in the Ports Collection any more, but there's a /var/db/pkg/firefox-5.0,1 alongside /var/db/pkg/firefox-9.0.1,1. Did a pkg_delete on firefox-5.0,1, and of course tore firefox-9.0.1,1 apart too:

=== root@defake (/dev/pts/0) /usr/ports 118 -> pkg_delete /var/db/pkg/firefox-5.0,1
pkg_delete: '/usr/local/bin/firefox' fails original MD5 checksum - not deleted.
pkg_delete: '/usr/local/include/firefox/Allocator.h' fails original MD5 checksum - not deleted.
...
=== root@defake (/dev/pts/0) /usr/ports 120 -> pkg_delete -f /var/db/pkg/firefox-5.0,1
pkg_delete: no such package 'firefox-5.0,1' installed
=== root@defake (/dev/pts/0) /usr/ports 121 -> wh firefox
No files found

So I had to reinstall it. That was fast, but ineffective:

=== root@defake (/dev/pts/1) /usr/ports/www/firefox 40 -> make install
=== root@defake (/dev/pts/1) /usr/ports/www/firefox 41 -> firefox
su: firefox: command not found

The problem here is that the Ports Collection notes in the build directory whether the package has been installed or not. To get it to reinstall, you first need to remove a secret file:

=== root@defake (/dev/pts/1) /usr/ports/www/firefox 42 -> rm work/.install_done.firefox._usr_local
=== root@defake (/dev/pts/1) /usr/ports/www/firefox 43 -> make install

Edwin Groothuis tells me there's another target, reinstall, that does this for you.

Looking at what was going on, this seems to be a bug in portmaster. It finds a directory /var/db/pkg/firefox-5.0,1 and establishes that it's out of date, and that the directory in the Ports Collection is /usr/ports/www/firefox, which currently builds irefox-9.0.1,1. But it doesn't check whether that is installed or not. Maybe it would have rebuilt it and reinstalled it. If it does a make clean it won't see that it's already installed any earlier.

Still, finally I had firefox upgraded. Easy, isn't it? Enough pain for a day.


Saturday, 7 January 2012 Dereel Images for 7 January 2012
Top of page
previous day
next day
last day

More photo experiments
Topic: photography, technology, opinion Link here

Another windy day for the house photos, but managed to get most of them anyway. I've been taking these panoramas for over three years now, but I continually run into new experiences:

It looks as if it will be a long while before I get all this sorted out to my satisfaction.


Port build pain continued
Topic: technology, opinion Link here

Didn't have much time for my ports build today, but that didn't mean things went smoothly. While building nmap, got this message:

c++ -c -I../libdnet-stripped/include  -I/usr/include -I../nbase -I../nsock/include -O2 -pipe -I/usr/include -fno-strict-aliasing -Wall  -fno-strict-aliasing   -DHAVE_CONFIG_H -DNPING_NAME=\"Nping\" -DNPING_URL=\"http://nmap.org/nping\" -DNPING_PLATFORM=\"amd64-portbld-freebsd8.2\" -D_FORTIFY_SOURCE=2 NpingOps.cc -o NpingOps.o
gmake[3]: *** No rule to make target `nmap.h', needed by `utils.o'.  Stop.

That wasn't a portmaster issue: it happened when I tried to build it in the normal manner. On three different machines. With two different versions of nmap. And on checking, discovered that there is no mention of nmap.h anywhere in that directory. The file itself was in the parent directory.

Discussed it on IRC, and Jürgen Lock suggested that I try it without any preset environment variables (su - root -c /bin/sh). And yes, that worked. So it's an environment variable, but which? Or is it? Went back to build the port again, this time with my standard bash shell and environment, and it worked too. Just more pain.

While watching the build information fly by—I have collected 336212 lines, or about 5,500 pages of it so far—discovered a number of these:

===>   Registering installation for poppler-glib-0.18.0

So far there have been 9 of them. Why? And what is this port?

Things continued as far as:

===>  Installing for linux-f10-fontconfig-2.6.0
===>   Generating temporary packing list
===>  Checking if x11-fonts/linux-f10-fontconfig already installed
cd /home/ports/x11-fonts/linux-f10-fontconfig/work && /usr/bin/find * -type d -exec /bin/mkdir -p "/compat/linux/{}" \;
cd /home/ports/x11-fonts/linux-f10-fontconfig/work && /usr/bin/find * ! -type d | /usr/bin/cpio -pm -R root:wheel /compat/linux
617 blocks
ln: /compat/linux/etc//fonts: File exists
*** Error code 1

Then I gave up for the day. But the Ports Collection wasn't done with me. Tried to back up the photos I had been processing and got:

=== root@defake (/dev/pts/1) /usr/ports 98 -> syncphotos
Sat Jan  8 18:43:43 EST 2012
rsync: not found
rsync: not found

Where did rsync go? Was it in the process of building it? No, it seems that it thought it had built it, but it was gone. Looking through the log files, I find:

===>>> Upgrade of rsync-3.0.8 to rsync-3.0.9 succeeded

Some success! It seems that I shouldn't have even tried to use portmaster. But in general, the amount of trouble I've had here is an order of magnitude worse than any other system I have used, and it's not the first time. If I could find something better that didn't want to tell me how to think, I'd move to it immediately.


Sunday, 8 January 2012 Dereel
Top of page
previous day
next day
last day

eSATA docking station
Topic: technology Link here

It's been two weeks since I received my hard disk docking station. The first experience wasn't good, and I didn't have a SATA disk handy to put in it; the only one was my 2 TB backup disk, and after seeing what happened with an SD card, I didn't want to risk that. Today finally got round to taking a spare SATA disk out of the external housing and putting it in the docking station, in the process discovering confirmation of what I had suspected, that the eSATA interface was only for the SATA drive:

 
This should be Dock-label.gif.  Is it missing?
Image title: Dock label
Dimensions: 694 x 481, 154 kB
Dimensions of original: 694 x 481, 154 kB
Display this image:
thumbnail    hidden   alone on page
Display all images on this page as:
thumbnails    this size
Show for Monday, 9 January 2012:
thumbnails    small images    diary entry

The SATA disk fitted better than the attempts with the PATA disk, and it powered up. And that was all. The system didn't recognize the disk, so I rebooted—I've had trouble before with another low-quality eSATA external housing—but it still wasn't recognized. What's wrong with it? Do I care?


Upgrading ports, less pain
Topic: technology Link here

On with the ports upgrade today, without running into many problems. It wasn't until I rebooted defake that I discovered that I could no longer communicate with it: xterm had gone away. Why? That's the second program that just disappeared, after rsync.

rsync wasn't to be outdone, though. It went away again! I don't understand that, since it happened when I thought I hadn't done anything. But I can't be bothered crawling through the equivalent of 5000 pages of log information to try to piece together what went wrong.


Monday, 9 January 2012 Dereel Images for 9 January 2012
Top of page
previous day
next day
last day

Portmaster: give up
Topic: technology, opinion Link here

Portmaster is finished!

===>   Registering installation for poppler-glib-0.18.0
...
===>>> Re-installation of poppler-glib-0.18.0 succeeded

===>>> Update check of installed ports complete

That must be about the twelfth reinstallation of poppler, but it's finished. Well, it reinstalled poppler many times, but it removed xterm, and it's still gone. Why? What else is gone?

It's been 5 days since I started this update. The intention had been to do it faster than a complete rebuild of the ports. But it doesn't seem to have been. What went wrong? Jürgen Lock suggests that the presence of the FORCE_PKG_REGISTER environment variable or the -C option (don't run make clean) that I had at the beginning might be to blame. But I don't care. It has just taken too long. Went back to reinstall the ports from scratch, once again going through the pain of hundreds of default configurations. And then Jürgen told me about the -P option for portmaster, which downloads the precompiled packages. Maybe I should have tried that. I probably will next time.


Recharging NiZn batteries again
Topic: technology, photography Link here

It's been two months since I've paid much attention to the Nickel-Zinc batteries I bought in October. I haven't been demanding so much from the flash unit, but today it finally told me they were discharged. And indeed they were: the voltages were down to 1.549 V, 1.486V, 1.437 V and 1.381 V, the last one that I had already marked as not being quite up to the same level as the others. It's difficult to be exact, because it was clear that they were still recovering from the flash, and the voltages were gradually rising. Still, a long way below the 1.6 V in the specifications. After charging, the voltages were 1.832 V, 1.832 V, 1.829 V and 1.826 V (this last the marked battery).


Tuesday, 10 January 2012 Dereel Images for 10 January 2012
Top of page
previous day
next day
last day

Building ports from scratch again
Topic: technology Link here

As planned, continued building the ports on defake with my old, incomplete build method. In principle it should work, but for some reason today the build died at the start because I had two rules to build X. How did that happen? Checked out the last version of the rules file again, and discovered it was already in there. My best bet is that previously the duplicate rules didn't do any harm, while now they caused the build to fail.

What did do harm was checking out the rules file. It seems that in so doing I overwrote some changes I had made since the last checkin, and I was missing rules for a number of ports. In the course of the day, had to update the rules file a number of times, but nothing else went wrong.

In the process, found the reason for my FORCE_PKG_REGISTER environment variable:

===>   opera-linuxplugins-11.60 is already installed
      You may wish to ``make deinstall'' and install this port again
      by ``make reinstall'' to upgrade it properly.
      If you really wish to overwrite the old port of www/opera-linuxplugins
      without deleting it first, set the variable "FORCE_PKG_REGISTER"

No mention there of any side effects.


Wednesday, 11 January 2012 Dereel Images for 11 January 2012
Top of page
previous day
next day
last day

Ports build log
Topic: technology Link here

The ports build continued relatively smoothly today. multimedia/dvdauthor failed:

===>  Applying FreeBSD patches for dvdauthor-0.7.0_1
Ignoring previously applied (or reversed) patch.
1 out of 1 hunks ignored--saving rejects to src/subgen-image.c.rej
...
=> Patch patch-src__subgen-image.c failed to apply cleanly.

Typical reasons for that are out of date ports, so synchronized my repository, ran cvs up -Pd, and tried again. No improvement. Further investigation revealed:

=== grog@defake (/dev/pts/1) /usr/ports/multimedia/dvdauthor/files 2 -> l
total 1
drwxr-xr-x  2 grog  lemis   512 Oct  2 11:29 CVS
-rw-r--r--  1 grog  lemis  1549 Oct 23  2003 README.FreeBSD
-rw-r--r--  1 root  lemis  2867 Jan 11 14:10 patch-src__subgen-image.c
-rw-r--r--  1 grog  lemis  2522 Jan 11 14:05 patch-src__subgen-image.c.orig
=== grog@defake (/dev/pts/1) /usr/ports/multimedia/dvdauthor/files 3 -> cvs update -Pd
cvs update: Updating .
cvs update: conflict: patch-src__subgen-image.c is modified but no longer in the repository
C patch-src__subgen-image.c

What's that doing there? The whole idea of the d option is to remove things. This is clearly because it was modified. But how? Did I do that?

=== grog@defake (/dev/pts/1) /usr/ports/multimedia/dvdauthor/files 4 -> diff -wu patch-src__subgen-image.c.orig patch-src__subgen-image.c
--- patch-src__subgen-image.c.orig      2012-01-11 14:05:44.000000000 +1100
+++ patch-src__subgen-image.c   2012-01-11 14:10:56.000000000 +1100
@@ -31,6 +31,17 @@
      int bit_depth,color_type,channels,x,y;

      fp=fopen(s-&gt;fname,"rb");
+--- src/subgen-image.c.orig    2007-01-12 19:40:42.000000000 -0600
++++ src/subgen-image.c 2010-07-15 19:56:30.000000000 -0600
+@@ -203,7 +203,7 @@
+     png_struct *ps;
+     png_info *pi;
+     png_byte **rowp;
+-    unsigned long width,height;
++    png_uint_32 width,height;
+     int bit_depth,color_type,channels,x,y;
+
+     fp=fopen(s-&gt;fname,"rb");
 <<<<<<< patch-src__subgen-image.c
 --- src/subgen-image.c.orig    2007-01-12 19:40:42.000000000 -0600
 +++ src/subgen-image.c 2010-07-15 19:56:30.000000000 -0600
=== grog@defake (/dev/pts/1) /usr/ports/multimedia/dvdauthor/files 5 -> cat CVS/Entries
/README.FreeBSD/1.3/Wed Oct 22 21:20:02 2003//
/patch-src__subgen-image.c/1.2/Result of merge+Wed Aug 17 07:35:26 2011//
D

Nope, wasn't me. And it was a long time ago. What went wrong there? Anyway, removing the files solved the problem. And, apart from further entries missing in my portrules file, that was the only problem. Certainly easier than portmaster so far.


Thursday, 12 January 2012 Dereel Images for 12 January 2012
Top of page
previous day
next day
last day

Port build: take a break
Topic: technology Link here

In this morning to discover that my portrules file had been overwritten again with the last checked-in version. Do I have some hidden automatic checkout somewhere? I don't know where it would be. Fortunately I had a backup of the last version, so I was able to continue, but somehow this is all just too much pain, so the next time it stopped, I left it until tomorrow.


Network errors again
Topic: technology Link here

My Internet connection has been surprisingly reliable in the last few months. If I had known about it 4 years ago, I would have set it up then, but the threshold of installing new hardware for an uncertain outcome, combined with the terrible service I got from Telstra ensured that I didn't try it until I had confirmation from others that it was a viable alternative.

I've been keeping a statistics page for the link, in line with older ones for satellite and ADSL. But it doesn't really give much useful information any more. Many short dropouts, including restarting the PPP process, go unnoticed, and others are due to issues beyond the ISP's control, such as this horrible Huawei 1762 modem hanging (solution: pop the modem from the USB slot, replace, wait for one failed connect).

Apart from that, things have been good for months. In the previous 3 months I had only 8 dropouts, some doubtless for other reasons. Today, though, things were worse:

3G link statistics

Popped the modem, replaced it, but the system didn't reconnect: the authentication failed. Several times. Finally it worked, but the throughput was terrible, with the old 2 minute ping times. Called up Internode support and spoke to Jesse, who went through the usual stuff, and promised to call back when he had something. He didn't, but the network came good after a couple of hours. Hopefully this is only an isolated incident.


Friday, 13 January 2012 Dereel Images for 13 January 2012
Top of page
previous day
next day
last day

Ports progress
Topic: technology Link here

On with the ports very much in the background. With the help of locate found an old copy of the portsrules file that greatly helped fill in the puzzles. Nevertheless found one port that didn't build:

...
Fl_Print_Dialog2.cxx:1839: error: expected primary-expression before ')' token
Fl_Print_Dialog2.cxx:1839: error: expected `;' before 'w'
*** Error code 1

Stop in /home/ports/graphics/flphoto/work/flphoto-1.3.1.

This time it wasn't a CVS consistency issue. Clearly there's something wrong with the port. But it builds in the build cluster, so what's the issue? I can't be bothered. I wasn't even sure what flphoto is (it's a basic image display program, which I seem never even to have tried out), so I installed it from the package. But why is this all so painful?


FreeBSD dmr edition
Topic: technology, opinion Link here

FreeBSD 9.0 was released today (or yesterday in the USA; it wasn't intended to be on Friday the 13th). And for the first time I recall, it had a dedication:

The FreeBSD Project dedicates the FreeBSD 9.0-RELEASE to the memory of Dennis M. Ritchie, one of the founding fathers of the UNIX™ operating system. It is on the foundation laid by the work of visionaries like Dennis that software like the FreeBSD operating system came to be. The fact that his work of so many years ago continues to influence new design decisions to this very day speaks for the brilliant engineer that he was.

May he rest in peace.

Amen.


System crash
Topic: technology Link here

While watching TV, teevee hung. NFS problems. It turned out that dereel had crashed, apparently because of still more USB disk problems. If only I could get this eSATA stuff working well!


Saturday, 14 January 2012 Dereel Images for 14 January 2012
Top of page
previous day
next day
last day

Unexpected results
Topic: technology Link here

I often see messages like this one:

A database error has occurred. Did you forget to run maintenance/update.php after upgrading? See: http://www.mediawiki.org/wiki/Manual:Upgrading#Run_the_update_script
Query: UPDATE `user` SET user_touched = '20120114015610' WHERE user_id = '288471'
Function: User::invalidateCache
Error: 1205 Lock wait timeout exceeded; try restarting transaction (10.0.6.42)

But this one was different. It was from Wikipedia. It wasn't repeatable.


Problems syncing
Topic: technology, photography Link here

That wasn't the only problem I ran into. While syncing my photos to the external web site, I got this:

20080719/tiny/swamp-3.jpeg
       47916 100%   11.42MB/s    0:00:00 (xfer#203, to-check=0/262)
rsync: stat "/home/grog/www.lemis.com/grog/Photos/20080719/small/.house-ne-old.jpeg.iMgm8J" failed: No such file or directory (2)
rsync: rename "/home/grog/www.lemis.com/grog/Photos/20080719/small/.house-ne-old.jpeg.iMgm8J" -> "20080719/small/house-ne-old.jpeg": No such file or directory (2)
WARNING: 20080719/small/house-nw.jpeg failed verification -- update discarded (will try again).
20080719/small/house-nw.jpeg
      134732 100%   16.06MB/s    0:00:00 (xfer#204, to-check=99/262)
WARNING: 20080719/tiny/browse-screen.png failed verification -- update discarded (will try again).
20080719/tiny/browse-screen.png
       42526 100%   39.89MB/s    0:00:00 (xfer#205, to-check=64/262)
WARNING: 20080719/tiny/folder-selection.png failed verification -- update discarded (will try again).
20080719/tiny/folder-selection.png
       26504 100%   24.61MB/s    0:00:00 (xfer#206, to-check=59/262)
WARNING: 20080719/tiny/olympus-help.png failed verification -- update discarded (will try again).
20080719/tiny/olympus-help.png
       47753 100%   44.20MB/s    0:00:00 (xfer#207, to-check=31/262)
WARNING: 20080719/tiny/shortcut.png failed verification -- update discarded (will try again).
20080719/tiny/shortcut.png
       39891 100%   37.38MB/s    0:00:00 (xfer#208, to-check=7/262)

sent 28676608 bytes  received 86878 bytes  68079.26 bytes/sec
total size is 108183083  speedup is 3.76
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1042) [sender=3.0.7]
*** Error code 23

A repeat was successful. What's that? A network problem?


Sunday, 15 January 2012 Dereel Images for 15 January 2012
Top of page
previous day
next day
last day

Ports build: done!
Topic: technology Link here

I have finally finished my ports upgrade. Building from scratch worked well, with ultimately only one port (flphoto) requiring to be fetched as a binary package. And now FreeBSD 9.0 is out. Time to start over again?

In the meantime tried upgrading the build machine. Found a couple of 1 GB SIMMs lying around, so put them in the machine, and also an nVidia display card that I had been given recently. I had been told it was PCI, and I didn't really check, but on examination it's a 16 lane PCIe board. And it only has a DVI connector. And I don't have anything I can connect that to. I'll have to mess around yet more to get it up and running. About the only thing I could confirm is that Hugin crashes when I try to start it with a display set to dereel. But I think that's a known bug: it doesn't understand X properly, and only works on local servers.


Monday, 16 January 2012 Dereel Images for 16 January 2012
Top of page
previous day
next day
last day

linux.conf.au in Ballarat
Topic: technology, opinion Link here

Today was the first day of linux.conf.au, in Ballarat. I was involved in the organization at the beginning, but I dropped out, and I didn't go to the conference. Why not? Somehow it's difficult to accept, but my conference days are over. And times are changing. I think what really broke it for me was the discussion of the Code of Conduct. As I said last year, the necessity for something like that turns me off. And now I hear it's printed in the conference handbook. The programme isn't. What does that say?

It seems I'm not the only one. A number of the regular visitors from the past are not going, including Rasmus Lerdorf, who once spent half his life going from one conference to another. We're all getting older—my first LCA was 11 years ago—but I don't think that's all. Times are changing, and this is maybe one indication.


Tuesday, 17 January 2012 Dereel Images for 17 January 2012
Top of page
previous day
next day
last day

Building FreeBSD 9.0
Topic: technology Link here

So now I have finally built all my ports. But FreeBSD 9.0 has just come out, so it seems a good idea to install it before cutting over to 64 bits.

How do you check out a new branch from the FreeBSD Subversion repository? I had it written down somewhere, a “brain dump” by Peter Wemm. But where did I put it? I couldn't find it in my HOWTOs (though it's there now). Went looking on the FreeBSD web site. Couldn't find anything there either. Should it be in the handbook? That's for end users, who don't have access to the Subversion repository. Should it be in the Developers' handbook? Arguably, but that's mainly technical stuff, and it's not there either.

Finally Edwin Groothuis told me: http://wiki.freebsd.org/SubversionPrimer. How did he find that? Google. Somehow that's an indication that something's wrong with the navigation on site.

So I checked out and started building. Then I ran into an old friend:

===> gnu/usr.bin/groff/font/devX100 (obj)
"Makefile", line 6: Could not find /Makefile.sub
make: fatal errors encountered -- cannot continue
*** Error code 1

Despite a lot of searching, I hadn't been able to find the cause of that problem. I had had a number of repeats, but then it went away, and I haven't had it at all in the year or so that I've been trying to upgrade to 64 bits. Why has it shown up again now? We had already discussed the problem of environment pollution in regard to ports, so once again I tried to build the system with a clean environment. Success.

So it's pretty clear that it's an environment variable (or just barely possibly a function). But which? Started removing things at random (well, alphabetically), but it's a slow business, and I didn't get finished. But somewhere in the middle of the alphabet I got past the problem, so it must be one of the 20 or so environment variables that I removed on that occasion.

Also tried playing with the new nVidia display card, but didn't get very far: the system doesn't recognize it. Is that the kernel, the card or the BIOS? The BIOS settings are a little funny—by default only one display is enabled, and there's one on the motherboard—so possibly it's that, but since it was a freebie, it's possible that the card itself is defective. More experiments necessary.


More network problems
Topic: technology Link here

My network problems still don't seem to be over. Today had a number of dropouts, and even when I was reconnected, I only got a GPRS connection, which is so slow that you couldn't tell the difference from being disconnected. But the RSSI was showing 16, which is 16 to 18 dB better than I normally have. Popped the modem and it reconnected with normal signal strength and HSPA. It looks like I had been connected to a tower with only GPRS (there's one to the east somewhere). Is this the sticky result of a failure on the correct tower, or is it the modem itself? How can I tell?


Wednesday, 18 January 2012 Dereel Images for 18 January 2012
Top of page
previous day
next day
last day

The build failures: caught
Topic: technology, opinion Link here

Continued this morning looking for the cause of yesterday's build failure. It's obvious once it's been found:

MAKEFLAGS='-I ..'

That's something I put in my environment about 3 years ago to enable me to have only one Makefile in the parent directory of my daily photos. And it seems that this one Makefile didn't reset it, so it went looking for files in the wrong directory. Remove it and all is well.

Well, almost all:

=== grog@dereel (/dev/pts/4) ~/Photos/20080906 8 -> unset MAKEFLAGS
=== grog@dereel (/dev/pts/4) ~/Photos/20080906 9 -> make web
make: don't know how to make web. Stop

So this kludge was a little too general. How do I Do It Right? There are many ways to fix things for the photos:

None of them seem particularly elegant, though I'm tending to the last. I'm left with a feeling that I've forgotten some make magic that would do it better, but I can't find anything obvious in the documentation.


Shut down Wikipedia... to the idiots
Topic: technology, opinion Link here

The protests against SOPA are coming to a head: a number of prominent sites, in particular English language Wikipedia, went offline at 16:00 local time today (05:00 UTC):

 
This should be wkipedia-blackout.gif.  Is it missing?
Image title: wkipedia blackout
Dimensions: 758 x 394, 124 kB
Dimensions of original: 758 x 394, 124 kB
Display this image:
thumbnail    hidden   alone on page
Display all images on this page as:
thumbnails    this size
Show for Wednesday, 18 January 2012:
thumbnails    small images    diary entry

Or did they? The whole thing is implemented in JavaScript. Disable JavaScript and at least normal lookups are as good as they ever were, though I could imagine that editing pages would pose a problem. But why did they do it this way? Surely they knew this. My best bet is that they're leaving a back door for people “in the know” to get in anyway, in the assumption that people stupid enough to think that SOPA and PIPA will work will also not be able to work out how to access the site. Or maybe they're trying to show that you can circumvent just about anything.

And the effect of the protest? I fear it won't work. The people who don't understand the web won't miss it as much as those who do. And it's the kind of protest you can't do too often. I fear that, one way or another, we're in for a rough time until law-makers learn what the Internet is.


Friday, 20 January 2012 Dereel Images for 20 January 2012
Top of page
previous day
next day
last day

Environment pollution
Topic: technology, opinion Link here

I'm still playing around with my amd64 system, though soon I should start to cut over. One of the issues I've had for some time is that newer versions of Emacs don't respect the settings that I have been using for years, and use fonts that produce a window far larger than the screen. Of course I should look for the reason, and it's certainly part of what I need to do before I can consider my installation complete, but for the time being I've just been manually resizing the window.

And today that didn't work! It wouldn't let me make it any smaller, though I could have enlarged it. But why did that happen? People on IRC suspect my environment, and possibly that's the case; again, when I ran it with a shell with no environment, it worked. But it still uses this GTK thing, which I don't really like, and Peter Jeremy provided me with his defaults, which don't use GTK and seem to work better, and which didn't display the problem, so I'll go with that.

The whole thing makes you wonder about the value of environment variables. I still haven't worked out a good way to handle the MAKEFLAGS issue. I should probably investigate the Makefiles and fix it; in the meantime, the idea of an alias has proved to be workable, but very inconvenient. I keep typing make instead of mp. If I can't fix the build, it would be easier to remove the MAKEFLAGS before building.


Saturday, 21 January 2012 Dereel Images for 21 January 2012
Top of page
previous day
next day
last day

Still more disk problems
Topic: technology Link here

After my photo processing today, started a backup. Or I tried:

=== root@defake (/dev/pts/0) /home/grog 2 -> mount /dev/ada0p1 /photobackups
mount: /dev/ada0p1 : Operation not permitted

That's mount's inimitable way of saying “look at /var/log/messages to see what's up”. As I feared, it said:

Jan 21 18:40:19 defake kernel: WARNING: R/W mount of /photobackup denied.  Filesystem is not clean - run fsck

This is an eSATA drive. Did I forget to umount it before disconnecting it? Started fsck, which failed with unreadable sectors starting at 128. It also vomited all over the kernel message buffer and the log file:

Jan 21 18:41:17 defake kernel: siisch1: Timeout on slot 30
Jan 21 18:41:17 defake kernel: siisch1: siis_timeout is 03240000 ss 60000000 rs 60000000 es 00000000 sts 801e0000 serr 002c0000
Jan 21 18:41:17 defake kernel: siisch1:  ... waiting for slots 20000000
Jan 21 18:41:25 defake kernel: siisch1: Timeout on slot 29
Jan 21 18:41:25 defake kernel: siisch1: siis_timeout is 03240000 ss 60000000 rs 60000000 es 00000000 sts 801e0000 serr 002c0000
Jan 21 18:41:25 defake kernel: siisch1: port is not ready (timeout 1000ms) status = 001f0000
Jan 21 18:41:25 defake kernel: siisch1: port ready timeout
Jan 21 18:41:25 defake kernel: siisch1: trying full port reset ...
Jan 21 18:42:32 defake kernel: siisch1: Timeout on slot 30
Jan 21 18:42:32 defake kernel: siisch1: siis_timeout is 01040000 ss 40000000 rs 40000000 es 00000000 sts 801e0000 serr 00080000
Jan 21 18:43:02 defake kernel: siisch1: Timeout on slot 30
Jan 21 18:43:02 defake kernel: siisch1: siis_timeout is 01000000 ss 40000000 rs 40000000 es 00000000 sts 801f0000 serr 00080000
Jan 21 18:43:02 defake kernel: (ada0:siisch1:0:0:0): lost device
Jan 21 18:43:32 defake kernel: siisch1: Timeout on slot 30
Jan 21 18:43:32 defake kernel: siisch1: siis_timeout is 00000000 ss 60000000 rs 60000000 es 00000000 sts 801f0000 serr 00000000
Jan 21 18:43:32 defake kernel: siisch1:  ... waiting for slots 20000000
Jan 21 18:43:32 defake kernel: siisch1: Timeout on slot 29
Jan 21 18:43:32 defake kernel: siisch1: siis_timeout is 00000000 ss 60000000 rs 60000000 es 00000000 sts 801f0000 serr 00000000
Jan 21 18:43:32 defake kernel: (ada0:siisch1:0:0:0): removing device entry
Jan 21 18:43:47 defake kernel: REDZONE: Buffer overflow detected. 8 bytes corrupted after 0xfffffe0015f24310 (16 bytes allocated).
Jan 21 18:43:47 defake kernel: Allocation backtrace:
Jan 21 18:43:47 defake kernel: #0 0xffffffff809ab0dd at redzone_setup+0x4d
Jan 21 18:43:47 defake kernel: #1 0xffffffff802c138e at camq_init+0x4e
Jan 21 18:43:47 defake kernel: #2 0xffffffff802c13ec at cam_ccbq_init+0x2c
Jan 21 18:43:47 defake kernel: #3 0xffffffff802c404d at xpt_alloc_device+0xdd
Jan 21 18:43:47 defake kernel: #4 0xffffffff802cc2fd at ata_alloc_device+0x1d
Jan 21 18:43:47 defake kernel: #5 0xffffffff802c3b88 at xpt_compile_path+0xa8
Jan 21 18:43:47 defake kernel: #6 0xffffffff802c3da6 at xpt_create_path+0x66
Jan 21 18:43:47 defake kernel: #7 0xffffffff802cbeaa at ata_scan_bus+0x14a
Jan 21 18:43:47 defake kernel: #8 0xffffffff802c7443 at camisr_runqueue+0x63
Jan 21 18:43:47 defake kernel: #9 0xffffffff802c7861 at camisr+0x101
Jan 21 18:43:47 defake kernel: #10 0xffffffff807043f4 at intr_event_execute_handlers+0x104
Jan 21 18:43:47 defake kernel: #11 0xffffffff80705bb4 at ithread_loop+0xa4
Jan 21 18:43:47 defake kernel: #12 0xffffffff80700a8f at fork_exit+0x11f
Jan 21 18:43:47 defake kernel: #13 0xffffffff80a3d78e at fork_trampoline+0xe
Jan 21 18:43:47 defake kernel: Free backtrace:
Jan 21 18:43:47 defake kernel: #0 0xffffffff809ab056 at redzone_check+0x176
Jan 21 18:43:47 defake kernel: #1 0xffffffff8071b2e8 at free+0x38
Jan 21 18:43:47 defake kernel: #2 0xffffffff802c39ae at xpt_release_device+0xbe
Jan 21 18:43:47 defake kernel: #3 0xffffffff802c3a1a at xpt_release_path+0x1a
Jan 21 18:43:47 defake kernel: #4 0xffffffff802ca295 at xptscandone+0x15
Jan 21 18:43:47 defake kernel: #5 0xffffffff802c7443 at camisr_runqueue+0x63
Jan 21 18:43:47 defake kernel: #6 0xffffffff802c7861 at camisr+0x101
Jan 21 18:43:47 defake kernel: #7 0xffffffff807043f4 at intr_event_execute_handlers+0x104
Jan 21 18:43:47 defake kernel: #8 0xffffffff80705bb4 at ithread_loop+0xa4
Jan 21 18:43:47 defake kernel: #9 0xffffffff80700a8f at fork_exit+0x11f
Jan 21 18:43:47 defake kernel: #10 0xffffffff80a3d78e at fork_trampoline+0xe

As the messages said, there was no repeating: the device entry had been removed. So I powered down the disk, rebooted defake and tried again. Same thing. Were the sectors really not readable?

=== root@defake (/dev/pts/0) /home/grog 5 -> dd if=/dev/ada0p1 of=/dev/null bs=128k count=100 conv=noerror
dd: /dev/ada0p1: Input/output error
1+0 records in
1+0 records out
131072 bytes transferred in 0.011207 secs (11695439 bytes/sec)
dd: /dev/ada0p1: Input/output error
dd: /dev/ada0p1: Input/output error
5+0 records in
5+0 records out
655360 bytes transferred in 0.025838 secs (25364058 bytes/sec)
dd: /dev/ada0p1: Input/output error
^C^C5+0 records in
5+0 records out
655360 bytes transferred in 147.566084 secs (4441 bytes/sec)
=== root@defake (/dev/pts/0) /home/grog 6 ->

So there appear to be two hardware faults on the disk, and after the second it wasn't able to continue. So much for the increased reliability of eSATA. And this disk had 1.2 TB of data on it. It's all recoverable, but the time! Copying the data over 100 Mb/s Ethernet will take about 36 hours. That's for tomorrow, though: it was time for dinner.


Sunday, 22 January 2012 Dereel Images for 22 January 2012
Top of page
previous day
next day
last day

Disk recovery
Topic: technology Link here

Connected yesterday's defective disk to lagoon, Yvonne's computer today, with a USB connection. Yes, it required fsck. No, no other problems. So there's clearly something wrong with the eSATA connection to defake. Is it the newest version of FreeBSD? Or just the fact that fsck was required? The backtraces indicate memory allocation failures, though it looks more like this was a consequence of hardware problems, not the cause of the reported problems. Probably I should look at the driver in more detail. But not today.


Wednesday, 25 January 2012 Dereel Images for 25 January 2012
Top of page
previous day
next day
last day

Strange mount problems
Topic: technology, opinion Link here

Yvonne had trouble booting her machine this morning. On asking, she told me “Could not mount /Photos”. That's the photo disk on my machine, mounted on hers via NFS. And yes, I couldn't get it to mount. In log file I found:

Jan 24 19:18:33 dereel kernel: WARNING: /Photos was not properly dismounted
Jan 24 21:00:07 dereel mountd[1325]: can't delete exports for /Photos: Device busy
Jan 24 21:00:07 dereel mountd[1325]: could not remount /Photos: Device busy
Jan 24 21:00:07 dereel mountd[1325]: bad exports list line /Photos -alldirs -maproot
Jan 25 07:23:56 dereel mountd[1325]: mount request denied from 192.109.197.134 for /Photos
Jan 25 07:24:56 dereel mountd[1325]: mount request denied from 192.109.197.134 for /Photos

The last two messages repeated every two minutes. But what's that? I haven't seen that before, and the problem persisted even when I restarted mountd. I had to first umount /Photos, and then remount it, and then things worked. It's clearly something to do with the power failure—the first message is from the reboot following restoration of power—but that's about all I'm sure about. What happened at 21:00? That's when my nightly cleanup scripts run, but that doesn't help, since they don't back up that file system. Maybe it was background fsck. Wouldn't it be nice for it to say when it is finished?


CFA: We encourage unsafe networking
Topic: general, technology, opinion Link here

Finally got round to sending in the comments about the CFA web site that I described yesterday, and tried to send it off. What did I get?

 
This should be CFA-2.gif.  Is it missing?
Image title: CFA 2
Dimensions: 668 x 348, 32 kB
Dimensions of original: 668 x 348, 32 kB
Display this image:
thumbnail    hidden   alone on page
Display all images on this page as:
thumbnails    this size
Show for Wednesday, 25 January 2012:
thumbnails    small images    diary entry

I need Facebook to submit comments to a government agency? Are they out of their minds?

Well, not completely. I was given a choice: ““Get Satisfaction”, Google Mail or Twitter. What happened to real email? And why does a government agency do this sort of thing? Considered sending it from my gmail account (yes, I do have one, because some broken sites insist; it just forwards to my real email). And, not surprisingly, I got a message:

 
This should be CFA-4.gif.  Is it missing?
Image title: CFA 4
Dimensions: 430 x 266, 10 kB
Dimensions of original: 430 x 266, 10 kB
Display this image:
thumbnail    hidden   alone on page
Display all images on this page as:
thumbnails    this size
Show for Wednesday, 25 January 2012:
thumbnails    small images    diary entry

I most certainly do not approve; in fact, I disapprove strongly. What business does a government agency have to ask me to share my personal details with a non-government agency I have never heard of? And why is there no warning?

Further investigation shows that the previous page had given me the option to send the email via other means, including normal email. But that's very much the exception, and I would guess that fewer than 0.1% of all correspondents use it. I'm horrified. I suppose I should put in a formal complaint, but that would only be sensible if it was handled by somebody who understood the issues, and it seems amply clear that there are very few such people around in the government (or even banks, for that matter—they of all institutions should know better).


More photo processing with DxO
Topic: photography, technology, opinion Link here

Over the last few days, I've been reprocessing old photos with DxO Optics "Pro", sometimes with spectacular results. But there's a problem: most of the photos I took in the first year with my Olympus E-510 were taken only with JPEG format, and some of the DxO “presets” are intended for raw images only.

Or are they? I tried the “one-shot HDR” preset, supposedly only available for raw images, and found that it works with JPEG as well. Probably not as well as with raw images, but the photos of the barbecue four years ago are amazingly much better:


  This should be barbecue-8-old.jpeg.  Is it missing?
Image title: barbecue 8 old          Dimensions:          3648 x 2736, 2032 kB
Make a single page with this image Hide this image
Make this image a thumbnail Make thumbnails of all images on this page
Make this image small again Display small version of all images on this page
All images taken on Saturday, 2 February 2008, thumbnails          All images taken on Saturday, 2 February 2008, small
Diary entry for Saturday, 2 February 2008 Complete exposure details

 
  This should be barbecue-8.jpeg.  Is it missing?
Image title: barbecue 8          Dimensions:          3648 x 2736, 2544 kB
Make a single page with this image Hide this image
Make this image a thumbnail Make thumbnails of all images on this page
Make this image small again Display small version of all images on this page
All images taken on Saturday, 2 February 2008, thumbnails          All images taken on Saturday, 2 February 2008, small
Diary entry for Saturday, 2 February 2008 Complete exposure details

 

And that was the series of photos that eventually got me going the way of HDR images. For the time being, I think I can accept that I don't need that any more.


Thursday, 26 January 2012 Dereel Images for 26 January 2012
Top of page
previous day
next day
last day
Australia Day

Web sources of garden information
Topic: gardening, opinion, technology Link here

So we've decided to transplant the citrus trees. How do you do that? My guess is to wait until winter, and then dig out as wide a section of the roots as possible. But what's the web for? https://www.google.com/search?q=transplant%2bgrapefruit%2btree%2b&oq=transplant%2bgrapefruit%2btree should tell me. And indeed, it comes up with http://www.ehow.com/how_5547756_transplant-grapefruit-trees.html:

How to Transplant Grapefruit Trees

...

3 Obtain a young grapefruit tree in a container. Grapefruit trees are readily available from many nurseries.

What does that have to do with transplantation? Nothing. But somehow it seems typical of ehow.com. Still, there are other hits, nearly all from forums. The very first one gives no advice at all, just degenerates into a fight between inhabitants of Arizona and California. The others aren't much better.

The issue here seems to be that answers on forums are treated as being as reliable as other answer. In all probability there's a good document there written by somebody who knows what he's doing, but I couldn't find one.


Top of page Previous month Greg's home page Today's diary entry Next month Greg's photos Copyright information

Valid XHTML 1.0!

$Id: diary-jan2012.php,v 1.44 2012/06/03 03:21:05 grog Exp $