Skip to content

Compile error on Ubuntu: cannot find -lexpat #32

Closed
@itbra

Description

@itbra

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions