LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 09-07-2013, 01:40 PM   #1
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 374

Rep: Reputation: 85
Can't compile luit (xorg-applications)


I assume 7.4-rc2 will be the final release, so I've continued and building blfs now. Xorg-applications is tagged with 7.4, but I just can't get it working with luit.
Code:
make  all-recursive
make[1]: Entering directory `/tmp/build/luit/src/luit-1.1.1'
Making all in man
make[2]: Entering directory `/tmp/build/luit/src/luit-1.1.1/man'
  GEN    luit.1
make[2]: Leaving directory `/tmp/build/luit/src/luit-1.1.1/man'
make[2]: Entering directory `/tmp/build/luit/src/luit-1.1.1'
  CC     charset.o
  CC     iso2022.o
  CC     locale.o
  CC     luit.o
  CC     other.o
  CC     parser.o
  CC     sys.o
sys.c: In function 'allocatePty':
sys.c:339:5: error: implicit declaration of function 'posix_openpt' [-Werror=implicit-function-declaration]
     pty = posix_openpt(O_RDWR);
     ^
sys.c:339:5: warning: nested extern declaration of 'posix_openpt' [-Wnested-externs]
cc1: some warnings being treated as errors
make[2]: *** [sys.o] Error 1
make[2]: Leaving directory `/tmp/build/luit/src/luit-1.1.1'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/build/luit/src/luit-1.1.1'
make: *** [all] Error 2
I have googled and found it's a bug. I tried the patch but it fails:
Code:
patching file Makefile.am
patching file configure.ac
Hunk #1 succeeded at 33 with fuzz 2 (offset 7 lines).
Hunk #2 FAILED at 38.
Hunk #3 succeeded at 55 (offset -3 lines).
1 out of 3 hunks FAILED -- saving rejects to file configure.ac.rej
Here someone suggests to change
Code:
OS_CFLAGS="-D_XOPEN_SOURCE=500"
to 600 in configure.ac. I tried, but the final Makefile still had the value 500, and I got the same error.

This could also be about dependencies. I want to build all packages in a pure chroot, to have better control of dependencies. I tried to build luit on the running host (lfs-7.3) and then it build fine. Then I tried to build it in a pure chroot with the repos I have for 7.3, and it failed with the same error. I added all dependencies that are listed as required for all xorg-applications. I read the README and INSTALL files in the source package, but the only dependency that is listed is libenfontec. I just can't figure out what dependency is missing.
 
Old 09-07-2013, 11:19 PM   #2
re_nelson
Member
 
Registered: Oct 2011
Location: Texas, USA
Distribution: LFS-SVN, Gentoo~amd64, CentOS-7, Slackware64-current, FreeBSD-11.1, Arch
Posts: 229

Rep: Reputation: Disabled
Quote:
Originally Posted by Lennie View Post
I assume 7.4-rc2 will be the final release, so I've continued and building blfs now. Xorg-applications is tagged with 7.4, but I just can't get it working with luit.
Prefix your configure command as follows:

Code:
CFLAGS='-U_XOPEN_SOURCE -D_XOPEN_SOURCE=600' ./configure [...]
 
1 members found this post helpful.
Old 09-08-2013, 01:49 AM   #3
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 374

Original Poster
Rep: Reputation: 85
Thanks, that solved the problem.
 
Old 09-08-2013, 03:27 AM   #4
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 374

Original Poster
Rep: Reputation: 85
This is embarassing... I encountered a similar problem with xmodmap, did a lot of googling, and after a lot of struggle I went back to the book and the chapter xorg applications and read it a bit more carefully. There are instructions for both luit and xmodmap... (I build all packages separately, so I don't use their script - where they had put case statements for theses packages...)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Possible to compile applications for a different system? Daravon Linux - Newbie 5 08-31-2008 02:24 AM
Can't compile Qt applications with Eclipse barbuceanu Linux - Software 2 05-08-2008 12:39 PM
Can't compile applications with Slack 11.0 digthemdeep Slackware 5 01-22-2007 12:26 PM
Trying to compile Xorg 6.8.1 drowbot Linux From Scratch 6 03-23-2005 05:52 PM
compile Xorg cs-cam Linux - Newbie 3 12-03-2004 10:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 03:42 PM.

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