HP3000-L Archives

August 1995, Week 1

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:
Bob Walker <[log in to unmask]>
Reply To:
Date:
Wed, 2 Aug 1995 12:08:26 PST8PDT
Content-Type:
text/plain
Parts/Attachments:
text/plain (54 lines)
I FTP'd  MPE httpd_1.3 from opus and got it working in just a few
hours(most of that being lost in vi).
Good work and thanks to all who gathered up all the necessary files
and created an easy installation process.
 
Now that it's up, we want to provide info about our Registration
system on-line(Courses offered, which ones full etc...) and so I've
been exploring  the  cgi.
 
 I've been able run scripts from cgi-bin and incorporate them into a
web page, but haven't been able to execute a program.
 
I created a 'hello world'  'C' program from the CI and copied it to cgi-bin
directory. When invoked as a cgi program this gives a '500 Server Error'
 
This may be because stdout acts differently  for CI compiled
programs when run from the shell(and cgi relies on stdout).
ie   cgi-bin/hello > testfile   still outputs to screen
I even tried this with fprintf(stdout,...), same result.
 
This problem may be solved if I could compile the program from
within the shell, but not sure how to do it.
The Posix Developers' Kit(or MPE/iX Developers Kit or whatever it's called)
upgrade has been ordered and re-ordered....2 months now, still
haven't got it(old story, right).
 
Also tried to compile the examples in cgi-src with the following
results:
 
shell/iX> pwd
/WWW/WWW/httpd_1.3/cgi-src
shell/iX> make
c89 -c -g -D_MPEXL_SOURCE -D_SOCKET_SOURCE -D_POSIX_SOURCE query.c
c89 -c -g -D_MPEXL_SOURCE -D_SOCKET_SOURCE -D_POSIX_SOURCE util.c
c89 query.o util.o -o ../cgi-bin/query
CAN'T FIND LIBRARY c (LINKERR 1051)
LINK FAILED  (LINKERR 1116)
 
    linkedit.pub.sys "link;from=^/tmp/c89019000AB.aaa;to=./../cgi-bin/query;posi
x;share;cap=ph";parm=7
Program terminated in an error state. (CIERR 976)
c89: error:  link failed
make: Error code 1
 
Questions:
1) Am I right in assuming that a posix compiled program will work.
2) Any ideas what this link error is? Do I need the Posix Developers
Kit in order for this to work?
 
Thanks, Bob.
--=--=--
Bob Walker, Computer Centre  --  [log in to unmask]
Capilano College, North Vancouver, BC, CANADA.

ATOM RSS1 RSS2