Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"The medium is the massage." -- Crazy Nigel


computers / comp.os.vms / Re: C compiler snag

SubjectAuthor
* C compiler snagRichard Levitte
+* Re: C compiler snagCraig A. Berry
|+* Re: C compiler snagRichard Whalen
||`- Re: C compiler snagRichard Levitte
|`* Re: C compiler snagDavid Jones
| +- Re: C compiler snagRichard Levitte
| `* Re: C compiler snagCraig A. Berry
|  `* Re: C compiler snagJake Hamby
|   +* Re: C compiler snagSteven Schweda
|   |`* Re: C compiler snagabrsvc
|   | +- Re: C compiler snagSteven Schweda
|   | `- Re: C compiler snagDavid Jones
|   `- Re: C compiler snagCraig A. Berry
`* Re: C compiler snagJohn E. Malmberg
 `* Re: C compiler snagJohn Reagan
  +* Re: C compiler snagSimon Clubley
  |`* Re: C compiler snagDave Froble
  | `* Re: C compiler snagSimon Clubley
  |  `* Re: C compiler snagDave Froble
  |   `- Re: C compiler snagSimon Clubley
  `* Re: C compiler snagJohn E. Malmberg
   +* Re: C compiler snagJohn Reagan
   |`* Re: C compiler snagSimon Clubley
   | +* Re: C compiler snagSimon Clubley
   | |`- Re: C compiler snagJohn E. Malmberg
   | `* net: device (Re: C compiler snag)Craig A. Berry
   |  `* Re: net: device (Re: C compiler snag)Simon Clubley
   |   `- Re: net: device (Re: C compiler snag)Craig A. Berry
   `- Re: C compiler snagCraig A. Berry

Pages:12
Re: C compiler snag

<t520ug$q57$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=22425&group=comp.os.vms#22425

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: craigbe...@nospam.mac.com (Craig A. Berry)
Newsgroups: comp.os.vms
Subject: Re: C compiler snag
Date: Thu, 5 May 2022 21:25:19 -0500
Organization: A noiseless patient Spider
Lines: 35
Message-ID: <t520ug$q57$1@dont-email.me>
References: <31cfaa19-d31a-437d-ae72-c9e66b562351n@googlegroups.com>
<s82uek$kf3$1@dont-email.me>
<97ab1e80-7d4e-4174-be3b-525e3814d0adn@googlegroups.com>
<s83lff$4sa$1@dont-email.me>
<0f28d7d5-c01b-446d-a18b-a2d443967078n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 6 May 2022 02:25:20 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="004d99a5c8996660bc738e140a46725d";
logging-data="26791"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+LECEaZnZ+1uRO2qmYtEGIlbZL0bteE70="
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.8.1
Cancel-Lock: sha1:vuNwee8dyN5ZU03A83EdN4Np4I4=
In-Reply-To: <0f28d7d5-c01b-446d-a18b-a2d443967078n@googlegroups.com>
Content-Language: en-US
 by: Craig A. Berry - Fri, 6 May 2022 02:25 UTC

On 5/5/22 6:13 PM, Jake Hamby wrote:

> CC /FLOAT=IEEE_FLOAT/IEEE=DENORM/NAMES=(AS_IS,SHORTENED)/ACCEPT=NOVAXC_KEYWORDS/REENTRANCY=MULTITHREAD/ARCH=EV56/OPT=(TU
> NE=EV67)/ASSUME=NOHEADER_TYPE_DEFAULT/WARNINGS=(WARNINGS=ALL, DISABLE=(EXTRASEMI,MAYLOSEDATA3))/DEBUG/NOOPTIMIZE/LIST=[.
> OUT.DEBUG.OBJ.Objects]bytearrayobject/SHOW=ALL/DEFINE=("Py_BUILD_CORE",_USE_STD_STAT, _POSIX_EXIT, __STDC_FORMAT_MACROS,
> _LARGEFILE, _SOCKADDR_LEN, __SIGNED_INT_TIME_T, USE_ZLIB_CRC32, _OSF_SOURCE, HAVE_EXPAT_CONFIG_H, XML_POOR_ENTROPY, USE
> _PYEXPAT_CAPI, CONFIG_32, ANSI, SOABI="""cpython-310-alpha-openvms""", SHLIB_EXT=""".EXE""", ABIFLAGS="""""", MULTIARCH=
> """cpython-310-alpha-openvms""", PLATFORM="""OpenVMS""", USE_SSL,_DEBUG)/INCLUDE_DIRECTORY=([], [.Include], [.Include.in

If you want those include directories to work with relative paths in
#include directives having relatvie paths and Unix syntax, you'd
probably need to replace:

/INCLUDE=([])

with

/INCLUDE=("./")

> ternal], [.Modules.expat], [.Modules._decimal.libmpdec], [.Modules._multiprocessing], [.Modules._io], [.vms], oss$root:[
> include], dtr$library, SSL111$ROOT:[INCLUDE]) /OBJECT=[.OUT.DEBUG.OBJ.Objects]bytearrayobject.obc [.Objects]bytearrayobj
> ect.c
>
> #include "clinic/bytearrayobject.c.h"
> .^
> %CC-F-NOINCLFILEF, Cannot find file "clinic/bytearrayobject.c.h" specified in #include directive.
> at line number 75 in file USERS:[JHAMBY.Projects.vms-cpython.Objects]bytearrayobject.c;1
> %MMS-F-ABORT, For target [.OUT.DEBUG.OBJ.Objects]bytearrayobject.obc, CLI returned abort status: %X10B91264.
>
> No matter what I do, I can't figure out how to get it to locate the "clinic" subdirectory inside "[.Objects]bytearrayobject.c".

Do you have DECC$EFS_CHARSET defined in the environment? Nothing
involving Unix syntax and two dots in a filename is going to work on VMS
without that.

Re: C compiler snag

<275b7f80-6a80-44fe-b725-7e14718d4aa2n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=22426&group=comp.os.vms#22426

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:620a:4144:b0:6a0:11c5:a12e with SMTP id k4-20020a05620a414400b006a011c5a12emr979963qko.53.1651803985237;
Thu, 05 May 2022 19:26:25 -0700 (PDT)
X-Received: by 2002:a05:622a:1ba4:b0:2f3:9a42:3e36 with SMTP id
bp36-20020a05622a1ba400b002f39a423e36mr965386qtb.578.1651803985116; Thu, 05
May 2022 19:26:25 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Thu, 5 May 2022 19:26:24 -0700 (PDT)
In-Reply-To: <13f29181-4697-447f-9ea3-474ef174c667n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=96.230.211.194; posting-account=Ysq9BAoAAACGX1EcMMPkdNg4YcTg0TxG
NNTP-Posting-Host: 96.230.211.194
References: <31cfaa19-d31a-437d-ae72-c9e66b562351n@googlegroups.com>
<s82uek$kf3$1@dont-email.me> <97ab1e80-7d4e-4174-be3b-525e3814d0adn@googlegroups.com>
<s83lff$4sa$1@dont-email.me> <0f28d7d5-c01b-446d-a18b-a2d443967078n@googlegroups.com>
<13f29181-4697-447f-9ea3-474ef174c667n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <275b7f80-6a80-44fe-b725-7e14718d4aa2n@googlegroups.com>
Subject: Re: C compiler snag
From: dansabrs...@yahoo.com (abrsvc)
Injection-Date: Fri, 06 May 2022 02:26:25 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 36
 by: abrsvc - Fri, 6 May 2022 02:26 UTC

On Thursday, May 5, 2022 at 9:12:08 PM UTC-4, Steven Schweda wrote:
> > Resurrecting this thread: did anyone ever find a resolution to the
> > problem of the C compiler not being able to find headers when they're
> > referenced in quotes with UNIX-style paths? [...]
>
> Looks to me like a different problem.
>
> > [...] I can't figure out how to get it to locate the "clinic"
> > subdirectory [...]
>
> That's not the actual problem.
>
> Many "UNIX-style paths" work just fine. Simple paths with multiple
> dots also seem to work. _Your_ case fails:
>
> its $ type jh.c;
> #include "a.d.g"
> #include "sd/b.h"
> #include "sd/b.c.h"
>
> its $ cc /noobj jh.c
>
> #include "sd/b.c.h"
> .^
> %CC-F-NOINCLFILEF, Cannot find file "sd/b.c.h" specified in #include directive.
> at line number 3 in file ITS$DKA0:[SMS.itrc.hamby]jh.c;7
>
> The first two directives work. A simple explanation of why the third
> one would fail did not leap to my mind.

My first guess of the "problem" is perhaps the part of the specification ".c". Is this being interpreted as a file extension for a source file rather than parsed as part of the entire file spec? Try changing the .c to .x and try again. If the new extension works, I would suspect the .c

Dan

Re: C compiler snag

<260c1e05-6e34-414c-800b-0bcc7fa6f64an@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=22428&group=comp.os.vms#22428

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:622a:2c2:b0:2f3:bb45:e8c with SMTP id a2-20020a05622a02c200b002f3bb450e8cmr1118566qtx.575.1651810927528;
Thu, 05 May 2022 21:22:07 -0700 (PDT)
X-Received: by 2002:a05:620a:450e:b0:6a0:268e:e384 with SMTP id
t14-20020a05620a450e00b006a0268ee384mr1111479qkp.245.1651810927315; Thu, 05
May 2022 21:22:07 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Thu, 5 May 2022 21:22:06 -0700 (PDT)
In-Reply-To: <275b7f80-6a80-44fe-b725-7e14718d4aa2n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=76.76.60.100; posting-account=OjKUgAkAAAAXAqdVEKd-Gc8RltEUx3Xq
NNTP-Posting-Host: 76.76.60.100
References: <31cfaa19-d31a-437d-ae72-c9e66b562351n@googlegroups.com>
<s82uek$kf3$1@dont-email.me> <97ab1e80-7d4e-4174-be3b-525e3814d0adn@googlegroups.com>
<s83lff$4sa$1@dont-email.me> <0f28d7d5-c01b-446d-a18b-a2d443967078n@googlegroups.com>
<13f29181-4697-447f-9ea3-474ef174c667n@googlegroups.com> <275b7f80-6a80-44fe-b725-7e14718d4aa2n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <260c1e05-6e34-414c-800b-0bcc7fa6f64an@googlegroups.com>
Subject: Re: C compiler snag
From: sms.anti...@gmail.com (Steven Schweda)
Injection-Date: Fri, 06 May 2022 04:22:07 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 42
 by: Steven Schweda - Fri, 6 May 2022 04:22 UTC

> [...] you'd probably need to replace:
>
> /INCLUDE=([])
>
> with
>
> /INCLUDE=("./")

Did you ever try that?

> [...] Nothing involving Unix syntax and two dots in a filename is
> going to work on VMS without that.

Do you mean as in the demonstration above, where the following worked
properly?:

#include "a.d.g"

> My first guess [...]

Guess again?

its $ type jh2.c
#include "a.d.g"
#include "sd/b.g"
#include "sd/a.d.g"

its $ cc /noobj jh2.c

#include "sd/a.d.g"
..^
%CC-F-NOINCLFILEF, Cannot find file "sd/a.d.g" specified in #include directive.
at line number 3 in file ITS$DKA0:[SMS.itrc.hamby]jh2.c;2

its $ dire [.sd]

Directory ITS$DKA0:[SMS.itrc.hamby.sd]

a^.d.g;1 b^.c.h;1 b.g;1 b.h;1

_Not_ guessing in a case like this is almost as easy as guessing.

Re: C compiler snag

<ace6fdc5-ba20-46d9-a581-10b0021d7aa8n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=22430&group=comp.os.vms#22430

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:620a:31a2:b0:6a0:1d82:8907 with SMTP id bi34-20020a05620a31a200b006a01d828907mr1886524qkb.408.1651835905070;
Fri, 06 May 2022 04:18:25 -0700 (PDT)
X-Received: by 2002:ac8:5905:0:b0:2f3:9fdd:22f1 with SMTP id
5-20020ac85905000000b002f39fdd22f1mr2127373qty.191.1651835904911; Fri, 06 May
2022 04:18:24 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Fri, 6 May 2022 04:18:24 -0700 (PDT)
In-Reply-To: <275b7f80-6a80-44fe-b725-7e14718d4aa2n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=74.140.8.188; posting-account=CO-_tAoAAACjjs2KLAw3xVKCy6Z_J3VK
NNTP-Posting-Host: 74.140.8.188
References: <31cfaa19-d31a-437d-ae72-c9e66b562351n@googlegroups.com>
<s82uek$kf3$1@dont-email.me> <97ab1e80-7d4e-4174-be3b-525e3814d0adn@googlegroups.com>
<s83lff$4sa$1@dont-email.me> <0f28d7d5-c01b-446d-a18b-a2d443967078n@googlegroups.com>
<13f29181-4697-447f-9ea3-474ef174c667n@googlegroups.com> <275b7f80-6a80-44fe-b725-7e14718d4aa2n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ace6fdc5-ba20-46d9-a581-10b0021d7aa8n@googlegroups.com>
Subject: Re: C compiler snag
From: osuvma...@gmail.com (David Jones)
Injection-Date: Fri, 06 May 2022 11:18:25 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: David Jones - Fri, 6 May 2022 11:18 UTC

On Thursday, May 5, 2022 at 10:26:26 PM UTC-4, abrsvc wrote:
> My first guess of the "problem" is perhaps the part of the specification ".c". Is this being interpreted as a file extension for a source file rather than parsed as part of the entire file spec? Try changing the .c to .x and try again. If the new extension works, I would suspect the .c
>
> Dan

It's not the ".c", it's the general quirkiness how the CRTL (which the compiler uses)
converts unix-style paths to VMS specifications. Trying defining the logical name
DECC$POSIX_COMPLIANT_PATHS to the value 2, which makes it work on my
system.

Pages:12
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor