AMBER Archive (2000)

Subject: Re: compiling AMBER on IBM 44P

From: David Konerding (dek_at_cgl.ucsf.edu)
Date: Mon Oct 09 2000 - 09:34:06 CDT


Paolo Dapporto writes:
>
>Compiling AMBER 6.0 on:
>
>IBM RISC 44P,
>operating system: AIX v4.3.3
>C compiler: compiler for AIX v4.4
>fortran compiler: XL Fortran v 6.1
>
>I've found the following problem.
>May someone help me?
>
>Paolo Dapporto
>
>"../X11/Xraw/TextP.h", line 44.9: 1506-236 (W) Macro name abs has been
>redefined.
>"../X11/Xraw/TextP.h", line 44.9: 1506-358 (I) "abs" is defined on line 382
>of /usr/include/stdlib.h.
>"TextPop.c", line 224.38: 1506-280 (W) Function argument assignment between
>types "void(*)(struct _WidgetRec*,void*,void*)" and "void(*)()" is not
>allowed.
>"TextPop.c", line 739.45: 1506-280 (W) Function argument assignment between
>types "void(*)(struct _WidgetRec*,void*,void*)" and "void(*)()" is not
>allowed.
>"TextPop.c", line 742.38: 1506-280 (W) Function argument assignment between
>types "void(*)(struct _WidgetRec*,void*,void*)" and "void(*)()" is not
>allowed.

These are just warnings/informationals. You might want to check why TextP.h reassigns
abs, and whether the new macro does the same job as the old.

>
>conflicts: 6 shift/reduce

This is OK.

>ld: 0711-224 WARNING: Duplicate symbol: last_key
>ld: 0711-224 WARNING: Duplicate symbol: next_key
>ld: 0711-224 WARNING: Duplicate symbol: .connect
>ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.

I would follow their instructions here.

>ld: 0711-317 ERROR: Undefined symbol: thread_unlock
>ld: 0711-317 ERROR: Undefined symbol: thread_waitact
>ld: 0711-317 ERROR: Undefined symbol: thread_setmystate_fast
>ld: 0711-317 ERROR: Undefined symbol: thread_tsleep
>ld: 0711-317 ERROR: Undefined symbol: thread_twakeup
>ld: 0711-317 ERROR: Undefined symbol: thread_setstate
>ld: 0711-317 ERROR: Undefined symbol: thread_terminate_ack
>ld: 0711-317 ERROR: Undefined symbol: thread_setmystate
>ld: 0711-317 ERROR: Undefined symbol: thread_tsleep_event
>ld: 0711-317 ERROR: Undefined symbol: thread_waitlock_local
>ld: 0711-317 ERROR: Undefined symbol: thread_waitlock
>ld: 0711-317 ERROR: Undefined symbol: thread_kill
>ld: 0711-317 ERROR: Undefined symbol: thread_twakeup_event
>ld: 0711-317 ERROR: Undefined symbol: thread_getregs
>ld: 0711-317 ERROR: Undefined symbol: thread_init
>ld: 0711-317 ERROR: Undefined symbol: thread_setstate_fast
>ld: 0711-317 ERROR: Undefined symbol: thread_terminate_unlock

Link againts the AIX thread library. I'm no AIXspert, but
I'd guess it's called "libthread.a.", and adding "-lthread"
at the end of the link line will let it compile.

Dave