LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux > 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
 
Thread Tools
Old 09-11-2009, 03:17 PM   #1
corbis_demon
Member
 
Registered: Jun 2004
Location: Minneapolis
Distribution: Slack 12, Plan9
Posts: 355
Thanked: 0
teTeX fails to compile in BLFS


[Log in to get rid of this advertisement]
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.
linux corbis_demon is offline     Reply With Quote
Old 10-15-2009, 02:04 PM   #2
potuz
LQ Newbie
 
Registered: Jul 2009
Posts: 18
Thanked: 1
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.
linux potuz is offline     Reply With Quote
Thanked by:
Old 10-22-2009, 11:41 AM   #3
corbis_demon
Member
 
Registered: Jun 2004
Location: Minneapolis
Distribution: Slack 12, Plan9
Posts: 355
Thanked: 0

Original Poster
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.
linux corbis_demon is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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


All times are GMT -5. The time now is 04:38 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration