From: SMTP%"everhart@DMC.COM" 30-DEC-1994 16:10:50.71 To: EVERHART CC: Subj: Re: POSIX for openVMS is disappointing...do I have it misconfigured? Date: Fri, 30 Dec 1994 15:32:07 EDT From: everhart@DMC.COM To: gce@DMC.COM Message-ID: <00989B82.F89ACD60.650@DMC.COM> Subject: Re: POSIX for openVMS is disappointing...do I have it misconfigured? X-News: thehulk vmsnet.vms-posix:8 From: mosterma@ms.philips.nl (Wim Mosterman QR1334) Subject:Re: POSIX for openVMS is disappointing...do I have it misconfigured? Date: Tue, 20 Dec 1994 09:33:03 GMT Message-ID:<1994Dec20.093303.25162@ms.philips.nl> Chris Moreton-Smith (cmm@isise.rl.ac.uk) wrote: : We've just installed POSIX 2.0/VAX and it is a breath of fresh air to use : compared with earlier versions! : Seriously though, the problem with GNU configure scripts that beats me : is how to make the linker return a failure status when it gets an : unresolved reference. : GNU autoconfigure uses the status from a cc link operation to : determine the presence (or absence) of a library call on a particular : system. In VMS (and hence in POSIX) an unresolved reference is NOT a fatal : error, exactly the opposite of what the GNU test expects. : If anyone has a fix for this one I'd love to know, configure scripts : do seem to run quite effectively otherwise and the ability to port U**X : based code quite effortlessly to VMS is a real bonus. Here is what I did to get the generation of X11R6 going in POSIX 1.0. Rather disgusting, but what the heck, it works... Adapt the TMP variable to something that reflects your temporary path. ################## Cut Here ################## #!/bin/sh TMP=/dka200/posix_tmp/CCPMSTMP.$$ rm -f $TMP trap 'rm -f $TMP; exit 1' 1 2 3 15 # compile and save status /bin/c89 -Wansi89 -Wc,warn=\(noinfo,disable=LONGEXTERN\) ${1+$@} >> $TMP #/bin/c89 -Wansi89 ${1+$@} >> $TMP STATUS=$? # show possible compiler messages cat $TMP # the linker always returns 0 ... if grep '^%LINK-I-UDFSYM' $TMP >> /dev/null then STATUS=1 fi rm -f $TMP exit $STATUS ################## Cut Here ################## Enjoy, .-------------------------------..-------------------------------. | .--. ,-. ,-. || | | \ \ / \/ \ || | | \ \ ,. / \ || | | \ \/ \/ /\ /\ \ || Wim Mosterman | | \ / `' \ \ || Philips Medical Systems | | \ /\ / \ \ || Best, The Netherlands | | `-' `-' `--' || mosterma@mmra1.ms.philips.nl | `-------------------------------'`-------------------------------'