Thanks for the reply. I have downloaded/installed the test version of emacs 24.1 and it works fine. I haven't noted anything that is broken, yet.
My source tree for the latest emacs must have gotten corrupted from my attempts to build it with the older libjpeg files in place, such that it would not get beyond that error even when I moved the libjpeg files. However, with a fresh bzr checkout, I found that I did not encounter that error. So, I have emacs 220.127.116.11 up and running. Thanks for the help.