LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-01-2005, 05:40 PM   #1
shot_baker
LQ Newbie
 
Registered: Mar 2002
Location: Wisconsin
Distribution: Mandrake 9.0
Posts: 22

Rep: Reputation: 15
X11R6.8.1 compile problems


I'm trying to install X11 on mandrake 10.1. I'm following the directions at: http://www.x.org/X11R6.8.1/doc/BUILD.html . Unpacking it went without any trouble, and it gets most of the way through the compiling, but then I get this:

gcc -m32 -c -O2 -fno-strength-reduce -fno-strict-aliasing -ansi -pedantic -Wall -Wpointer-arith -Wundef -I../../../exports/include/X11 -I../../../include/extensions -I../../../programs/Xserver/include -I../../../include/extensions -I../../zlib -I../../.. -I../../../exports/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DFUNCPROTO=15 -DNARROWPROTO lbx_zlib.c
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 `/home/shot_baker/downloads/x.org/xc/lib/lbxutil/lbx_zlib'
make[4]: *** [lbx_zlib] Error 2
make[4]: Leaving directory `/home/shot_baker/downloads/x.org/xc/lib/lbxutil'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/shot_baker/downloads/x.org/xc/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/shot_baker/downloads/x.org/xc'
make[1]: *** [World] Error 2
make[1]: Leaving directory `/home/shot_baker/downloads/x.org/xc'
make: *** [World] Error 2

I've been playing with this for a while now, working through other problems that have come up, but I'm stumped here. Don't know if it's something I did earlier or not. Any ideas on what I'm doing wrong, how to fix it, or where to find more info on this? I'm running Mandrake 10.1 with kernel 2.6.8.1.

Many thanks.

Baker
 
Old 02-01-2005, 06:22 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,334

Rep: Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547
"lbx_zlib.h:55:18: zlib.h: No such file or directory"

I think that you are missing zlib. Check to see if you have zlib with:

rpm -qi zlib

----------------------
Steve Stites
 
Old 02-01-2005, 10:42 PM   #3
shot_baker
LQ Newbie
 
Registered: Mar 2002
Location: Wisconsin
Distribution: Mandrake 9.0
Posts: 22

Original Poster
Rep: Reputation: 15
Thanks for the help.

Ok, ran the command and it wasn't installed. Downloaded and installed it without problems, but the make for X11 still isn't working. Now I'm getting a bunch of warnings about ISO C forbids this, that and the next thing. A lot of warnings... syntax errors etc. they are in:

xmlconfig.c
glxcmds.c
glapitemp.h
vtxfmt_tmp.h

Could this be because I'm using the wrong C compiler to compile this? If so, which compiler should I use, and how do I make that the system default?

Thanks again

Baker
 
Old 02-02-2005, 05:23 AM   #4
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
gcc 3.4.x compiles xorg fine. did you install the -devel package also (for zlib)?
 
  


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
X11r6.8.2 Eugney Slackware 5 06-06-2005 06:52 AM
trying to compile X11R6.8.1 on mdk10.1 official quatsch Mandriva 3 12-12-2004 08:08 PM
xorg x11r6.8.0 Kroenecker Linux From Scratch 8 11-15-2004 12:41 PM
X11r6 Kernel 2.6.5 Slackware 2 10-06-2004 05:56 PM
other then X11R6 demmylls Linux - General 1 10-09-2003 04:09 PM

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

All times are GMT -5. The time now is 08:38 PM.

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