WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline eltone

  • Full Member
  • ***
  • Posts: 137
*SOLVED* GCC Compiler Missing Header
« on: March 09, 2013, 06: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 22, 2014, 09:26:14 PM by eltone »

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: GCC Compiler Missing Header
« Reply #1 on: March 09, 2013, 06: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, 07: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, 07: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, 07: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, 08: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, 08:03:31 PM »
look in /usr/local/src.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: GCC Compiler Missing Header
« Reply #6 on: March 09, 2013, 10:53:50 PM »
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, 07: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, 07: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, 07: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, 08: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 14, 2013, 11:29:37 PM »
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: 11178
Re: GCC Compiler Missing Header
« Reply #12 on: March 14, 2013, 11:55:27 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>

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: GCC Compiler Missing Header
« Reply #13 on: March 15, 2013, 12: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, 08: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