LinuxQuestions.org
Visit Jeremy's Blog.
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-11-2009, 03:17 PM   #1
corbis_demon
Member
 
Registered: Jun 2004
Distribution: CLFS
Posts: 523

Rep: Reputation: 38
teTeX fails to compile in BLFS


Hi, I'm trying to compile teTeX in BLFS, and I get this error:

Code:
In file included from tangleboot.c:94:
tangleboot.h:34: error: conflicting types for 
/usr/include/stdio.h:651: note: previous declaration of  was here
tangleboot.c:2175: error: conflicting types for 
/usr/include/stdio.h:651: note: previous declaration of  was here
make[2]: *** [tangleboot.o] Error 1
make[2]: Leaving directory `/sources/tetex/tetex-src-3.0/texk/web2c'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/sources/tetex/tetex-src-3.0/texk'
make: *** [all] Error 1
I guess ever since teTeX development stopped, this error has been bugging it's compilation on systems with newer glibc. I just wanna know if there's a fix available for this. I know future BLFS builds are gonna switch to TeXLive, but I really don't want to install such a huge package on my system. Please advise.
 
Old 10-15-2009, 02:04 PM   #2
potuz
Member
 
Registered: Jul 2009
Distribution: Gentoo, CLFS.
Posts: 40

Rep: Reputation: 16
I'm confused by the character \^a in your post. What is there in your stdio.h:651? is it getline? If so, I'd recommend to change getline for get_line in tangleboot.

I'd be surprised if that didn't work, but otherwise you could see what happens if you comment out the offending line in stdio.h and recompile?

Finally, I'm not sure why you say that texlive is huge, you can choose to have as few packages as you want.

R.
 
Old 10-22-2009, 11:41 AM   #3
corbis_demon
Member
 
Registered: Jun 2004
Distribution: CLFS
Posts: 523

Original Poster
Rep: Reputation: 38
Hi,
Thanks for the reply. I'm sorry, those weird characters were the result of an incorrectly installed utf-8 locale. Corrected that and this is what the actual error looked like:
Code:
In file included from tangleboot.c:94:
tangleboot.h:34: error: conflicting types for 'getline'
/usr/include/stdio.h:651: note: previous declaration of 'getline' was here
tangleboot.c:2175: error: conflicting types for 'getline'
/usr/include/stdio.h:651: note: previous declaration of 'getline' was here
make[2]: *** [tangleboot.o] Error 1
make[2]: Leaving directory `/sources/tetex-src-3.0/texk/web2c'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/sources/tetex-src-3.0/texk'
make: *** [all] Error 1
As you said, it was getline. And I found a fix here http://www.mail-archive.com/blfs-dev.../msg09506.html
Compiles perfectly now. Thanks a lot.
 
  


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
GCC fails to compile - Chapter 6.14 - C preprocessor "/lib/cpp" fails sanity check jaydoc Linux From Scratch 1 01-28-2009 06:17 PM
BLFS Libxml2-2.6.20 compile error hbinded Linux From Scratch 1 05-31-2006 11:13 AM
GIMP Compile Problem, LFS 6.0 & BLFS 5.1 drowbot Linux From Scratch 2 12-10-2004 02:37 PM
BLFS 5.0 dpkg build fails (ncurses-related error) bhaskie Linux From Scratch 2 02-07-2004 05:59 AM
BLFS: nfs-utils-0.2 will not compile; rpmisc.o:218 ... SparceMatrix Linux From Scratch 4 06-22-2003 05:29 PM

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

All times are GMT -5. The time now is 07:25 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