LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 02-23-2006, 05:18 PM   #1
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Rep: Reputation: 49
Xorg-6.8.1 won't compile in debian


Hi guys,

I was trying to compile Xorg-6.8.1 sources on my Debian stable machine. After giving the command Make World, the compilation starts for sometime and then starts giving the following error messages:
Code:
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: syntax error before "z_stream"
lbx_zlib.h:59: warning: no semicolon at end of struct or union
lbx_zlib.h:81: error: syntax 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.)
lbx_zlib.c:104: error: syntax 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: syntax 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)
lbx_zlib.c: In function `init_decompress':
lbx_zlib.c:118: error: dereferencing pointer to incomplete type
lbx_zlib.c:120: error: dereferencing pointer to incomplete type
lbx_zlib.c:121: error: dereferencing pointer to incomplete type
lbx_zlib.c:122: error: dereferencing pointer to incomplete type
lbx_zlib.c:122: error: dereferencing pointer to incomplete type
lbx_zlib.c:123: error: dereferencing pointer to incomplete type
lbx_zlib.c:125: error: dereferencing pointer to incomplete type
lbx_zlib.c:125: error: `alloc_func' undeclared (first use in this function)
lbx_zlib.c:125: error: syntax error before numeric constant
lbx_zlib.c:126: error: dereferencing pointer to incomplete type
lbx_zlib.c:126: error: `free_func' undeclared (first use in this function)
lbx_zlib.c:126: error: syntax error before numeric constant
lbx_zlib.c:127: error: dereferencing pointer to incomplete type
lbx_zlib.c:128: error: dereferencing pointer to incomplete type
lbx_zlib.c:129: error: dereferencing pointer to incomplete type
lbx_zlib.c:129: error: dereferencing pointer to incomplete type
lbx_zlib.c:131: error: dereferencing pointer to incomplete type
lbx_zlib.c:133: error: dereferencing pointer to incomplete type
lbx_zlib.c:133: warning: implicit declaration of function `inflateInit'
lbx_zlib.c:133: error: dereferencing pointer to incomplete type
lbx_zlib.c:142: error: dereferencing pointer to incomplete type
lbx_zlib.c:142: error: dereferencing pointer to incomplete type
lbx_zlib.c:142: error: `Z_OK' undeclared (first use in this function)
lbx_zlib.c: In function `do_compress':
lbx_zlib.c:151: error: dereferencing pointer to incomplete type
lbx_zlib.c:151: error: dereferencing pointer to incomplete type
lbx_zlib.c:152: error: dereferencing pointer to incomplete type
lbx_zlib.c:152: error: dereferencing pointer to incomplete type
lbx_zlib.c:152: error: dereferencing pointer to incomplete type
lbx_zlib.c:154: error: dereferencing pointer to incomplete type
lbx_zlib.c:154: error: dereferencing pointer to incomplete type
lbx_zlib.c:155: error: dereferencing pointer to incomplete type
lbx_zlib.c:155: error: dereferencing pointer to incomplete type
lbx_zlib.c:155: error: dereferencing pointer to incomplete type
lbx_zlib.c:157: error: dereferencing pointer to incomplete type
lbx_zlib.c:157: warning: implicit declaration of function `deflate'
lbx_zlib.c:157: error: dereferencing pointer to incomplete type
lbx_zlib.c:159: error: dereferencing pointer to incomplete type
lbx_zlib.c:159: error: dereferencing pointer to incomplete type
lbx_zlib.c:160: error: dereferencing pointer to incomplete type
lbx_zlib.c:160: error: dereferencing pointer to incomplete type
lbx_zlib.c: In function `do_decompress':
lbx_zlib.c:168: error: dereferencing pointer to incomplete type
lbx_zlib.c:168: error: dereferencing pointer to incomplete type
lbx_zlib.c:169: error: dereferencing pointer to incomplete type
lbx_zlib.c:169: error: dereferencing pointer to incomplete type
lbx_zlib.c:169: error: dereferencing pointer to incomplete type
lbx_zlib.c:171: error: dereferencing pointer to incomplete type
lbx_zlib.c:171: error: dereferencing pointer to incomplete type
lbx_zlib.c:172: error: dereferencing pointer to incomplete type
lbx_zlib.c:172: error: dereferencing pointer to incomplete type
lbx_zlib.c:172: error: dereferencing pointer to incomplete type
lbx_zlib.c:174: error: dereferencing pointer to incomplete type
lbx_zlib.c:174: warning: implicit declaration of function `inflate'
lbx_zlib.c:174: error: dereferencing pointer to incomplete type
lbx_zlib.c:174: error: `Z_PARTIAL_FLUSH' undeclared (first use in this function)
lbx_zlib.c:176: error: dereferencing pointer to incomplete type
lbx_zlib.c:176: error: dereferencing pointer to incomplete type
lbx_zlib.c:178: error: dereferencing pointer to incomplete type
lbx_zlib.c:178: error: dereferencing pointer to incomplete type
lbx_zlib.c:179: error: dereferencing pointer to incomplete type
lbx_zlib.c:179: error: dereferencing pointer to incomplete type
lbx_zlib.c: In function `GetNewPacket':
lbx_zlib.c:189: error: dereferencing pointer to incomplete type
lbx_zlib.c:191: error: dereferencing pointer to incomplete type
lbx_zlib.c:191: error: dereferencing pointer to incomplete type
lbx_zlib.c:192: error: dereferencing pointer to incomplete type
lbx_zlib.c:198: error: dereferencing pointer to incomplete type
lbx_zlib.c:200: error: dereferencing pointer to incomplete type
lbx_zlib.c:200: error: dereferencing pointer to incomplete type
lbx_zlib.c:204: error: dereferencing pointer to incomplete type
lbx_zlib.c:205: error: dereferencing pointer to incomplete type
lbx_zlib.c: In function `NewPacketAvail':
lbx_zlib.c:219: error: dereferencing pointer to incomplete type
lbx_zlib.c:221: error: dereferencing pointer to incomplete type
lbx_zlib.c:221: error: dereferencing pointer to incomplete type
lbx_zlib.c:222: error: dereferencing pointer to incomplete type
lbx_zlib.c: In function `ZlibFree':
lbx_zlib.c:334: warning: implicit declaration of function `deflateEnd'
lbx_zlib.c:336: warning: implicit declaration of function `inflateEnd'
lbx_zlib.c: In function `ZlibFlush':
lbx_zlib.c:347: error: dereferencing pointer to incomplete type
lbx_zlib.c:349: error: `Z_PARTIAL_FLUSH' undeclared (first use in this function)
lbx_zlib.c:350: error: dereferencing pointer to incomplete type
lbx_zlib.c:350: error: dereferencing pointer to incomplete type
lbx_zlib.c:351: error: dereferencing pointer to incomplete type
lbx_zlib.c:351: error: dereferencing pointer to incomplete type
lbx_zlib.c:355: error: dereferencing pointer to incomplete type
lbx_zlib.c: In function `ZlibWrite':
lbx_zlib.c:426: error: dereferencing pointer to incomplete type
lbx_zlib.c:427: error: dereferencing pointer to incomplete type
lbx_zlib.c:429: error: dereferencing pointer to incomplete type
lbx_zlib.c:433: error: dereferencing pointer to incomplete type
lbx_zlib.c:433: error: dereferencing pointer to incomplete type
lbx_zlib.c:434: error: dereferencing pointer to incomplete type
lbx_zlib.c:434: error: dereferencing pointer to incomplete type
lbx_zlib.c:437: error: dereferencing pointer to incomplete type
lbx_zlib.c:437: error: dereferencing pointer to incomplete type
lbx_zlib.c:440: error: dereferencing pointer to incomplete type
lbx_zlib.c:441: error: dereferencing pointer to incomplete type
lbx_zlib.c:442: error: `Z_NO_FLUSH' undeclared (first use in this function)
lbx_zlib.c:446: error: dereferencing pointer to incomplete type
lbx_zlib.c: In function `ZlibRead':
lbx_zlib.c:475: error: dereferencing pointer to incomplete type
lbx_zlib.c:477: error: dereferencing pointer to incomplete type
lbx_zlib.c:478: error: dereferencing pointer to incomplete type
lbx_zlib.c:482: error: dereferencing pointer to incomplete type
lbx_zlib.c:483: error: dereferencing pointer to incomplete type
lbx_zlib.c:491: error: dereferencing pointer to incomplete type
lbx_zlib.c:492: error: dereferencing pointer to incomplete type
lbx_zlib.c:493: error: dereferencing pointer to incomplete type
lbx_zlib.c:493: error: dereferencing pointer to incomplete type
lbx_zlib.c:494: error: dereferencing pointer to incomplete type
lbx_zlib.c:494: error: dereferencing pointer to incomplete type
lbx_zlib.c:497: error: dereferencing pointer to incomplete type
lbx_zlib.c:497: error: dereferencing pointer to incomplete type
lbx_zlib.c:498: error: dereferencing pointer to incomplete type
lbx_zlib.c:498: error: dereferencing pointer to incomplete type
lbx_zlib.c:499: error: dereferencing pointer to incomplete type
lbx_zlib.c:508: error: dereferencing pointer to incomplete type
lbx_zlib.c:517: error: dereferencing pointer to incomplete type
lbx_zlib.c:517: error: dereferencing pointer to incomplete type
lbx_zlib.c:517: error: dereferencing pointer to incomplete type
lbx_zlib.c:517: error: dereferencing pointer to incomplete type
lbx_zlib.c:517: error: dereferencing pointer to incomplete type
lbx_zlib.c:517: error: dereferencing pointer to incomplete type
lbx_zlib.c:517: error: dereferencing pointer to incomplete type
lbx_zlib.c:517: error: dereferencing pointer to incomplete type
lbx_zlib.c:519: error: dereferencing pointer to incomplete type
lbx_zlib.c:519: error: dereferencing pointer to incomplete type
lbx_zlib.c:520: error: dereferencing pointer to incomplete type
lbx_zlib.c:521: error: dereferencing pointer to incomplete type
lbx_zlib.c:525: error: dereferencing pointer to incomplete type
lbx_zlib.c: In function `ZlibInputAvail':
lbx_zlib.c:540: error: dereferencing pointer to incomplete type
lbx_zlib.c:541: error: dereferencing pointer to incomplete type
lbx_zlib.c:541: error: dereferencing pointer to incomplete type
make[5]: *** [lbx_zlib.o] Error 1
make[5]: Leaving directory `/root/xc/lib/lbxutil/lbx_zlib'
make[4]: *** [lbx_zlib] Error 2
make[4]: Leaving directory `/root/xc/lib/lbxutil'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/root/xc/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/xc'
make[1]: *** [World] Error 2
make[1]: Leaving directory `/root/xc'
make: *** [World] Error 2
debian:~/xc#
On googling I found the following links but they weren't very helpful
http://www.rootboard.de/vb3/showthread.php?p=81536
http://www.linuxquestions.org/questi...hreadid=285074

Also, I have done the same procedure successfully on a Fedora 2 installation which had gcc version 3.xx and my current debian has gcc version 3.3.5. Even I think this could be a gcc compiler version issue. Has anyone tried this before?

Also are these error messsage by any chance related to host.def file which we copy in xc/config/cf directory?

I can't use binary version of Xorg available because I am compiling this for a specific purpose and I need help in this regards.

Thank you.
 
Old 02-25-2006, 02:58 AM   #2
dombrowsky
Member
 
Registered: Dec 2005
Location: New York
Distribution: Debian/GNU
Posts: 235

Rep: Reputation: 31
it sure looks like its just not finding the headers for zlib.

lbx_zlib.h:55:18: zlib.h: No such file or directory

have you configured X? The stock config usually doesn't work for me in just about any environment that isn't right out of the box. look at the files in xc/config of the source three that apply to your system.
 
Old 02-25-2006, 04:18 AM   #3
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Original Poster
Rep: Reputation: 49
Thanks for the reply. But how do I install the missing zlib headers..
 
Old 02-25-2006, 05:12 AM   #4
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
Try:

apt-get install zlib
or
apt-get install lib64z1-dev
or
apt-get install zlib1g-dev

Last edited by /bin/bash; 02-25-2006 at 08:46 AM.
 
Old 02-25-2006, 10:09 PM   #5
dombrowsky
Member
 
Registered: Dec 2005
Location: New York
Distribution: Debian/GNU
Posts: 235

Rep: Reputation: 31
or use the source, luke.

http://www.zlib.net/
 
  


Reply



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
Xorg-6.8.2 compile error joakim12 Linux From Scratch 3 08-17-2005 03:51 AM
Xorg 6.8.2 compile error Yerp Linux From Scratch 3 03-31-2005 07:05 AM
Trying to compile Xorg 6.8.1 drowbot Linux From Scratch 6 03-23-2005 05:52 PM
Does anyone custom compile xorg? dhave Slackware 11 03-07-2005 03:06 AM
compile Xorg cs-cam Linux - Newbie 3 12-03-2004 10:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:41 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
Open Source Consulting | Domain Registration