Wrong include path to sphinx_config.h

Bug #1648877 reported by Silvano Sallese
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sphinxbase (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Hi,

This bug appears in more than one Ubuntu 16.04.1 system where I install the libsphinxbase-dev package through apt.

Some include files have wrong path to the sphinx_config.h header file.

When compiling my code, the header files listed below cause to tell that there is not a sphinx_config.h file (but it's located in /usr/include/x86_64-linux-gnu/sphinxbase/).

In order to compile my code I had to modify the following .h files under the /usr/include/x86_64-linux-gnu/sphinxbase/ system path.

The following corrections solved the issue.

In the file /usr/include/x86_64-linux-gnu/sphinxbase/ad.h at line 44
In the file /usr/include/x86_64-linux-gnu/sphinxbase/prim_type.h at line 88
In the file /usr/include/x86_64-linux-gnu/sphinxbase/sbthread.h at line 46

changed from this
  #include <sphinx_config.h>
to this
  #include <sphinxbase/sphinx_config.h>

I hope this could help to update the package.
I use sphinxbase on other systems and I hope in the future I don't need to touch the system files.

For completeness:
- this is not happening on Ubuntu 14.04.* systems, but I know the versions are heavily different.

- Source: http://archive.ubuntu.com/ubuntu/pool/universe/s/sphinxbase/sphinxbase_0.8+5prealpha.orig.tar.gz
the files are in /sphinxbase-5prealpha/include/sphinxbase/

- Package: libsphinxbase-dev

- Package version: 0.8+5prealpha-2ubuntu1

Thank you.

Best regards,
 Silvano

Silvano Sallese (sva)
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package sphinxbase - 0.8+5prealpha+1-1

---------------
sphinxbase (0.8+5prealpha+1-1) unstable; urgency=medium

  * Team upload

  [ Samuel Thibault ]
  * Use canonical anonscm vcs URL.
  * control: Update maintainer mailing list.
  * rules: Use DEB_BUILD_ARCH_ENDIAN instead of hardcoding a list.
  * control: Bump Standards-Version to 4.1.1.

  [ Paul Gevers ]
  * New upstream release
  * Bump debhelper compat level to 10
  * Fix watch file for version mangling (and hope upstream doesn't release
    again with the same version name)
  * Add symbols file
  * Enable hardening
  * Add fix-sphinx_lm_convert-manpage.patch because one line is missing
    (thanks Lintian)
  * Make sure that sphinx_config.h can be found by other header files
    after installation (LP: #1648877) Thanks Silvano Sallese
  * Clarify license of doc/doxy2swig.py with author
  * Don't ship the static library in python-sphinxbase
  * Build-depend on libpulse-dev instead of libasound2-dev, and remove it from
    Build-Conflicts.
  * Have libsphinxbase-dev depend on libpulse-dev instead of libasound2-dev.

 -- Paul Gevers <email address hidden> Sun, 05 Nov 2017 20:54:53 +0100

Changed in sphinxbase (Ubuntu):
status: New → Fix Released
Revision history for this message
Silvano Sallese (sva) wrote :

Hi,

Although on Xenial the problem is solved, I'm having same problem on Bionic where is installed the libsphinxbase-dev 0.8+5prealpha+1-1.

I need to modify the following sources:

/usr/include/x86_64-linux-gnu/sphinxbase/ad.h
/usr/include/x86_64-linux-gnu/sphinxbase/prim_type.h

changing from "#include <sphinx_config.h>" to #include <sphinxbase/sphinx_config.h>.

Thanks.

Regards,
 Silvano

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.