Thanks for the pointer.
I found the openpkg.spec(in 20020718 version) is  tight to gcc as
the default compiler.

For example, at"# build BZIP2 library" %build section, CFLAGS="-O"
is passed by default. ( I can't find the -O option at HP's ANSI C compiler).


I think "HPUX-10.20 is fully supported" is not true. I got furter
on a HP11.11 with gcc3.1 but failed at tar compilation. so the
%install section failed.

I think openpkg.spec need to have more error-checking logics  in %build 
section,Such as

if(previous-intall == OK) then do next (compile and install)
else( echo compile and install failed on [bas|tar|cur|bzip2|..].

otherwise when it comes to %install, tar or bzip is not really
avaiable for use and failed the creation of bootstrap.sh

1. I am now stuck at finding the righ options to feed tar's ./configure.

bash-2.04# make
No suffix list.
         make  all-recursive
No suffix list.
Making all in doc
Making all in intl
Making all in lib
         source='xstrtoimax.c' object='xstrtoimax.o' libtool=no \
         depfile='.deps/xstrtoimax.Po' tmpdepfile='.deps/xstrtoimax.TPo' \
         depmode=hp /bin/sh ../depcomp \
         cc -Ae -DHAVE_CONFIG_H -I. -I. -I.. -I../intl     -g -c `test 
-f xstrtoimax.c || echo './'`xstrtoimax.c
cpp: "xstrtol.c", line 90: warning 2005: strtoimax: Too few parameters 
(1) to macro.
cc: "xstrtol.c", line 90: error 1000: Unexpected symbol: ",".
cc: "xstrtol.c", line 90: error 1506: Parameters allowed in function 
definition only.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
2.

bash-2.04# head config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.52.  Invocation command line was

   $ ./configure --config-cache --prefix=/cw --disable-nls

## ---------- ##
## Platform.  ##
bash-2.04#

3. My manual fix on openpkg.spec when using HP compiler


   #   build BZIP2 library
     ( cd bzip2-%{V_bzip2}
       ${l_make} CC="${l_cc}" CFLAGS="-Ae" libbz2.a bzip2
     )

     #   build ZLIB library
     ( cd zlib-%{V_zlib}
       CC="${l_cc}" CFLAGS="-Ae ./configure
       ${l_make} CC="${l_cc}" CFLAGS="-Ae" libz.a
     )






Ralf S. Engelschall wrote:
> On Fri, Aug 02, 2002, T.J. Yang wrote:
> 
> 
>>I am using HP's C compiler and it said HP/UX is a fully supported platform.
>>But I end up with " C compiler cannot create executables." error while
>>in the log show the cc compiler did compiler the c codes.
>>
>>Any pointer on what I am doing wrong ?
> 
> 
> You have to look at the /tmp/openpkg-20020718/rpm-4.0.2/config.log file
> and see what the compiler dislikes to figure out the problem.
> 
>                                        Ralf S. Engelschall
>                                        [EMAIL PROTECTED]
>                                        www.engelschall.com
> ______________________________________________________________________
> The OpenPKG Project                                    www.openpkg.org
> Developer Communication List                   [EMAIL PROTECTED]


______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
Developer Communication List                   [EMAIL PROTECTED]

Reply via email to