Bug 609977 - slang.h vs. slang/ subdirectory
Summary: slang.h vs. slang/ subdirectory
Alias: None
Product: Fedora
Classification: Fedora
Component: slang   
(Show other bugs)
Version: 12
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Miroslav Lichvar
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2010-07-01 11:19 UTC by Karel Zak
Modified: 2010-07-21 14:43 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2010-07-21 14:43:12 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Karel Zak 2010-07-01 11:19:08 UTC
Description of problem:

The /usr/include/slang/slcurses.h file contains:

 #include <slang.h>

but it does not work because slang-devel uses slang/ subdirectory for all headers. The another problem is that 

  pkg-config --cflags slang

does not return -I/usr/include/slang.

I think the best way how to fix this problem is to use "#include <slang/slang.h>" in /usr/include/slang/slcurses.h.

It would be also nice to add -I/usr/include/slang to slang.pc.

The workaround is to explicitly include slang.h in all applications where is necessary slcurses.h, for example:

 #include <slang/slang.h>
 #include <slang/slcurses.h>

I didn't test it, but I guess that the same problem exists in F-13 rawhide and RHEL6.

Comment 1 Miroslav Lichvar 2010-07-01 11:30:21 UTC
A better solution might be moving the headers back to /usr/include as they are supposed to be and add symlinks to /usr/include/slang.

Comment 2 Miroslav Lichvar 2010-07-21 14:43:12 UTC
Fixed in slang-2.2.2-2.fc14.

Note You need to log in before you can comment on or make changes to this bug.