Howdy....

  I typically use 'glimpse' [http://webglimpse.net/] to resolve many
compilation problems while doing the BLFS thang. Normally I don't need it
until well after the X install, but this time around some part of Xorg-7.1
is having a problem, so I went to install glimpse earlier than usual...

Now...this is the error glimpse threw at compile time;

.
.
.<snip>...

make[1]: Entering directory `/usr/local/glimpse-4.18.5/dynfilters'
gcc -O2 -fPIC -fomit-frame-pointer  -fPIC -DSHARED_OBJECT -c lex.yy.c
gcc  -shared -o htuml2txt.so lex.yy.o -lfl
/usr/bin/ld:
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.1/../../../../lib/libfl.a
(libyywrap.o): relocation R_X86_64_32 against `a local symbol' can not be
used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.1/../../../../lib/libfl.a: could
not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [htuml2txt.so] Error 1
make[1]: Leaving directory `/usr/local/glimpse-4.18.5/dynfilters'

.<snip>...
.
.

Now...the culprit here is the 'libyywrap.o' object, compiled and linked
into libfl.* as part of the basic system install part of the CLFS-1.0
book....to wit, the installation of 'flex'.

Unpacking the flex-2.5.33 archive (again) and setting CFLAGS="-fPIC"
before the configure/compilation of flex fixes this problem. Perhaps this
should be done as a standard part of the CLFS book(s)?

I don't know how many other packages in BLFS this would effect, in theory
everything that tries to link against libfl.*  is going to bork...

    Kind Regards

_________________________________________________________________
Advertisement: Are you paid what you're worth? Find out: SEEK Salary Centre 
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fninemsn%2Eseek%2Ecom%2Eau%2Fcareer%2Dresources%2Fsalary%2Dcentre%2F%3Ftracking%3Dsk%3Ahet%3Asc%3Anine%3A0%3Ahot%3Atext&_t=764565661&_r=june07_endtext_salary&_m=EXT

_______________________________________________
Clfs-dev mailing list
[email protected]
http://lists.cross-lfs.org/cgi-bin/mailman/listinfo/clfs-dev

Reply via email to