Bug 609977

Summary: slang.h vs. slang/ subdirectory
Product: [Fedora] Fedora Reporter: Karel Zak <kzak>
Component: slangAssignee: Miroslav Lichvar <mlichvar>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 12CC: mlichvar
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-07-21 14:43:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.