WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: *SOLVED* GCC Compiler Missing Header  (Read 25911 times)

Offline eltone

  • Full Member
  • ***
  • Posts: 137
*SOLVED* GCC Compiler Missing Header
« on: March 09, 2013, 09:07:01 PM »
Hi,

Cannot compile  SRC, due to missing vga.h header on TCP 4.73.  Where is the GCC dependency that is used to load this missing header file/folder 'vga.h'?

THX
eltone
« Last Edit: January 23, 2014, 12:26:14 AM by eltone »

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: GCC Compiler Missing Header
« Reply #1 on: March 09, 2013, 09:17:35 PM »
Apps provides functions says it is in linux-headers.

Offline eltone

  • Full Member
  • ***
  • Posts: 137
Re: GCC Compiler Missing Header
« Reply #2 on: March 09, 2013, 10:36:40 PM »
Apps provides functions says it is in linux-headers.

Hi gerald_clark,
Your suggestion resulted in the same error dialog:

tc@box:$make -f svgalib/makefile
gcc -march=i486 -O2 -fomit-frame-pointer -g -Wall -D LINUX -D POSIX -D CLEMTEST -D OVRL -D NOKEY -D HICOLOR    -c -o linmain.o linmain.c
linmain.c:7:17: fatal error: vga.h: No such file or directory
compilation terminated.
make: *** [linmain.o] Error 1
tc@box:$
*************
THX 4 RPY!
eltone

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: GCC Compiler Missing Header
« Reply #3 on: March 09, 2013, 10:44:32 PM »
Edit your makefile to correspond to Core standards.

Offline eltone

  • Full Member
  • ***
  • Posts: 137
Re: GCC Compiler Missing Header
« Reply #4 on: March 09, 2013, 10:56:12 PM »
Edit your makefile to correspond to Core standards.
Hi gerald_clark,
Core Standards might be different than mine.  Please point me to the one etched-in-stone?

eltone
*orignal makefile:

TH# Makefile for Arachne on Linux

CC=gcc
STRIP=strip

CFLAGS  = -march=i486 -O2 -fomit-frame-pointer -g -Wall
CFLAGS += -D LINUX -D POSIX -D OVRL -D NOKEY -D CLEMTEST -D HICOLOR -D GGI
OFILES  = linmain.o linglue.o iekernel.o ie_fce.o ie_key.o str.o
OFILES += ie_bin.o fexists.o config.o version.o errors.o outs.o html.o
OFILES += htmlutil.o htmtable.o htmlread.o htmlstat.o atoms.o scrolbar.o
OFILES += htmldraw.o svgastat.o svgaovrl.o guidraw.o hdrawgif.o hdrawbmp.o
OFILES += urlovrl.o urlstat.o mime.o misc.o inettime.o v_putimg.o html256c.o
OFILES += entity.o search.o htmlcsim.o putikonw.o gui.o guitick.o protocol.o
OFILES += guieven2.o highligh.o init.o globals.o guievent.o cgiquery.o print.o
OFILES += drawtime.o prtscr.o onmouse.o prespalp.o ipalpal.o tagsort.o main.o
OFILES += bitpix8.o x_char.o x_text.o x_font.o x_txtwh.o x_charmax.o x_cursor.o
OFILES += asockets.o http.o htkernel.o base64.o inetstr.o ps.o anyimage.o
OFILES += wheelmou.o parsecss.o

LIBS    = -lggi -lpthread

%.o: ../%.c
   $(CC) $(CFLAGS) -c -o $*.o $<

arachne:   $(OFILES)
   $(CC) -o arachne-ggi $(OFILES) $(LIBS)
#   $(STRIP) arachne

clean:
   @rm -f *.o arachne-ggiX
***********
« Last Edit: March 09, 2013, 11:12:04 PM by eltone »

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: GCC Compiler Missing Header
« Reply #5 on: March 09, 2013, 11:03:31 PM »
look in /usr/local/src.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: GCC Compiler Missing Header
« Reply #6 on: March 10, 2013, 01:53:50 AM »
Do you have a working svgalib installation?
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline eltone

  • Full Member
  • ***
  • Posts: 137
Re: GCC Compiler Missing Header
« Reply #7 on: March 12, 2013, 10:24:50 AM »
Do you have a working svgalib installation?
Hi tinypoodle,
First off, does the makefile provided meet Core Standards?  The svgalib is the next hurdle and need your skillfullness getting a working installation of it?
The only recipe I've got to work with:
SRC:
http://glennmcc.org/aralinux/
EXTRACT:
tar -z -xf arachne-src-1.97.tgz
CD TO THE ASRC197 DIRECTORY:
make -f svgalib/makefile
***************
eltone

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: GCC Compiler Missing Header
« Reply #8 on: March 12, 2013, 10:50:43 AM »
I somehow suspect you might need svgalib installed first, plus possibly svgalib dev files as well.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: GCC Compiler Missing Header
« Reply #9 on: March 12, 2013, 10:55:41 AM »
Thing is that it is not guaranteed svgalib could compile against recent kernel versions.

There is some project trying to keep it on life support with patches here:
https://github.com/ryanmcgrath/svgalib-1
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: GCC Compiler Missing Header
« Reply #10 on: March 12, 2013, 11:14:29 AM »
And it looks like the missing vga.h you mention in OP is most likely part of svgalib source.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline eltone

  • Full Member
  • ***
  • Posts: 137
Re: GCC Compiler Missing Header
« Reply #11 on: March 15, 2013, 02:29:37 AM »
And it looks like the missing vga.h you mention in OP is most likely part of svgalib source.

Hey tinypoodle!
Are you referring to svgalib-1.4.3.tar.gz, found here:

http://svgalib.org/

If so, what syntax is used for untarring/installing vga.h in the correct directory?

eltone

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11619
Re: GCC Compiler Missing Header
« Reply #12 on: March 15, 2013, 02:55:27 AM »
Hi eltone
You installed  linux-headers-3.0.21-tinycore.tcz ?
Quote
linmain.c:7:17: fatal error: vga.h: No such file or directory
Does that line read:
Code: [Select]
#include <vga.h>If so, try changing it to:
Code: [Select]
#include <video/vga.h>

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: GCC Compiler Missing Header
« Reply #13 on: March 15, 2013, 03:16:18 AM »
And it looks like the missing vga.h you mention in OP is most likely part of svgalib source.

Hey tinypoodle!
Are you referring to svgalib-1.4.3.tar.gz, found here:

http://svgalib.org/

If so, what syntax is used for untarring/installing vga.h in the correct directory?

eltone
Yes, that's the official stable version from 2001...
You would have to build and install svgalib according to documentation, but please first re-read all my prior posts in this thread and the whole page of the link in Reply #9
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline eltone

  • Full Member
  • ***
  • Posts: 137
Re: GCC Compiler Missing Header
« Reply #14 on: March 15, 2013, 11:31:54 PM »
Hi eltone
You installed  linux-headers-3.0.21-tinycore.tcz ?
Quote
linmain.c:7:17: fatal error: vga.h: No such file or directory
Does that line read:
Code: [Select]
#include <vga.h>If so, try changing it to:
Code: [Select]
#include <video/vga.h>
Rich,
VGA.H was tracked back to origin:
Code: [Select]
/lib/modules/3.0.21-tinycore/build/include/video/vga.h
Inorder to decipher what line 7:17 reads, could you provide a index-map to linmain.c?

eltone