Jump to content

Error whilst compiling XOrg [solved]


Recommended Posts

I downloaded the single source .tag.gz from one of the mirrors and am currently compiling XOrg. I know I could use an RPM to do this, but I wanted to learn along the way.

 

However, I'm getting a problem. This is what I've done so far:

 

Pre:

 

Made sure that I had installed gcc, make, bison, flex, zlib, ncurses, fontconfig, expat and Perl. The only thing I couldn't check was C library development package, am assuming it's installed, because I don't know what the RPM is called for it.

 

1. Create a directory called "build".

2. Ran "lndir ../xc" to create a shadow link to "build".

3. As I use bash (Bourne), I typed the following: make World > World.log 2>&1

 

It's now bombed out with the following error messages:

 

gcc -m32 -O2 -fno-strength-reduce -fno-strict-aliasing -ansi -pedantic -Wall -Wpointer-arith -Wundef     -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       -c -o xcursorgen.o xcursorgen.c
xcursorgen.c:35:17: png.h: No such file or directory
xcursorgen.c:140: error: syntax error before "png"
xcursorgen.c: In function `premultiply_data':
xcursorgen.c:144: error: `row_info' undeclared (first use in this function)
xcursorgen.c:144: error: (Each undeclared identifier is reported only once
xcursorgen.c:144: error: for each function it appears in.)
xcursorgen.c:146: error: `data' undeclared (first use in this function)
xcursorgen.c: In function `load_image':
xcursorgen.c:165: error: `png_structp' undeclared (first use in this function)
xcursorgen.c:165: error: syntax error before "png"
xcursorgen.c:166: error: `png_infop' undeclared (first use in this function)
xcursorgen.c:167: error: `png_bytepp' undeclared (first use in this function)
xcursorgen.c:170: error: `png_uint_32' undeclared (first use in this function)
xcursorgen.c:170: error: syntax error before "width"
xcursorgen.c:174: error: `png' undeclared (first use in this function)
xcursorgen.c:174: warning: implicit declaration of function `png_create_read_struct'
xcursorgen.c:174: error: `PNG_LIBPNG_VER_STRING' undeclared (first use in this function)
xcursorgen.c:178: error: `info' undeclared (first use in this function)
xcursorgen.c:178: warning: implicit declaration of function `png_create_info_struct'
xcursorgen.c:181: warning: implicit declaration of function `png_destroy_read_struct'
xcursorgen.c:185: warning: implicit declaration of function `setjmp'
xcursorgen.c:210: warning: implicit declaration of function `png_init_io'
xcursorgen.c:211: warning: implicit declaration of function `png_read_info'
xcursorgen.c:212: warning: implicit declaration of function `png_get_IHDR'
xcursorgen.c:212: error: `width' undeclared (first use in this function)
xcursorgen.c:212: error: `height' undeclared (first use in this function)
xcursorgen.c:217: error: `PNG_COLOR_TYPE_PALETTE' undeclared (first use in this function)
xcursorgen.c:218: warning: implicit declaration of function `png_set_expand'
xcursorgen.c:220: error: `PNG_COLOR_TYPE_GRAY' undeclared (first use in this function)
xcursorgen.c:223: warning: implicit declaration of function `png_get_valid'
xcursorgen.c:223: error: `PNG_INFO_tRNS' undeclared (first use in this function)
xcursorgen.c:227: warning: implicit declaration of function `png_set_strip_16'
xcursorgen.c:230: warning: implicit declaration of function `png_set_packing'
xcursorgen.c:232: error: `PNG_COLOR_TYPE_GRAY_ALPHA' undeclared (first use in this function)
xcursorgen.c:233: warning: implicit declaration of function `png_set_gray_to_rgb'
xcursorgen.c:235: error: `PNG_INTERLACE_NONE' undeclared (first use in this function)
xcursorgen.c:236: warning: implicit declaration of function `png_set_interlace_handling'
xcursorgen.c:238: warning: implicit declaration of function `png_set_bgr'
xcursorgen.c:239: warning: implicit declaration of function `png_set_filler'
xcursorgen.c:239: error: `PNG_FILLER_AFTER' undeclared (first use in this function)
xcursorgen.c:241: warning: implicit declaration of function `png_set_read_user_transform_fn'
xcursorgen.c:243: warning: implicit declaration of function `png_read_update_info'
xcursorgen.c:252: error: `rows' undeclared (first use in this function)
xcursorgen.c:252: error: `png_bytep' undeclared (first use in this function)
xcursorgen.c:257: warning: implicit declaration of function `png_read_image'
xcursorgen.c:258: warning: implicit declaration of function `png_read_end'
make[4]: *** [xcursorgen.o] Error 1

 

Can someone tell me what I seem to be missing, so that I can carry on with the build?

 

Much appreciated!!!

Link to comment
Share on other sites

png.h is missing? try searching for libpng or libpng-devel. you might need those to get the required header files.

 

note that i am only guessing here and i dont have the luxury of googling to verify. :(

 

ciao!

Link to comment
Share on other sites

Cool, just done that so re-running now to see what happens!

 

Will keep you posted in case any more pop up!!

 

Thanks v much!

Link to comment
Share on other sites

Huge huge problem now!!!

 

I decided to go into the MCC gui, and changed it so XOrg runs automatically. Now I've done this, the mdkkdm screen will not let me type in it or anything.

 

Sounds like the xorg has got screwed somewhere. Before this however, I was loggin on getting to the CLI prompt and then typing startx and all was fine.

 

I can run failsafe, but I don't know how to turn off the run XOrg automatically option. What's gone wrong to stop me logging on the GUI?

Link to comment
Share on other sites

It's OK now. I solved it :D

 

Booted failsafe, did the following:

 

service network start

 

urpmi the source for thacs rpms, and then installed Xorg over the top of what seems to be my partially failed compilation.

 

When I rebooted normally, I could get in fine. Seems something went amiss somewhere, don't know what, but I'm back to normal!

 

And no rebuild either, cool :P

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...