Skip to content

Compile error on Ubuntu: cannot find -lexpat #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
itbra opened this issue Jan 20, 2013 · 1 comment
Closed

Compile error on Ubuntu: cannot find -lexpat #32

itbra opened this issue Jan 20, 2013 · 1 comment

Comments

@itbra
Copy link

itbra commented Jan 20, 2013

Hello,

i configured the compiler to build the file using:

./configure -–with-apxs=/usr/local/apache2/bin/apxs -–with-apr=/usr/local/apr/bin/apr-1-config –with-apu=/usr/local/apr/bin/apu-1-config

Executing make fires the error:

/usr/bin/ld: cannot find -lexpat
collect2: ld returned 1 exit status
make[2]: *** [mod_security2.la] Error 1
make[2]: Leaving directory /home/downloads/modsecurity-apache_2.7.0/apache2' make[1]: *** [all] Error 2 make[1]: Leaving directory/home/downloads/modsecurity-apache_2.7.0/apache2'
make: *** [all-recursive] Error 1

for latest version 2.7.1 as well as for 2.7.0. Searching for this error through Google brought this hint:

lexpat should be read as -l expat

Now my question is:

Is this error caues by a typo in mod_security sources and how to fix it?

@itbra
Copy link
Author

itbra commented Jan 20, 2013

I think, i solved the issue by removing the core expat libraries and installing the latest expat from authors repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant