Received: (qmail 5022 invoked by uid 501); 7 Jan 2002 18:28:35 -0000 Message-Id: <20020107182835.5016.qmail@apache.org> Date: 7 Jan 2002 18:28:35 -0000 From: vikas dubey Reply-To: vikas.dubey@skandia.ch To: submit@bugz.apache.org Subject: Give the error when running the ./configure --prefix=$APACHE_HOME X-Send-Pr-Version: 3.110 >Number: 9397 >Category: os-solaris >Synopsis: Give the error when running the ./configure --prefix=$APACHE_HOME >Confidential: no >Severity: critical >Priority: medium >Responsible: apache >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Mon Jan 07 10:30:01 PST 2002 >Closed-Date: Tue Jan 08 07:21:14 PST 2002 >Last-Modified: Tue Jan 08 07:21:14 PST 2002 >Originator: vikas.dubey@skandia.ch >Release: 1.3.22 >Organization: >Environment: Sun Solaris 8 >Description: $ ./configure --prefix=$APACHE_HOME Configuring for Apache, Version 1.3.22 + using installation path layout: Apache (config.layout) Creating Makefile Creating Configuration.apaci in src Creating Makefile in src + configured for Solaris 280 platform + setting C compiler to cc + setting C pre-processor to /lib/cpp + checking for system header files + adding selected modules + using builtin Expat + checking sizeof various data types + doing sanity check on compiler and options ** A test compilation with your Makefile configuration ** failed. The below error output from the compilation ** test will give you an idea what is failing. Note that ** Apache requires an ANSI C Compiler, such as gcc. cd ..; cc -DSOLARIS2=280 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED `./ apaci` -o helpers/dummy helpers/dummy.c -lsocket -lnsl ucbcc: Warning: Option -YP,:/usr/ucblib:/opt/SUNWspro/WS6U2/bin/../lib:/opt /SUNWspro/WS6U2/bin:/usr/ccs/lib:/usr/lib passed to ld, if ld is invoked, i gnored otherwise "helpers/dummy.c", line 3: warning: const is a keyword in ANSI C "helpers/dummy.c", line 3: syntax error before or at: char "helpers/dummy.c", line 3: warning: undefined or missing type for: char "helpers/dummy.c", line 4: syntax error before or at: char "helpers/dummy.c", line 4: warning: undefined or missing type for: char "helpers/dummy.c", line 6: undefined symbol: c "helpers/dummy.c", line 6: cannot dereference non-pointer type "helpers/dummy.c", line 9: undefined symbol: const "helpers/dummy.c", line 9: syntax error before or at: char "helpers/dummy.c", line 10: undefined symbol: c *** Error code 2 make: Fatal error: Command failed for target `dummy' ======== Error Output for sanity check ======== ============= End of Error Report ============= Aborting! >How-To-Repeat: untar the apache 1.3.22 distribution and logon to unix as non super user and run the ./configure --prefix=$APACHE_HOME command from the installed dir >Fix: i think the ./helper/dummy.c file has got the syntax error >Release-Note: >Audit-Trail: State-Changed-From-To: open-closed State-Changed-By: slive State-Changed-When: Tue Jan 8 07:21:13 PST 2002 State-Changed-Why: The problem is not actually with the dummy.c file, but is instead with your compiler. If I remember correctly, ucbcc is not a good ANSI-C compiler. You need to use the proper sun compiler or gcc. Thanks for using Apache! >Unformatted: [In order for any reply to be added to the PR database, you need] [to include in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]