Bug 609977 - slang.h vs. slang/ subdirectory
Summary: slang.h vs. slang/ subdirectory
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: slang
Version: 12
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Miroslav Lichvar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
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:
Clone Of:
Environment:
Last Closed: 2010-07-21 14:43:12 UTC
Type: ---
Embargoed:


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.