HP3000-L Archives

April 2001, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Joe Weisman <[log in to unmask]>
Reply To:
Joe Weisman <[log in to unmask]>
Date:
Wed, 25 Apr 2001 06:15:59 -0700
Content-Type:
multipart/mixed
Parts/Attachments:
text/plain (1196 bytes) , text/plain (138 bytes) , text/plain (141 bytes)
I am running APACHE web server, which starts a cgi program that is written
in 'c', straight MPE.  Currently I am using the HP 'c' compiler.  I
understand that most of the porting people use the gnu compiler and I may
switch to that, assuming that there is a straightforward way to call MPE
intrinsics but that is later.  What I am trying to do is pick up some of
the environment variables that are set by APACHE, for example REQUEST_METHOD.

Mark Bixby says that if I just use LINKEDIT to link my program I will be
linking in the MPE library and that the getenv() in that library can't see
environment variables in POSIX space, so what I need is the getenv() which
is in the POSIX library.  So, I can link in /lib/libc.a if I put "posix;"
in the LINKEDIT command:

That linked and executed but doesn't get the environment variables.  Mark
said I could link in LIBCPX.LIB.SYS (and not need the POSIX) but I don't
have that library on my system and it doesn't seem to be mentioned in
docs.hp.com.

If I just run a straight shell script as the cgi which just echos the
environment variables, it works fine so I can assume that they are there if
I can only find them from my 'c' program.

So, here I am, looking for help....






run linkedit.pub.sys; &    info="link from=tx.obj; posix; &    cap=IA,BA,PH,MR;to=/JOE77/CGO/tx; &    rl=rl.pub, /lib/libc.a, libcinit.lib.sys"
Be well, and do good things. - Joe Weisman   Computers for Marketing Corporation   541-745-5265 (voice)   541-745-5266 (fax)   [log in to unmask] (e-mail)

ATOM RSS1 RSS2