LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-05-2005, 03:03 PM   #1
Codegen
Member
 
Registered: Aug 2004
Posts: 69

Rep: Reputation: 15
Troubles compiling xfree86 4.4.0


I am having problems with compoiling xfree86 4.4.0 on MEPIS 2004.06

When I run the make World > World.log 2>&1 command, this is what I end up with.



In file included from lbx_zlib.c:67:
lbx_zlib.h:55:18: zlib.h: No such file or directory
In file included from lbx_zlib.c:67:
lbx_zlib.h:59: error: parse error before "z_stream"
lbx_zlib.h:59: warning: no semicolon at end of struct or union
lbx_zlib.h:81: error: parse error before '}' token
lbx_zlib.h:81: warning: ISO C does not allow extra `;' outside of a function
lbx_zlib.c:83: error: field `compress_state' has incomplete type
lbx_zlib.c:84: error: field `decompress_state' has incomplete type
lbx_zlib.c: In function `init_compress':
lbx_zlib.c:97: error: dereferencing pointer to incomplete type
lbx_zlib.c:99: error: dereferencing pointer to incomplete type
lbx_zlib.c:100: error: dereferencing pointer to incomplete type
lbx_zlib.c:101: error: dereferencing pointer to incomplete type
lbx_zlib.c:101: error: dereferencing pointer to incomplete type
lbx_zlib.c:102: error: dereferencing pointer to incomplete type
lbx_zlib.c:104: error: dereferencing pointer to incomplete type
lbx_zlib.c:104: error: `alloc_func' undeclared (first use in this function)
lbx_zlib.c:104: error: (Each undeclared identifier is reported only once
lbx_zlib.c:104: error: for each function it appears in.)
p -d < XFree86-4.4.0-src-1.tgz | tar vxf -lbx_zlib.c:104: error: parse error before numeric constant
lbx_zlib.c:105: error: dereferencing pointer to incomplete type
lbx_zlib.c:105: error: `free_func' undeclared (first use in this function)
lbx_zlib.c:105: error: parse error before numeric constant
lbx_zlib.c:106: error: dereferencing pointer to incomplete type
lbx_zlib.c:107: error: dereferencing pointer to incomplete type
lbx_zlib.c:108: error: dereferencing pointer to incomplete type
lbx_zlib.c:108: error: dereferencing pointer to incomplete type
lbx_zlib.c:110: error: dereferencing pointer to incomplete type
lbx_zlib.c:110: warning: implicit declaration of function `deflateInit'
lbx_zlib.c:110: error: dereferencing pointer to incomplete type
lbx_zlib.c:112: error: dereferencing pointer to incomplete type
lbx_zlib.c:112: error: dereferencing pointer to incomplete type
lbx_zlib.c:112: error: `Z_OK' undeclared (first use in this function)


Goes on like this until

make[5]: *** [lbx_zlib.o] Error 1
make[5]: Leaving directory `/home/Kyle/xfree86/xc/lib/lbxutil/lbx_zlib'
make[4]: *** [lbx_zlib] Error 2
make[4]: Leaving directory `/home/Kyle/xfree86/xc/lib/lbxutil'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/Kyle/xfree86/xc/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/Kyle/xfree86/xc'
make[1]: *** [World] Error 2
make[1]: Leaving directory `/home/Kyle/xfree86/xc'
make: *** [World] Error 2



Can somebody please tell me wtf is going on?

Thanks in advance.
 
Old 01-05-2005, 03:09 PM   #2
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
you don't have zlib (or it cannot find it on your system).


Whenever you get alot of undeclared variable errors in a short span look for term "No such file or directory" which in your case here is zlib.h.
 
Old 01-05-2005, 03:49 PM   #3
Codegen
Member
 
Registered: Aug 2004
Posts: 69

Original Poster
Rep: Reputation: 15
I tried running apt-get install zlib before posting. Didn't find anything.

root@0[xc]# apt-get install zlibs
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package zlibs
root@0[xc]# apt-get install zlib
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package zlib
[color=blue[root@0[xc]#[/color]

edit found the home page
 
Old 01-05-2005, 04:23 PM   #4
Codegen
Member
 
Registered: Aug 2004
Posts: 69

Original Poster
Rep: Reputation: 15
New Problem

In file included from auth.c:44:
dm.h:105:31: security/pam_appl.h: No such file or directory
In file included from auth.c:44:
dm.h:427: error: parse error before '*' token
dm.h:427: warning: type defaults to `int' in declaration of `thepamhp'
dm.h:427: error: ISO C forbids data definition with no type or storage class
dm.h:428: error: parse error before '*' token
dm.h:428: warning: type defaults to `int' in declaration of `thepamh'
dm.h:428: error: ISO C forbids data definition with no type or storage class
make[3]: *** [auth.o] Error 1
make[3]: Leaving directory `/home/Kyle/xfree86/xc/programs/xdm'
make[2]: *** [install] Error 2
make[2]: Leaving directory `/home/Kyle/xfree86/xc/programs'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/home/Kyle/xfree86/xc'
make: *** [install] Error 2


edit: oh, and this is with make install.

Last edited by Codegen; 01-05-2005 at 04:26 PM.
 
Old 01-05-2005, 04:26 PM   #5
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
do you have pam installed? If you do look for the pam-devel package
 
Old 01-05-2005, 04:44 PM   #6
Codegen
Member
 
Registered: Aug 2004
Posts: 69

Original Poster
Rep: Reputation: 15
edit nvm

Last edited by Codegen; 01-05-2005 at 04:45 PM.
 
Old 01-05-2005, 05:17 PM   #7
Codegen
Member
 
Registered: Aug 2004
Posts: 69

Original Poster
Rep: Reputation: 15
Here we go again

text-mode.c:3264: error: `KEY_END' undeclared (first use in this function)
text-mode.c:3318: warning: implicit declaration of function `flash'
make[5]: *** [text-mode.o] Error 1
make[5]: Leaving directory `/home/Kyle/xfree86/xc/programs/Xserver/hw/xfree86/xf86cfg'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/home/Kyle/xfree86/xc/programs/Xserver/hw/xfree86'
make[3]: *** [hw/xfree86] Error 2
make[3]: Leaving directory `/home/Kyle/xfree86/xc/programs/Xserver'
make[2]: *** [install] Error 2
make[2]: Leaving directory `/home/Kyle/xfree86/xc/programs'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/home/Kyle/xfree86/xc'
make: *** [install] Error 2


It does a bunch of other things with the program text-mode before this happens.

Does this mean I have to install flash player? If so, wtf...

This is with make install btw
 
Old 01-05-2005, 07:14 PM   #8
Codegen
Member
 
Registered: Aug 2004
Posts: 69

Original Poster
Rep: Reputation: 15
Bu8mp
 
Old 01-05-2005, 10:14 PM   #9
Codegen
Member
 
Registered: Aug 2004
Posts: 69

Original Poster
Rep: Reputation: 15
Final bump before I go to bed.
 
Old 01-06-2005, 05:55 AM   #10
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
Need to see what it says before KEY_END. Since KEY_END is undeclared it probably means it didn't find another header file that you need.

did MEPIS come with X or are you replacing Xfree?
 
Old 01-06-2005, 08:23 AM   #11
Codegen
Member
 
Registered: Aug 2004
Posts: 69

Original Poster
Rep: Reputation: 15
'Course it did.

Anyways, I ended up having to do a ne install because the damn thing decided it wouldn't boot this morning. So, back to square one.
 
Old 01-06-2005, 09:41 AM   #12
Codegen
Member
 
Registered: Aug 2004
Posts: 69

Original Poster
Rep: Reputation: 15
text-mode.c:2876: warning: statement with no effect
text-mode.c: At top level:
text-mode.c:3097: error: parse error before '*' token
text-mode.c: In function `PaintCheckItem':
text-mode.c:3101: error: `win' undeclared (first use in this function)
text-mode.c:3101: error: `selected' undeclared (first use in this function)
text-mode.c:3102: error: `choice' undeclared (first use in this function)
text-mode.c:3107: warning: implicit declaration of function `wprintw'
text-mode.c:3107: error: `checked' undeclared (first use in this function)
text-mode.c:3108: error: `item' undeclared (first use in this function)
text-mode.c: In function `DialogInput':
text-mode.c:3118: error: `WINDOW' undeclared (first use in this function)
text-mode.c:3118: error: `dialog' undeclared (first use in this function)
text-mode.c:3120: error: `COLS' undeclared (first use in this function)
text-mode.c:3121: error: `LINES' undeclared (first use in this function)
text-mode.c:3173: error: `KEY_UP' undeclared (first use in this function)
text-mode.c:3174: error: `KEY_DOWN' undeclared (first use in this function)
text-mode.c:3176: error: `KEY_LEFT' undeclared (first use in this function)
text-mode.c:3190: error: `KEY_RIGHT' undeclared (first use in this function)
text-mode.c:3206: error: `KEY_BACKSPACE' undeclared (first use in this function)
text-mode.c:3236: error: `KEY_HOME' undeclared (first use in this function)
text-mode.c:3264: error: `KEY_END' undeclared (first use in this function)
text-mode.c:3318: warning: implicit declaration of function `flash'
 
Old 01-06-2005, 10:29 AM   #13
Codegen
Member
 
Registered: Aug 2004
Posts: 69

Original Poster
Rep: Reputation: 15
I looked up a bit higher and noticed I was missing ncurses.

I really should back some of what I'm downloading up.
 
  


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
Configuration troubles on XFree86 4.5.0 with i915GM michalceri Linux - Laptop and Netbook 2 09-16-2005 02:36 AM
Troubles compiling 2.6.9 muppski Debian 8 11-11-2004 06:46 AM
compiling troubles Abe_the_Man Linux - Software 2 08-13-2004 02:29 PM
XFree86 4.4 upgrade is giving me video troubles. murray_linux Slackware 9 05-04-2004 08:19 PM
Compiling troubles garretwp Mandriva 18 04-13-2004 03:47 PM


All times are GMT -5. The time now is 11:30 PM.

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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration