From: William C. <wc...@re...> - 2008-10-30 01:53:04
|
Robert Richter wrote: > On 15.10.08 15:13:20, Maynard Johnson wrote: >> I recently committed a patch to handle the fact that the current version of BFD now depends on zlib -- i.e., when linking with libbfd.so, "-lz" must be passed in. At the time I committed this patch, the only way I had to test it was by specifying "--with-binutils" and passing in the location of where I had installed binutils 2.18. Since then, I've gotten access to a machine that has the newer toolchain (installed in /usr), and I've found that my initial "zlib" patch was not sufficient to work in this situation. I've developed a fix to resolve this issue. >> >> I can see from your build log that you are also using binutils 2.18 and, therefore, should need the same fix that I did. However, the specific link errors you're getting don't match the errors I got (when link command does not include "-lz"). My build was failing in the opjitconv directory with undefined references to zlib functions like "inflate". >> >> I've attached a patch that fixes that problem I describe above. I intend to formally post this patch and get it committed. This may or may not fix your immediate problem, but I am quite certain you'll need this fix eventually. What you need to do after applying this fix is to run autogen.sh, configure, make clean, and make. > > Maynard, > > the build fails also with this fix. I will work with a previous cvs > version for the first. When I will have the time I will look at this > again. It is my dream for a long time to look in more detail into > m4. :-) > > -Robert > Hi Robert, I came across this problem today. The one thing that was different between the successful build and the broken build was the broken ./configure puts the following line in config.h: #define SYNTHESIZE_SYMBOLS 1 The working config.h has: #define SYNTHESIZE_SYMBOLS 0 Which system are you building the cvs checkout on? I had the problem on Fedora x86_64 (and i686) 9 and 10. Maynard mentioned that things work x86_64 SLES 10 SP2. I think that the optimizer might be removing some of the references. I added a printf statement to use the variable. Maynard, could you try the patch on ppc and see that it works on there? 2008-10-29 William Cohen <wc...@re...> * m4/binutils.m4: Defeat compiler optimization. -Will |