Closed miguno closed 12 years ago
PS: Alternatively, one could extend the dummy C script so that it actually makes use of liblzo2. Personally, I found the LDFLAGS
approach easier though... cough C cough
If you are ok with fixing this issue by modifying build.xml
, you can merge in my pull request:
https://github.com/kevinweil/hadoop-lzo/pull/34
Many thanks for the quick integration of the patch, Raghu!
I noticed that the build of hadoop-lzo fails on Ubuntu 11.10. The reason is that the default behavior of ld was changed in 11.10.
From Ubuntu 11.10 Release Notes:
This was apparently planned to be changed already back in 11.04 but was eventually reverted in the final release. From 11.04 Toolchain Transition:
Now in hadoop-lzo this manifests itself in the script {{src/native/configure}}. The following check will fail because of the changed ld default behavior:
This line compiles a dummy C script and tells gcc to link it to the liblzo library (the native LZO library).
Because of the changed ld behavior in 11.10, however,
conftest
will not link liblzo2. Hence the subsequent check will fail; since I do not haveotool
installed on my local dev box, the following code is run in my case:This command will return an empty string and assign it to the variable
ac_cv_libname_lzo2
. The eventual result is that the symbolHADOOP_LZO_LIBRARY
will be assigned an empty string, too.Without a proper value for
HADOOP_LZO_LIBRARY
, however, the build of hadoop-lzo will fail.HOW TO FIX
In our build setup we are using
LDFLAGS
to pass this option when invokingant
like so:In general though I'd think it would be best to fix this in
build.xml
:Best, Michael