Error compiling libs

mod_harbour is an Apache module that allows to run PRGs directly on the web !!!

Error compiling libs

Postby giuliano » Tue Oct 18, 2022 3:14 pm

Hello ,
I've downloaded from GitHub mod_harbour ( with all sources ) and compiled it ( lib and module ) under Linux ( Ubuntu 20.04 ) .
It seems not working correctly when running a simple prg because apache.prg probably has an error in this code:

if Empty( GetEnv( "GATEWAY_INTERFACE" ) )
QOut( "Attention: This is modharbour CGI version and has to be executed" )
QOut( "from the server as a cgi-bin, i.e.:" )
QOut()
QOut( "http://server_address/cgi-bin/" + SubStr( hb_ArgV( 0 ), RAt( If( lWindows, "\", "/" ), hb_ArgV( 0 ) ) + 1 ) + ;
"?prg=test.prg")
QOut()
QOut( "(c) FiveTech Software 2012-2022" )
QOut( "www.fivetechsoft.com" )
QOut( "https://github.com/FiveTechSoft/mod_harbour" )
QOut()
QUIT
endif

If i comment these lines everything works perfectly .

Bye

Thanks in advance
User avatar
giuliano
 
Posts: 44
Joined: Mon Sep 25, 2006 8:38 am
Location: ITALY

Re: Error compiling libs

Postby Antonio Linares » Tue Oct 18, 2022 6:27 pm

Dear Giuliano,

That code is for mod_harbour CGI version only, so we need to find a way to use it just when it is working as a CGI
What error do you get ? Is QUIT always been called ?

We are going to find a way to fix it

many thanks for your feedback
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Error compiling libs

Postby giuliano » Wed Oct 19, 2022 6:04 am

Hi Antonio,
thanks for your quickly answer .
I confirm you that application always QUIT .

Bye
User avatar
giuliano
 
Posts: 44
Joined: Mon Sep 25, 2006 8:38 am
Location: ITALY


Return to mod_harbour

Who is online

Users browsing this forum: No registered users and 12 guests