LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-23-2010, 06:22 PM   #1
atanasoff
LQ Newbie
 
Registered: Dec 2008
Posts: 25

Rep: Reputation: 0
stfl.SlackBuild fails while looking for ncursesw/ncurses.h - Slack 11.0


Hi
My system is mostly slack 11.0 (Absolute Linux 11.0 actually)
I have been trying to build stfl from SlackBuilds.org. I think I'm missing some ncurses wide stuff but don't know how to compile for ncursesw. I have stock ncurses5.5 on my system.

Compiler output is:

Makefile:90: Makefile.deps: No such file or directory
gcc -pthread -I. -MM *.c > Makefile.deps_new
gcc -pthread -O2 -march=i486 -mtune=i686 -I. -Wall -Os -ggdb -D_GNU_SOURCE -fPIC -c -o public.o public.
In file included from public.c:23:
stfl_internals.h:31:30: ncursesw/ncurses.h: No such file or directory
In file included from public.c:23:
stfl_internals.h:48: error: syntax error before "WINDOW"
stfl_internals.h:144: error: syntax error before '*' token
stfl_internals.h:145: error: syntax error before "WINDOW"
stfl_internals.h:150: error: syntax error before "WINDOW"
make: *** [public.o] Error 1

I have /usr/include/ncurses on my system but not /usr/include/ncursesw/ncurses.h

My goal is to compile newsbeuter but this dependency is in the way.

Thanks

Last edited by atanasoff; 09-23-2010 at 06:25 PM.
 
Old 09-23-2010, 07:43 PM   #2
arunpmenon
LQ Newbie
 
Registered: Sep 2010
Posts: 10

Rep: Reputation: 0
Please check ncurses-devel is available or not.
 
Old 09-23-2010, 08:00 PM   #3
atanasoff
LQ Newbie
 
Registered: Dec 2008
Posts: 25

Original Poster
Rep: Reputation: 0
I'm pretty sure ncurses-devel is the common solution, but I don't have it and I don't think slack distributions package it that way. Need pointers on how to make devel available.
 
Old 09-23-2010, 09:28 PM   #4
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
From the 13.1 SlackBuild:
Code:
if [ ! -d $PKG/usr/include/ncursesw -a ! -L $PKG/usr/include/ncursesw ]; then
  ( cd $PKG/usr/include ; ln -sf ncurses ncursesw )
fi
That is NOT present in the 11.0 SlackBuild, though both should be built with widec support according to the configure options passed. You can try creating the symlink manually in 11.0 and see if it works:
Code:
cd /usr/include ; ln -s ncurses ncursesw
It would be wise to make sure that symlink doesn't already exist -- if it does, then obviously my advice is meaningless. I no longer have an 11.0 box to check and I don't feel like building 5.5 to check if that link is created automatically. I have no idea if that will work or not -- 11.0's ncurses is, in theory, built with wide character support (and it does have /usr/include/ncurses/cursesw.h), so it may work. If not, you may need to compile a newer version of ncurses (13.1 uses 5.7, 11.0 uses 5.5).

Good luck.

Last edited by T3slider; 09-23-2010 at 09:30 PM.
 
Old 09-24-2010, 05:32 PM   #5
atanasoff
LQ Newbie
 
Registered: Dec 2008
Posts: 25

Original Poster
Rep: Reputation: 0
cd /usr/include ; ln -s ncurses ncursesw

solved the ncursesw compile problem. I'll mark this
thread as solved.

Now the stf.SlackBuild compile is crashing over a ruby library conflict of some sort. I may start another thread
about that.

Thank you for your help!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Conky SlackBuild fails agi93 Slackware 6 07-02-2010 05:21 PM
lmms slackbuild fails with -current the_penguinator Slackware 3 02-03-2010 09:24 AM
ffmpeg Slackbuild fails in current multilib damgar Slackware 4 01-09-2010 09:12 PM
wmii slackbuild fails... What can I do...? Alexvader Slackware 3 11-02-2009 09:59 AM
LFS 6.3 - ncurses fails compiling - chapter 5.13.1 Doomed Linux From Scratch 2 05-27-2008 06:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration