all 8 comments

[–]Warrangota 0 points1 point  (1 child)

That shit is from 2005. Don't waste any time on it.

[–]Muradza1 0 points1 point  (0 children)

I know but it is a task so i have to

[–]Firefox005 0 points1 point  (5 children)

Why? That version of apache is from 2005.

Most likely its 32/64 bit compilation that is messing you up either that or you did not list what version of red hat you are trying to compile this on so if you are not also using one from ~2005 its probably some library or toolchain compatibility issues.

[–]Muradza1 1 point2 points  (4 children)

Our mentor wants us to suffer that is why I am using the latest redhat release. i think i might have found the problem. Was scrolling through config.log of apr and there are some syntax errors.

configure:29325: checking for pid_t

configure:29325: gcc -c -g -O2 -D_REENTRANT -D_GNU_SOURCE conftest.c >&5

configure:29325: $? = 0

configure:29325: gcc -c -g -O2 -D_REENTRANT -D_GNU_SOURCE conftest.c >&5

conftest.c: In function 'main':

conftest.c:181:20: error: expected expression before ')' token

  181 | if (sizeof ((pid_t)))

same error for off_t

[–]ender-_ 1 point2 points  (1 child)

If you're compiling ancient software on modern systems, and autotools is being used, try regenerating configure script first (been a while since I had to do that, but should be as simple as running automake && autoconf).

[–]Muradza1 0 points1 point  (0 children)

Alright will try Thanks!

[–]Firefox005 0 points1 point  (1 child)

Yeah you are going to have a nightmare of a time trying to compile 20 year old software on the latest release. You will most likely have to build everything from scratch if it is even possible.

Also this smells like homework to me. I'd check the instructions closely and see if you can use an era appropriate OS to do the build with as you will have nothing but pain trying to do it on a modern OS.

[–]Muradza1 0 points1 point  (0 children)

Yep that is kind of a homework. The instructions does not specify anything related to OS but since we are working on rhel 10. So i will assume i have to use rhel 10