[users@httpd] Re: Encountering compile problems installing version 2.0.54 on HP-UX

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi;

Just to nail the coffin closed so to speak...  Both the previous
posters' memories are correct - you definitely have to either a) buy
HP's ANSI C compiler:

http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,1857,00.html

or b) install gcc as an earlier poster mentioned.  The bundled compiler
is only for kernel builds and is pretty much useless for anything such
as Apache, SSL, LDAP, what have you...  Heck, it won't even build gcc
:-(

Unless you are expecting to do may more compiles of other HP software,
the HP product will prove to both be more expensive and require more
effort, particularly because everyone posting recipes and descriptions
assume that when the word "UNIX" is mentioned that it means "Linux";
HP's compiler flags and options are different in a lot of cases.

Summary - you'll probably be happier in the long run with gcc.

hugh

NetSuporte wrote:
> That is correct the bundled C compiler will compile the kernel. It has 
> been a couple of years since I worked there but I remember needing to 
> install the ansi-c compiler separately.
> 
> Philip
> 
> Tony Schreiner wrote:
> 
> > If memory serves me, the C compiler that is bundled with HP-UX is  
> > very rudimentary and only useful for some system tasks. The really  
> > functional HP-UX compiler is a separate product.
> >
> > It's been a few years, I admit.
> >
> > Tony
> >
> > On Jun 7, 2005, at 9:18 AM, McLaughlin, Brent wrote:
> >
> >> Thanks for the reply Owen,
> >>
> >> I am using the c compiler that is bundled with the operating  
> >> system.  I'm hoping to draw from the experience from anyone who has  
> >> compiled on HP-UX using the bundled c compiler.
> >>
> >> Brent
> >>
> >> -----Original Message-----
> >> From: Boyle Owen [mailto:Owen.Boyle@xxxxxxx]
> >>
> >>> Hello,
> >>>     I am attempting to get the latest version of Apache installed
> >>> under HP-UX.  I have followed the instructions and all was well until
> >>> the make.  During the make a compile problem is being reported.
> >>>
> >>
> >> What compiler are you using, native HP-UX? You might try gcc...
> >>>
> >>> Is anyone else encountering a compile problem in HP-UX
> >>> environments for
> >>> the latest apache release version 2.0.54?
> >>>
> >>> The compilation is complaining about the header file
> >>> apr_errno.h during
> >>> the building of the strings in header file apr_cpystrn.h.  The
> >>> apr_errno.h is included in the apr_lib.h which is included in the
> >>> apr_cpystrn.h program.  The specific errors are noted in the Make
> >>> session information.
> >>>
> >>> At first I thought this could be caused by the compiler commands  but I
> >>> issued a simple compile to see if the same error is returned
> >>> and it is,
> >>> included at the end of this thread.  I also included the line that  the
> >>> error is occurring on.
> >>>
> >>> Any and all help is appreciated.
> >>>
> >>> Brent
> >>>
> >>>
> >>>
> >>> Configuration:
> >>>
> >>>   $ ./configure --prefix=/usr/edi01/apache2s -n --disable-cgid
> >>> --disable-charset-lite --enable-auth-dbm --enable-auth-ldap
> >>> --enable-cache --enable-headers --enable-ldap --enable-logio
> >>> --enable-so
> >>> --enable-ssl --enable-unique-id --enable-vhost-alias
> >>>
> >>>
> >>> Make session:
> >>>
> >>> Making all in srclib
> >>> Making all in apr
> >>> Making all in strings
> >>>         /bin/sh /usr/edi01/httpd-2.0.54/srclib/apr/libtool --silent
> >>> --mode=compile cc -g -Ae +Z +DAportable   -DHAVE_CONFIG_H -DHPUX11
> >>> -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED   -I../include
> >>> -I../include/arch/unix  -c apr_cpystrn.c && touch apr_cpystrn.lo
> >>> (Bundled) cc: warning 480: The -g option is available only with the
> >>> C/ANSI C product; ignored.
> >>> (Bundled) cc: warning 480: The -A option is available only with the
> >>> C/ANSI C product; ignored.
> >>> (Bundled) cc: warning 480: The +Z option is available only with the
> >>> C/ANSI C product; ignored.
> >>> (Bundled) cc: "../include/apr_errno.h", line 52: error 1000:
> >>> Unexpected
> >>> symbol: "statcode".
> >>> (Bundled) cc: "../include/apr_errno.h", line 53: error 1000:
> >>> Unexpected
> >>> symbol: "apr_size_t".
> >>> (Bundled) cc: "../include/apr_errno.h", line 52: error 1705: Function
> >>> prototypes are an ANSI feature.
> >>> (Bundled) cc: "../include/apr_errno.h", line 52: error 1677:  Parameter
> >>> type has an invalid storage class specifier "static".
> >>> (Bundled) cc: "../include/apr_errno.h", line 53: error 1573: Type of
> >>> "bufsize" is undefined due to an illegal declaration.
> >>> (Bundled) cc: "../include/apr_general.h", line 179: error 1000:
> >>> Unexpected symbol: "apr_initialize".
> >>> (Bundled) cc: error 2017: Cannot recover from earlier errors,
> >>> terminating.
> >>> *** Error exit code 1
> >>>
> >>> Stop.
> >>> *** Error exit code 1
> >>>
> >>> Stop.
> >>> *** Error exit code 1
> >>>
> >>> Stop.
> >>> *** Error exit code 1
> >>>
> >>> Stop.
> >>> *** Error exit code 1
> >>>
> >>> Stop.
> >>>
> >>> Simple compile attempt:
> >>>
> >>> compile cc -I../include -I../include/arch/unix  -c apr_cpystrn.c &&
> >>> touch apr_cpystrn.lo
> >>>
> >>> Line in apr_errno.h that the complaint is against.
> >>>
> >>> Line 52 in apr_errno.h APR_DECLARE(char *) apr_strerror(apr_status_t
> >>> statcode, char *buf, apr_size_t bufsize);

-- 
 Hugh Williams                  "There are two things to aim for in life;
 hugh_williams@xxxxxxxxxxx       first, to get what you want; and after that,
 Agilent Technologies            to enjoy it.  Only the wisest of mankind
 Santa Rosa 2US-C                achieve the second."
 707.577.4941                         - Logan Pearsall Smith, 1931

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux