Compilation problem on HPUX

nukala krishna hari_nv2001 at yahoo.co.in
Mon Sep 3 11:40:13 EDT 2007


Hi Kiran,

        Sorry for the late response and thanks for the update. I got the below error while compiling 1.4 release code on HP-UX B 11.00 using aCC compiler.
aCC: warning 901: unknown option: `-hreads': use +help for online documentation.
Error 119: "../../include/k5-platform.h", line 299 # #error "Don't know how to do unload-time finalization for this
    configuration."
    # error "Don't know how to do unload-time finalization for this co
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error 19: "threads.c", line 37 # Unexpected ';'.
    MAKE_FINI_FUNCTION(krb5int_thread_support_fini);
                                                   ^
Error 623: "threads.c", line 116 # Block-scope function declaration "void thread_termination(void *)" must not be explicitly
    'static'.
    static void thread_termination(void *);
                ^^^^^^^^^^^^^^^^^^
Warning 267: "threads.c", line 118 # Inconsistent linkage in declarations of "void thread_termination(void *)"; previously
    was extern now is declared static.
    static void thread_termination (void *tptr)
                ^^^^^^^^^^^^^^^^^^
Error 266: "threads.c", line 116 # Bad linkage declaration; static function declaration in block scope.
    static void thread_termination(void *);
                ^^^^^^^^^^^^^^^^^^
Error 20: "threads.c", line 119 # ';' expected before '{'.
    {
    ^
Error 375: "threads.c", line 85 # Declaration does not match any parameter in old-style function definition.
    static k5_mutex_t key_lock = K5_MUTEX_PARTIAL_INITIALIZER;
                      ^^^^^^^^
Error 375: "threads.c", line 86 # Declaration does not match any parameter in old-style function definition.
    static void (*destructors[K5_KEY_MAX])(void *);
                  ^^^^^^^^^^^
Error 375: "threads.c", line 87 # Declaration does not match any parameter in old-style function definition.
    static unsigned char destructors_set[K5_KEY_MAX];
                         ^^^^^^^^^^^^^^^
Error 375: "threads.c", line 115 # Declaration does not match any parameter in old-style function definition.
    static pthread_key_t key;
                         ^^^
Error 445: "threads.c", line 121 # Cannot recover from earlier errors.
        struct tsd_block *t = tptr;
                         ^^^^^^^^^
*** Error exit code 2
Stop.
*** Error exit code 1
Stop.
*** Error exit code 1
Stop.

Mean while I tried to compile the same code on HPUX 11.11. using "cc" compiler. But now also I ran into problems. I got the below errors.

        (cd include && make krb5/autoconf.h)
`krb5/autoconf.h' is up to date.
making all in util...
making all in util/support...
        cc +z -DSHARED -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DKRB5_KRB4_COMPAT=1 -DHAVE_BT_RSEQ=1 -DKRB5_PRIVATE=1 -DKRB5_DEPRECATED=1 -DKRB5_DNS_LOOKUP_KDC=1 -DKRB5_DNS_LOOKUP=1 -DHAVE_RES_SEARCH=1 -DDELAY_INITIALIZER=1 -DENABLE_THREADS=1 -DHAVE_PTHREAD=1 -DHAVE_PTHREAD_ONCE=1 -DHAVE_PTHREAD_RWLOCK_INIT=1 -DHAVE_PTHREAD_RWLOCK_INIT_IN_THREAD_LIB=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_MEMMOVE=1 -DHAVE_REGCOMP=1 -DNEED_DAEMON_PROTO=1 -DGETSOCKNAME_ARG2_TYPE=void -DGETSOCKNAME_ARG3_TYPE=int -DGETPEERNAME_ARG2_TYPE=GETSOCKNAME_ARG2_TYPE -DGETPEERNAME_ARG3_TYPE=GETSOCKNAME_ARG3_TYPE -DHAVE_SYSLOG_H=1 -DHAVE_STDARG_H=1 -DHAVE_UNISTD_H=1 -DHAVE_OPENLOG=1 -DHAVE_SYSLOG=1 -DHAVE_CLOSELOG=1 -DHAVE_STRFTIME=1 -DHAVE_VSPRINTF=1
 -DHAVE_STRUCT_SOCKADDR_STORAGE=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_NETDB_H=1 -DHAVE_INET_NTOP=1 -DHAVE_INET_PTON=1 -DHAVE_GETNAMEINFO=1 -DHAVE_GETADDRINFO=1 -DKRB5_USE_INET6=1 -DPOSIX_SIGNALS=1 -DUSE_RCACHE=1 -DRETSIGTYPE=void -DHAVE_GETPWNAM_R=1 -DHAVE_GETPWUID_R=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1   -I../../include -I./../../include  -I../../include/krb5 -I./../../include/krb5 -I. -I.   -D_REENTRANT -D_THREAD_SAFE -D_POSIX_C_SOURCE=199506L -D_REENTRANT  -c threads.c -o threads.so.o && mv -f threads.so.o threads.so
cpp: "../../include/k5-platform.h", line 299: error 4062: "Don't know how to do unload-time finalization for this configuration."
*** Error exit code 1
Stop.
*** Error exit code 1
Stop.
*** Error exit code 1
Stop.

I can not figure out what the problem is? Do you have any clues regarding this?

Thanks
Hari

----- Original Message ----
From: Kiran Kumar <mkiran at hp.com>
To: nukala krishna <hari_nv2001 at yahoo.co.in>
Cc: Kerberos dev team <krbdev at mit.edu>
Sent: Friday, 31 August, 2007 10:51:37 AM
Subject: Re: Compilation problem on HPUX


MIT Kerberos should compile with one of gcc, cc or aCC on HP-UX.
You can pickup a newer version of gcc from http://www.hp.com/go/gcc
BTW: What are the problems that you are facing with aCC ?

nukala krishna wrote:
> Ken,
>
> When i use ./configure CC='gcc -muinx=95' it crossed the previous problem. Since we feel that it is not a good idea and I use aCC complier to compile my code, I thought of using aCC instead of gcc.
>  
> I tried to compile the code using the below command
>
> ./configure CC="aCC"
>
> But I ran into problems. Does 1.4 Release supports compilation using aCC? What are the compilers it supports other than gcc?
>
> Thanks
> Hari
>
> ----- Original Message ----
> From: Ken Raeburn <raeburn at MIT.EDU>
> To: nukala krishna <hari_nv2001 at yahoo.co.in>
> Cc: Kerberos dev team <krbdev at mit.edu>
> Sent: Thursday, 30 August, 2007 6:15:00 AM
> Subject: Re: Compilation problem on HPUX
>
>
> On Aug 29, 2007, at 12:52, nukala krishna wrote:
>   
>> Target: hppa2.0w-hp-hpux11.11
>>     
>
>   
>> configure:1700: checking for C compiler default output
>> configure:1703: gcc    conftest.c  >&5
>> /usr/ccs/bin/ld: Can't open unix98.o
>> /usr/ccs/bin/ld: No such file or directory
>> collect2: ld returned 1 exit status
>> configure:1706: $? = 1
>>     
>
>   
>> Here the log says that, it is looking for unix98.o. But my machine  
>> is having unix95.o in /usr/lib directory. I don't have unix98.o in  
>> my machine. Can't I build using unix95.o? If I can, does it results  
>> to any side effects?
>>     
> I'm not really familiar with the ins and outs of the HP-UX build  
> environment.  After poking around at the gcc docs http://gcc.gnu.org/ 
> onlinedocs/gcc-4.1.2/gcc.pdf and the HP-UX compiler docs at http:// 
> docs.hp.com/en/B3901-90023/B3901-90023.pdf, it looks to me like  
> unix98.o is a system object file used to select the UNIX API standard  
> the program is intended to comply with.  You might be able to work  
> around it with something like:
>
>    .../configure CC='gcc -munix=95'
>
> However, from the description in the GCC manual, it sounds like it's  
> actually not a great idea, at least if you plan on linking random  
> applications against the Kerberos code; it may cause things to  
> misbehave if you link random applications against the Kerberos code.   
> Better would be to figure out why gcc doesn't just work.
>
> The HP-UX docs indicate that unix98.o should be in /usr/lib/hpux32  
> or /usr/lib/hpux64, depending on the word size you're compiling for.   
> If the file is there, it's possible that gcc is just not looking in  
> the correct directory for some reason.  If the file isn't there, it  
> may be that some HP-UX development package hasn't been properly  
> installed on your system.
>
> Ken
>
>
>       Get the freedom to save as many mails as you wish. To know how, go to http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html
> _______________________________________________
> krbdev mailing list             krbdev at mit.edu
> https://mailman.mit.edu/mailman/listinfo/krbdev
>
>


      Get the freedom to save as many mails as you wish. To know how, go to http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html


More information about the krbdev mailing list