includedir in libcurl.pc(for pkg-config) may be wrong

Bug #1406479 reported by FGtatsuro
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
curl (Ubuntu)
New
Undecided
Unassigned

Bug Description

Environment
=============
===
# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.1 LTS"
===

Issue
============

I installed libcurl4-openssl-dev package as follows.

===
# apt-get update
# apt-get install -y libcurl4-openssl-dev
===

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(=/usr/include) is different from the path curl.h exists.

===
# cat /usr/lib/x86_64-linux-gnu/pkgconfig/libcurl.pc
...
prefix=/usr
...
includedir=${prefix}/include # = /usr/include
...
Cflags: -I${includedir}
...

# ls /usr/include/ | grep curl.h
# ls /usr/include/curl/ | grep curl.h
curl.h
===

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.