Opened 11 years ago
Closed 11 years ago
#530 closed defect (invalid)
http_xslt_module always looks for libxml2/libxslt in OS locations ignoring the custom location if provided
Reported by: | Anshul Agrawal | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | nginx-module | Version: | 1.5.x |
Keywords: | xslt libxml libxslt | Cc: | |
uname -a: | Linux precise64 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux | ||
nginx -V: | 1.4.6 |
Description
It seems the first location where the xml libs are searched is hardcoded in auto/lib/libxslt/conf:15 and hence it ignores the compile time flags.
Should the hardcoded path be removed? To note, no other module has such default hardcoded.
Change History (3)
comment:1 by , 11 years ago
comment:2 by , 11 years ago
I tried the patch but then got the same error. Then, I specified explicit include for the libxml2 directory and it worked this time.
Earlier (not working with or without patch):
--with-cc-opt='-fPIC -L/opt/nginx/embedded/lib -I/opt/nginx/embedded/include'
Now (works fine with or without patch):
--with-cc-opt='-fPIC -L/opt/nginx/embedded/lib -I/opt/nginx/embedded/include -I/opt/nginx/embedded/include/libxml2'
Sorry to bother. I think the bug can be marked as invalid and closed.
comment:3 by , 11 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Bingo!
-I's specified in --with-cc-opt come before -I's from auto/lib/libxslt/conf, so no patch is necessary.
Can you try this patch?