On Nov 25, 1:41 pm, Andrew <[EMAIL PROTECTED]> wrote:
Andrew, All I know is what I read from http://www.gentoo.org/proj/en/base/amd64/howtos/index.xml?part=1&chap=3 I may have a solution to your problem--in short, I suspect that in your /usr/local/lib directory there is an OLD copy of libiulib.a from a previous compilation attempt. Delete it and other old libs. That old library is only a static library, which on AMD64 type Linux systems cannot be used to link into a new dynamic library that is trying to use it. The reason I believe that that is an old library is that I notice in the configure script shipped with iulib the default installation directory prefix appears to be set to /usr/local, whereas in my instructions for my patches, I recommend installing all packages in a subdirectory of one's home directory. What libtool really wants to do, I think, is to find the libiulib.la file, read it, then use the libiulib.so dynamic linked library instead of the static linked one. So seeing libiulib.a is a big red flag. I also recommend NOT using environment variables to set CPPFLAGS, LDFLAGS, etc. Simply set them on the same line after the configure command ./configure --prefix=$HOME/busr CPPFLAGS="-I..." LDFLAGS="-L..." I do not believe that you have to manually set -fPIC at all. (One of the points of GNU autotools is to set all of these flags automatically.) I would also check the output of configure for iulib and OCRopus--in the output it tells you whether the -fPIC and -DPIC flags are accepted. David > However, I am now facing what i hope is my LAST hurdle; it think it is > AMD64-specific. Namely, the " -fPIC " flag(s) issue. > > After getting the known AMD64 " recompile with -fPIC " error message > while "make"-ing the ocropus source code, I set my CFLAGS, CXXFLAGS, > and CPPFLAGS env variables to contain "-fPIC" (i *think* -- " env | > grep FLAGS " echoes the above three variables with "-fPIC"), but I got > the error again (with make breaking): > /usr/bin/ld: /usr/local/lib/libiulib.a(autoinvert.o): relocation > R_X86_64_32S against `a local symbol' can not be used when making a > shared object; recompile with -fPIC > /usr/local/lib/libiulib.a: could not read symbols: Bad value --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "ocropus" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/ocropus?hl=en -~----------~----~----~----~------~----~------~--~---
