FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index mod_harbour Error compiling libs
Posts: 50
Joined: Mon Sep 25, 2006 08:38 AM
Error compiling libs
Posted: Tue Oct 18, 2022 03: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

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Error compiling libs
Posted: Tue Oct 18, 2022 06: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
Posts: 50
Joined: Mon Sep 25, 2006 08:38 AM
Re: Error compiling libs
Posted: Wed Oct 19, 2022 06:04 AM

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

Bye

Continue the discussion