libann-dev is missing ANN.pc for pkgconfig

Bug #1803243 reported by John Ellson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pkg-website
Invalid
Undecided
Unassigned

Bug Description

I'm trying to use libann from graphviz.

- the location of the lib moved between 18.04 and 18.10
- no ANN.pc file is provided for either.
- is there a later release available? The one on Fedora26 and later works for graphviz.

Revision history for this message
John Ellson (ellson) wrote : Re: [Bug 1803243] [NEW] libann-dev is missing ANN.pc for pkgconfig

Following up on this.

The library fails to link properly.

Grabbing ann_1.1.1/sample/ann_sample.cpp from upstream (
http://www.cs.umd.edu/~mount/ANN/ ) and compiling on ubuntu_18.04 against
the .deb installed libann produces:

$ g++ ann_sample.cpp -o ann_sample -IANN -Lann
/tmp/ccBhJBQw.o: In function `main':
ann_sample.cpp:(.text+0x14c): undefined reference to `annAllocPt(int,
double)'
ann_sample.cpp:(.text+0x165): undefined reference to `annAllocPts(int, int)'
ann_sample.cpp:(.text+0x284): undefined reference to
`ANNkd_tree::ANNkd_tree(double**, int, int, int, ANNsplitRule)'
ann_sample.cpp:(.text+0x461): undefined reference to `annClose()'
collect2: error: ld returned 1 exit status

On ubuntu 18.10 I get essentially the same result:

$ g++ ann_sample.cpp -o ann_sample -IANN -Lann
/usr/bin/ld: /tmp/ccE53eQm.o: in function `main':
ann_sample.cpp:(.text+0x13c): undefined reference to `annAllocPt(int,
double)'
/usr/bin/ld: ann_sample.cpp:(.text+0x155): undefined reference to
`annAllocPts(int, int)'
/usr/bin/ld: ann_sample.cpp:(.text+0x274): undefined reference to
`ANNkd_tree::ANNkd_tree(double**, int, int, int, ANNsplitRule)'
/usr/bin/ld: ann_sample.cpp:(.text+0x435): undefined reference to
`annClose()'
collect2: error: ld returned 1 exit status

On Tue, Nov 13, 2018 at 9:15 PM John Ellson <email address hidden>
wrote:

> Public bug reported:
>
> I'm trying to use libann from graphviz.
>
> - the location of the lib moved between 18.04 and 18.10
> - no ANN.pc file is provided for either.
> - is there a later release available? The one on Fedora26 and later works
> for graphviz.
>
> ** Affects: pkg-website
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1803243
>
> Title:
> libann-dev is missing ANN.pc for pkgconfig
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/pkg-website/+bug/1803243/+subscriptions
>

Revision history for this message
Rhonda D'Vine (rhonda) wrote :

Please file this against the package, not the packages website. :)

Changed in pkg-website:
status: New → Invalid
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.