From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079044115962.tru64-unix-managers.marc@archive.invalid> From: "Irene A. Shilikhina" Date: Tue, 29 Jun 1999 06:40:27 +0000 To: tru64-unix-managers Subject: Making Apache 1.3.6 with the native C compiler (4.0D) X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079044115962 Hello Managers, I've got difficulty in compiling Apache 1.3.6 on 4.0D because of a number o= f compilation errors (I'll include these messages beneath my signature). At t= he same time I'm not inclined to install GNU compilers (at least I haven't be= en so far). From=20curiosity, I passed this procedure on my old still running system=20 (3.2c, which I'm planning to replace by the new one). I had some warnings, a kind of the following: -----------------------^ /usr/lib/cmplrs/cc/cfe: Warning: ap_md5c.c, line 487: Incompatible=20 pointer type assignment ap_MD5Update(&ctx, apr1_id, strlen(apr1_id)); ----------------------- Nevertheless, I installed it successfuly, and everything seemed to run OK= =20 (on an alternative port). Since the C compilers on these systems are different (and have different=20 defaults), I guess, on 4.0D some environment variables should be set to=20 override the corresponding default ones, shouldn't they? I mean such as=20 CFLAGS, INCLUDES, I don't know what it's exactly. Is anyone there in the list who has passed this on 4.0D? I would be happy to hear from you... Thanks, Irene ************************************************************************* * * * Irene A. Shilikhina e-mail: irene@alpha.iae.nsk.su * * System administrator, * * Institute of Automation & Electrometry, * * Siberian Branch of Russian Academy of Sciences, * * Novosibirsk, Russia * * http://www.iae.nsk.su/~irene * ************************************************************************* * * * The road to hell is paved with good intentions. * * * * [...has proved to be as actual at the end of XX as ages before...] * * * ************************************************************************* alpha:../src>make =3D=3D=3D> regex sh ./mkh -i _REGEX_H_ regex2.h regcomp.c regerror.c regexec.c regfree.c > = ../include/hsregex.h sh ./mkh -p regcomp.c >regcomp.ih cc -I. -I../os/unix -I../include -DOSF1 -DUSE_HSREGEX -DPOSIX_MISTAKE -= c regcomp.c cc -I. -I../os/unix -I../include -DOSF1 -DUSE_HSREGEX -DPOSIX_MISTAKE -= c regexec.c cc -I. -I../os/unix -I../include -DOSF1 -DUSE_HSREGEX -DPOSIX_MISTAKE -= c regerror.c cc -I. -I../os/unix -I../include -DOSF1 -DUSE_HSREGEX -DPOSIX_MISTAKE -= c regfree.c rm -f libregex.a ar cr libregex.a regcomp.o regexec.o regerror.o regfree.o ranlib libregex.a <=3D=3D=3D regex =3D=3D=3D> os/unix cc -c -I../../os/unix -I../../include -DOSF1 -DUSE_HSREGEX os.c cc: Warning: /usr/include/sys/cdefs.h, line 118: The redefinition of the ma= cro "__attribute__" conflicts with a current definition because the spellin= g of one or more parameters is different. The redefinition is now in effec= t. #define __attribute__(x) /* delete __attribute__ if non-gcc or gcc1 = */ ----------------------^ cc: Error: os.c, line 91: In this declaration, parameter 1 has a different = type than specified in an earlier declaration of this function. void *ap_os_dso_load(const char *path) ------^ cc: Error: os.c, line 91: In this declaration, the type of "ap_os_dso_load"= is not compatible with the type of a previous declaration of "ap_os_dso_lo= ad" at line number 139 in file ../../os/unix/os.h. void *ap_os_dso_load(const char *path) ------^ cc: Error: os.c, line 129: In this declaration, parameter 2 has a different= type than specified in an earlier declaration of this function. void *ap_os_dso_sym(void *handle, const char *symname) ------^ cc: Error: os.c, line 129: In this declaration, the type of "ap_os_dso_sym"= is not compatible with the type of a previous declaration of "ap_os_dso_sy= m" at line number 141 in file ../../os/unix/os.h. void *ap_os_dso_sym(void *handle, const char *symname) ------^ cc: Error: os.c, line 162: In this declaration, the type of "ap_os_dso_erro= r" is not compatible with the type of a previous declaration of "ap_os_dso_= error" at line number 142 in file ../../os/unix/os.h. const char *ap_os_dso_error(void) ------------^ *** Exit 1 Stop. *** Exit 1 Stop.