LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-13-2005, 01:22 PM   #1
fivebyfive
LQ Newbie
 
Registered: Jan 2005
Distribution: Fedora Core 2
Posts: 5

Rep: Reputation: 0
Can't find Xresource.h file


I'm using Red Hat Linux Fedora Core 2 and I'm trying to install tcl/tk. I've successfully installed tcl, but when I try to run the make file on tk, I'm missing some libraries. Where do I get these libraries, or did I forget to install something when I installed Linux? The libraries are:

Xmd.h
Xprotostr.h
Xresource.h

Thanks!
 
Old 01-13-2005, 02:58 PM   #2
hussar
Member
 
Registered: Oct 2003
Location: Heidelberg, Germany
Distribution: Slackware 11.0; Kubuntu 6.06; OpenBSD 4.0; OS X 10.4.10
Posts: 345

Rep: Reputation: 30
Mine are in /usr/X11R6/include/X11. I see that they are also among the source files for Xorg 6.8.1 that I have here. You may want to see if there is an X-devel rpm on the install disks, and install it.
 
Old 01-13-2005, 03:00 PM   #3
fivebyfive
LQ Newbie
 
Registered: Jan 2005
Distribution: Fedora Core 2
Posts: 5

Original Poster
Rep: Reputation: 0
Let me clarify - these .h files are not found anywhere on the system.
 
Old 01-13-2005, 04:04 PM   #4
hussar
Member
 
Registered: Oct 2003
Location: Heidelberg, Germany
Distribution: Slackware 11.0; Kubuntu 6.06; OpenBSD 4.0; OS X 10.4.10
Posts: 345

Rep: Reputation: 30
Right. But they may be in an rpm on your install disks. A number of distributions separate these header files out into a "devel" rpm or package that is not installed by default and needs to be installed later if you want to compile applications that need them. Check your install disks for a "X-devel*.rpm". If you find one, install it. Then try your compile again.
 
Old 01-14-2005, 11:55 AM   #5
fivebyfive
LQ Newbie
 
Registered: Jan 2005
Distribution: Fedora Core 2
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks - I installed the devl rpm file and that made things go a lot smoother. :-)

Now I'm running into another problem. When I run the make file, I'm getting a lot of "implicit declaration of function" warnings:
/home/maryp/tk8.3.5/unix/tkUnixCursor.c:199: warning: implicit declaration of function `XParseColor'
/home/maryp/tk8.3.5/unix/tkUnixCursor.c:219: warning: implicit declaration of function `XLoadFont'
/home/maryp/tk8.3.5/unix/tkUnixCursor.c:225: warning: implicit declaration of function `XCreateGlyphCursor'
/home/maryp/tk8.3.5/unix/tkUnixCursor.c:273: warning: implicit declaration of function `XCreatePixmapCursor'
<this is just a small example>

The make process then ends with:

cc -pipe -c -O -D__NO_STRING_INLINES -D__NO_MATH_INLINES -Wall -Wconversion -Wno-implicit-int -fPIC -I/home/maryp/tk8.3.5/unix -I/home/maryp/tk8.3.5/unix/../generic -I/home/maryp/tk8.3.5/unix/../bitmaps -I/home/maryp/tcl8.3.5/generic -I/usr/X11R6/include -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_PW_GECOS=1 -DTCL_NO_DEPRECATED -DUSE_TCL_STUBS /home/maryp/tk8.3.5/unix/tkUnixDraw.c
/home/maryp/tk8.3.5/unix/tkUnixDraw.c: In function `TkScrollWindow':
/home/maryp/tk8.3.5/unix/tkUnixDraw.c:73: warning: implicit declaration of function `XCopyArea'
/home/maryp/tk8.3.5/unix/tkUnixDraw.c:97: error: void value not ignored as it ought to be
make: *** [tkUnixDraw.o] Error 1

Maybe I'm missing some other stuff that needs to be installed?
 
Old 01-14-2005, 12:44 PM   #6
hussar
Member
 
Registered: Oct 2003
Location: Heidelberg, Germany
Distribution: Slackware 11.0; Kubuntu 6.06; OpenBSD 4.0; OS X 10.4.10
Posts: 345

Rep: Reputation: 30
Generally, for what you are doing, the warning messages can be ignored. It is that last error that is hanging you up, and I don't think I can be much help with that.

I was just looking at the tcl foundary site on sourceforge, and I noticed that tcl/tk is at version 8.4.9 now. It looks to me like you are compiling version 8.3.5. You might want to get the source for 8.4.9 and try compiling that. (you would need the same version tcl.) Another option, if you just want to get tcl/tk on your machine and don't need to compile in any special settings, would be to look for a rpm for tcl/tk on the Fedora Core site and install that. Tcl/tk is so popular though, it would surprise me if it weren't on your install disks and you could install it from there. I am not sure what version came with Fedora Core 2 though.
 
Old 01-18-2005, 03:11 PM   #7
fivebyfive
LQ Newbie
 
Registered: Jan 2005
Distribution: Fedora Core 2
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for all your help - I really appreciate it! :-)

Unfortunately, I need to install tcl/tk 8.3 for compatibility issues with my test gear. I'll start a new thread and see if I can get more responses.

Thanks Again!
 
  


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
.Xresource builder generator script? lqorg Linux - Software 0 05-09-2005 09:46 PM
Where can I find the file over mounten file system Wallace740 Linux - Newbie 2 03-30-2005 03:46 AM
Linker problem: can't find a file, but the file exists atlep Programming 5 08-16-2004 07:15 AM
Find File broken, need search utility, where does WineX install, KDE file roller? Ohmn Mandriva 6 07-05-2004 11:34 PM
where can I find grammar file and lex file of GNU c ? thinks Huiming Linux - Software 1 06-11-2004 08:38 AM


All times are GMT -5. The time now is 10:34 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration