includedir in libcurl.pc(for pkg-config) may be wrong
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
curl (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Environment
=============
===
# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
===
Issue
============
I installed libcurl4-
===
# apt-get update
# apt-get install -y libcurl4-
===
After that, I try to compile some program depending on libcurl with pkg-config, but header file of curl can't be found.
===
# cat curl_test.c
#include "curl.h"
int main(args)
{
return 0;
}
# gcc `pkg-config libcurl --cflags --libs` curl_test.c
curl_test.c:1:18: fatal error: curl.h: No such file or directory
#include "curl.h"
^
compilation terminated.
===
I've checked pc file of libcurl, and includedir(
===
# cat /usr/lib/
...
prefix=/usr
...
includedir=
...
Cflags: -I${includedir}
...
# ls /usr/include/ | grep curl.h
# ls /usr/include/curl/ | grep curl.h
curl.h
===