1827894 Members
1752 Online
109969 Solutions
New Discussion

Building fastcgi

 
SOLVED
Go to solution
P R Stone_1
Advisor

Building fastcgi

I am try to build fastcgi on OpenVMS V8.2 and have the following error:
} dl_struct;
..........^
%CC-E-NOLINKAGE, In this declaration, "dl_struct" has no linkage and has a prior
declaration in this scope at line number 71 in file disk:[STONE_P.PO
RTING]DLFCN.H;1.
at line number 71 in file disk:[STONE_P.PORTING]DLFCN.H;1

I have built the Porting Library in my own directory and am using the following command to compile:

$ define CC$USER_PORTING disk:[STONE_P.PORTING]
$ cc/lis/show=all -
/define=(eapi,VMS) -
/assume=noheader_type_default -
/prefix_library_entries=all_entries -
/include=("CC$USER_PORTING/",disk:[STONE_P.DEVEL.APACHE.src.include], ,disk:[STONE_P.DEVEL.APACHE.src.os.openvms]) -
mod_fastcgi

Do I have a problem with vms_jackets.h ?
4 REPLIES 4
Wim Van den Wyngaert
Honored Contributor
Solution

Re: Building fastcgi

Search for vms_jack in
http://hrem157.nano.tudelft.nl/openvms/software2.html

May help.

Wim
Wim
Steven Schweda
Honored Contributor

Re: Building fastcgi

> Do I have a problem with vms_jackets.h ?

Hard to say. In _my_ vms_jackets.h, it says:

#if 0
/* These are now in DLFCN.H */
void GENERIC_DLCLOSE(dl_struct *in_handle);
char *GENERIC_DLERROR();
dl_struct *GENERIC_DLOPEN(char *fn,int mode);
void *GENERIC_DLSYM(dl_struct *in_handle,char *name);
#endif

so, I'd expect no trouble from there.

Where's the rest of the error message? We
know that the _prior_ declaration is in
[...PORTING]]DLFCN.H, but where's the one
about which it's complaining?

It may be just idle curiosity on my part, but
where did you get what you're building?
Steven Schweda
Honored Contributor

Re: Building fastcgi

> Where's the rest of the error message?

Duh. Ok. I can read. Honest.

DLFCN.H in the porting jive has no protection
against being included twice. Probably best
to add some code to it like that found in any
_real_ header file:

#ifndef __DLFCN_H
#define __DLFCN_H



#endif /* ndef __DLFCN_H */

Classy stuff, this.
P R Stone_1
Advisor

Re: Building fastcgi

Wim's link has given me the answer to the compile problem; namely,

For OpenVMS 8.2 and later : remove after installation the following files :
DLFCN.H, GRP.H, POLL.H, UTIME.H

There are a couple of features in the compile that aren't right but they should be fixable.

I got the code from www.fastcgi.com (Apache version) and the Porting Library from the HP site.

I am trying fastcgi as I have not written an Apache module before and it seems 'easier' as a first pass to use this and attach my existing code than to write my own module. Additionally it also allows separation of the server and application.

I will leave the thread open until I have a working system