Re: Problem with aubit4gl + VDC
Daniel Kroker <[email protected]>
| Newsgroups | gmane.comp.lang.4gl.aubit.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Albino, thanks for this info. It sounds good. Am 22.01.2015 um 18:08 schrieb Albino Moreno: > Hi Daniel, > > I think I've solved it yet. The problem was on net adapters and > connections on virtualbox. > > When I said I was positive ping in both ways, it was not true : I can > do ping from the host to the client system virtualbox , but not from > the client to the host. > To solve it, all I've done is to create on virtualbox two network > connections: > a) The principal ( eth0 ) with bridge mode > b ) The secondary ( eth1 ) with NAT connection. > > Then I've created a rule in NAT connection port 3490 forwarding from > main host ( 172.16.1.14 ) to the same port as the client ip ( > 172.16.1.214 ). > > AFGLSERVER variable points to the address of the virtual interface of > the machine in virtualbox host : 192.168.56.1. > Access from VDC, I do it through ssh port 3490 and IP address pointed > on AFGLSERVER. > > Then VDC shows program execution on GUI mode. > > Sorry for my poor English. > > Regards, > Albino. > > 2015-01-22 9:31 GMT+01:00 Albino Moreno <[email protected] > <mailto:[email protected]>>: > > Connection via vdc is running on pts/1 tty: > > albino@albino-desktop:/var/log$ *ps -eaf |grep pts/1* > *albino 2023 1953 0 09:01 ? 00:00:00 sshd: albino@pts/1* > *albino 2024 2023 0 09:01 pts/1 00:00:00 -bash* > *albino 2045 2024 0 09:01 pts/1 00:00:00 > /home/albino/pruebas/run/kk.4ae* > albino 2199 1531 0 09:09 pts/0 00:00:00 grep --color=auto pts/1 > > PID=2045 > > Logfile (in windows): > [09:03 - 22.01.2015] - - - Begin log VDC messages > [09:03 - 22.01.2015] [Debug] - USING COMPRESSIONS LEVEL: "2" > [09:03 - 22.01.2015] [Debug] - Enabling compression... > [09:03 - 22.01.2015] [Debug] - method: "6" > [09:03 - 22.01.2015] [Debug] - rc: "0" > [09:03 - 22.01.2015] [Debug] - to it. > > Last login: Thu Jan 22 08:42:16 2015 from 172.16.1.14 > > > [09:03 - 22.01.2015] [Debug] - export AFGLPORT=58642 > $MYRUN/kk.4ae > > [09:03 - 22.01.2015] [Debug] - ]0;albino@albino-desktop: ~ > albino@albino-desktop:~$ export AFGLPORT=58642 > ]0;albino@albino-desktop: ~ albino@albino-desktop:~$ $MYRU > [09:03 - 22.01.2015] [Debug] - N/kk.4ae > > [09:03 - 22.01.2015] [Debug] - <ENVELOPE ID="1" *PID="2045"*> > <COMMANDS> > <PROGRAMSTARTUP PROGRAMNAME="/home/albino/pruebas/run/kk.4ae" ID="0"> > <ENV NAME="DBPATH" > VALUE=":/opt/aubit.1.2.36/aubit4glsrc/tools:/opt/aubit4gl/tools:/opt/aubit.1.2.36/aubit4glsrc/incl:/opt/aubit4gl/incl:."/> > export AFGLPORT=58642 > $MYRUN/kk.4ae > > [09:03 - 22.01.2015] [Debug] - <ENV NAME="DBDATE" VALUE="MDY4/"/> > <ENV NAME="DBMONEY" VALUE="#."/> > <ENV NAME="A4GL_NUMERIC" VALUE=""/> > <ENV NAME="DB_LOCALE" VALUE=""/> > <ENV NAME="LANG" VALUE="es_ES.UTF-8"/> > <ENV NAME="A4GL_VERSION" VALUE="1.2.36"/> > <ENV NAME="XML_VERSION" VALUE="1export AFGLPORT=58642 > $MYRUN/kk.4ae > > [09:03 - 22.01.2015] [Debug] - .4"/> > </PROGRAMSTARTUP> > </COMMANDS> > </ENVELOPE> > <ENVELOPE ID="1" PID="2045"> > <COMMANDS> > <CREATEWINDOW NAME="ventana" X="1" Y="1" W="74" H="25" > FORM_LINE="255" ERROR_LINE="255" PROMPT_LINE="255" MENU_LINE="255" > COMMENT_LINE="255" MESSAGE_LINE="255" BOexport AFGLPORT=58642 > $MYRUN/kk.4ae > > [09:03 - 22.01.2015] [Debug] - RDER="0" ATTRIBUTE="65535" STYLE="" > TEXT="" /> > <MENU CONTEXT="0" TITLE="Menu" COMMENT="" STYLE="" IMAGE=""> > <MENUCOMMANDS> > <MENUCOMMAND CONTEXT="0" KEYS="" ID="1" TEXT="Ver cuantos" > DESCRIPTION="" HELPNO="0"/> > <MENUCOMMAND CONTEXT="0" KEYS="" ID="2" TEexport AFGLPORT=58642 > $MYRUN/kk.4ae > > [09:03 - 22.01.2015] [Debug] - XT="Consulta" DESCRIPTION="" > HELPNO="0"/> > <MENUCOMMAND CONTEXT="0" KEYS="" ID="3" TEXT="Terminar" > DESCRIPTION="" HELPNO="0"/> > <MENUACTION CONTEXT="0" ID="4" ACTION="fgl_exit_menu" > CMD_NO_TIMEOUT="3" /> > </MENUCOMMANDS> > </MENU> > <WAITFOREVENT CONTEXT="0"export AFGLPORT=58642 > $MYRUN/kk.4ae > > [09:03 - 22.01.2015] [Debug] - CACHED="0"/> > </COMMANDS> > </ENVELOPE> > > Regards, > > > 2015-01-22 8:49 GMT+01:00 Albino Moreno <[email protected] > <mailto:[email protected]>>: > > Hi Daniel, > > AFGLSERVER ip address is: 172.16.1.14 (windows machine with > VDC installation). > UBUNTU IP ADDRESS: 172.16.1.214 > > Both can ping with positive results to the other side. I can't > see $SSH_CLIENT value for this mode of connection (vdc direct > execution, including logs). ¿there is any aubit log file on > ubuntu that i could see for > search this values? > > I run too a ssh connection with putty and run kk.4ae and > program runs and shows at screen xml code but doesn't show > anything via vdc. > $SSH_CLIENT=172.16.1.14 (in this case) > > Regards, > Albino. > > > > 2015-01-21 21:07 GMT+01:00 Daniel Kroker <[email protected] > <mailto:[email protected]>>: > > Hi, > > perhabs your AFGLSERVER adress is wrong. Can you connect > to your ubuntu maschine and post the output from "echo > $SSH_CLIENT" ? > Am 21.01.2015 um 18:43 schrieb Albino Moreno: >> Only thing I haven't said its that I've installed Ubuntu >> 10.04 into virtualbox machine. But it compiles well and >> executes well on HL_TUI and GTK... >> >> Firewall is off on w7. >> >> I woult try if vdc works via proxy but I don't know how >> to config it on ubuntu (system vars, etc.) and syntax on >> windows vdc params.. >> >> Regards, >> Albino. >> >> 2015-01-21 18:00 GMT+01:00 Albino Moreno >> <[email protected] <mailto:[email protected]>>: >> >> Hi, >> >> Theres is no activity there... >> >> Regards. >> >> 2015-01-21 17:35 GMT+01:00 Daniel Kroker >> <[email protected] <mailto:[email protected]>>: >> >> Hi, >> >> Can you start the VDC without the -d Flag and in >> the VDC you can find in the menu "Toggle Debug". >> Can you see some activity in there? >> >> >> Am 21.01.2015 um 17:31 schrieb Albino Moreno: >>> Hi Daniel, >>> >>> Thanks for your quick response. >>> >>> I can't see any window (main and prueba) in VDC >>> mode, but yes on HL_TUI or HL_GTK mode. >>> >>> Firewall is disconnected and DOS variables are >>> set like says at manual. >>> >>> Regards, >>> Albino. >>> >>> 2015-01-21 16:40 GMT+01:00 Daniel Kroker >>> <[email protected] <mailto:[email protected]>>: >>> >>> Hi, >>> >>> can you see the "main window" (ventana) or >>> it dosn't show the window (prueba) if you >>> clicked on Ver cuantos ? >>> >>> OPEN WINDOW ventana with 25 rows, 74 columns >>> MENU "Menu" >>> COMMAND "Ver cuantos" >>> call busca_cuantos() >>> current window is ventana >>> COMMAND "Consulta" >>> CONTINUE MENU >>> COMMAND "Terminar" >>> EXIT PROGRAM >>> END MENU >>> >>> If i run your code i can see the window with >>> the menu. >>> >>> >>> Am 21.01.2015 um 15:35 schrieb Albino Moreno: >>>> Hi all. >>>> >>>> First , I want to introduce myself in >>>> >>>> this email list. >>>> I'm from Valencia (SPAIN) and >>>> I've been programming in I4GL for over 20 >>>> years. >>>> >>>> I have begun to test aubit4gl + mysql + vdc >>>> installed as follows : >>>> System Ubuntu Linux 10.04 >>>> Aubit4gl 1.2.36 >>>> mysql 5 >>>> >>>> *.bashrc content:* >>>> >>>> export LD_LIBRARY_PATH=/usr/lib:/usr/local/lib >>>> AFGLSERVER=172.16.1.14 >>>> MYRUN=/home/albino/pruebas/run >>>> >>>> A4GL_SQLUID=albino >>>> A4GL_SQLPWD= >>>> password >>>> >>>> AUBITDIR=/opt/aubit.1.2.36/aubit4glsrc >>>> PATH=$PATH:$AUBITDIR/bin >>>> >>>> LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/share:/var/lib:/usr/lib:/lib:/lib/esql:$AUBITDIR/lib >>>> A4GL_UI=XML >>>> A4GL_SQLTYPE=mysql >>>> A4GL_LEXTYPE=C >>>> A4GL_LEXDIALECT=INFORMIX >>>> COMPUTERNAME=$SSH_CONNECTION >>>> A4GL_ALLOWDYNAMIC=Y >>>> EXTENDED_GRAPHICS=Y >>>> >>>> */etc/profile content:* >>>> AUBITDIR=/opt/aubit.1.2.36/aubit4glsrc >>>> PATH=$PATH:$AUBITDIR/bin >>>> LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$AUBITDIR/lib >>>> A4GL_UI=XML >>>> A4GL_SQLTYPE=mysql >>>> A4GL_LEXTYPE=C >>>> A4GL_LEXDIALECT=INFORMIX >>>> COMPUTERNAME=$SSH_CONNECTION >>>> A4GL_ALLOWDYNAMIC=Y >>>> EXTENDED_GRAPHICS=Y >>>> A4GL_PROXYPASSWD=password >>>> PROXYUSER=albino >>>> >>>> *$AUBITDIR/etc/aubitrc:* >>>> >>>> #variable names are limited to 10 characters! >>>> >>>> ## >>>> =================================================================== >>>> ## Paths >>>> ## >>>> =================================================================== >>>> >>>> ############# >>>> #this internal variable points to default >>>> location of Aubit config files >>>> #Default: /etc/opt/aubit4gl You should not >>>> need to change this. >>>> #AUBITETC=/etc/opt/aubit4gl >>>> #WARNING - do not hard-code - use >>>> /etc/opt/aubit4gl instead!! >>>> #AUBITETC=/etc/opt/aubit4gl >>>> AUBITETC=/opt/aubit4gl.1.2.36/aubit4glsrc/etc >>>> >>>> ############ >>>> #Defines location where you installed Aubit4gl: >>>> #Default for source >>>> distribution:/opt/aubit/aubit4glsrc >>>> #Default for binary distribution:/opt/aubit4gl >>>> #Usually set using --prefix=/path to >>>> "configure" script >>>> #Must NOT be enclosed in quotes! >>>> #NOTE: 'make install' will automatically >>>> change this setting when >>>> #installing 'aubitrc' outside of Aubit >>>> source code tree >>>> AUBITDIR=/opt/aubit.1.2.36/aubit4glsrc >>>> #Used by automated tests script (run_tests) >>>> to find source code as needed >>>> AUBITDIR_SRC=/opt/aubit.1.2.36/aubit4glsrc >>>> >>>> ############ >>>> #Full path to CINT C-code interpreter, if >>>> installed, othewise "no" >>>> #used by 4glc compiler to run C compiled >>>> code after compilation. >>>> A4GL_CINT="no" >>>> >>>> ############ >>>> #DBPATH variable containls list of >>>> directory(es) that will be searched for objects >>>> #like compiled form, help and menu files, >>>> and SQLite databases. Use coloumn (:) >>>> #as a delimiter between paths you want >>>> searched, (;) on Windows. >>>> #Default: tools/ in Aubit source code root >>>> directory and tools/ in Aubit binary >>>> #installation directory >>>> #As oposed to most Aubit settings that are >>>> exclusive and order of there surce >>>> #(environment, aubitrc, built-in resources) >>>> decides which one will prevail, >>>> #DBPATH and A4GL_DBPATH are cumulated from >>>> both variables, and added one to >>>> #another in order depending on there >>>> source. So if you have path 1 in >>>> #environment variable A4GL_DBPATH path 2 in >>>> environment variable DBPATH, path 3 >>>> #in A4GL_DBPATH in aubitrc, path 4 in >>>> DBPATH in aubitrc, cumulated value will >>>> #look like this: 1:2:3:4. Search for the >>>> file in DBPATH will then be performed >>>> #from left to right, and first path found >>>> to contain file looked for will be used. >>>> #NOTE: DBPATH to xxx/incl is for adbaccess >>>> form files >>>> #FIXME: currently MUST NOT be quoted - we >>>> will have to allow this >>>> #since paths can include spaces >>>> #A4GL_DBPATH=/opt/aubit.1.2.36/aubit4glsrc/tools:/opt/aubit4gl/tools:/opt/aubit.1.2.36/aubit4glsrc/incl:/opt/aubit4gl/aubit4gl/incl >>>> A4GL_DBPATH=/opt/aubit.1.2.36/aubit4glsrc/tools:/opt/aubit4gl/tools:/opt/aubit.1.2.36/aubit4glsrc/incl:/opt/aubit4gl/incl:/opt/VDC >>>> >>>> ############ >>>> #CONFIG FILE BASED CONVERSIONS >>>> #convert_sql() now uses configuration >>>> files. These are by default >>>> #located in >>>> /opt/aubit.1.2.36/aubit4glsrc/etc/convertsql/, >>>> but that can be changed >>>> #with A4GL_SQLCNVPATH. >>>> A4GL_SQLCNVPATH=/opt/aubit.1.2.36/aubit4glsrc/etc/convertsql >>>> >>>> ## >>>> =================================================================== >>>> ## Loadable modules (plug-ins) / library >>>> configurations >>>> ## >>>> =================================================================== >>>> >>>> ############ >>>> #Name of default SQL library plug-in to use. >>>> #When used: run-time and compile-time >>>> #Options: (nosql) >>>> # <ODBC MANAGERS> iodbc unixodbc odbc32 >>>> (Windows only) >>>> # <DIRECT ODBC> ifxodbc pgodbc sapodbc >>>> sqliteodbc >>>> # <NATIVE> esql esqpPG esqlSAP esqlQ >>>> sqlite sqliteS pg >>>> # <SPECIAL> FILESCHEMA >>>> #FILESCHEMA is to be used for compiling >>>> programs where either the database >>>> #doesn't exist yet - or you can't get >>>> immediate access to it. >>>> #This takes the 'database' as a filename >>>> (with a .schema extension) and uses >>>> #that to collect the data used by compiler(s) >>>> #Warning: this setting is ignored at >>>> run-rime when A4GL_LEXTYPE is set to "EC". >>>> #At compile time, it is used by compilers >>>> segardless of A4GL_LEXTYPE setting >>>> A4GL_SQLTYPE=mysql >>>> A4GL_SQLTYPE_DETECTED="nosql mysql" >>>> A4GL_SQLTYPE_COMPILE_ONLY_DETECTED="mysql" >>>> >>>> ############ >>>> #Default output language driver for 4gl >>>> compiler: >>>> #When used: compile-time only >>>> #Options: (C), PERL, EC, CS >>>> #Note: EC (Embedded SQL C) can be Informix >>>> ESQL/C, SAP DB pre-compiler, Querix >>>> #esqlc or PostgreSQL ecpg. >>>> #using EC will limit Aubit DB connectivity >>>> at run-time to that of used EC compiler, >>>> ignoring >>>> #setting of A4GL_SQLTYPE >>>> #Note: CS is C# >>>> A4GL_LEXTYPE=C >>>> A4GL_LEXTYPE_DETECTED=" CS C" >>>> >>>> ############ >>>> #When A4GL_LEXTYPE=EC, specify type of EC >>>> compiler to be used. Ignored if >>>> #A4GL_LEXTYPE is not set to EC >>>> #When used: compile-time only >>>> #Options: (INFORMIX), POSTGRES, SAPDB, QUERIX >>>> A4GL_LEXDIALECT= >>>> A4GL_LEXDIALECT_DETECTED="" >>>> # for postgresql 8.x.x, uncomment >>>> A4GL_TARGETDIALECT line below >>>> # to use >>>> /opt/aubit4gl/etc/convertsql/INFORMIX-POSTGRES8.cnv >>>> #A4GL_TARGETDIALECT=POSTGRES8 >>>> >>>> ############ >>>> #List of db plugins valid for use at >>>> compile-time with particular EC dialect output: >>>> A4GL_SQLTYPE_EC_VALID_INFORMIX=" nosql" >>>> A4GL_SQLTYPE_EC_VALID_SAPDB=" nosql" >>>> A4GL_SQLTYPE_EC_VALID_INGRES=" nosql" >>>> A4GL_SQLTYPE_EC_VALID_POSTGRES=" nosql" >>>> >>>> ############ >>>> #Determine default driver for Extended >>>> Reporting >>>> #When used: run-time only >>>> #Options: PDF, (NOPDF) >>>> A4GL_PDFTYPE=PDF >>>> A4GL_PDFTYPE_DETECTED="NOPDF PDF" >>>> >>>> ############ >>>> #Determine default RPC (Remote Procedure >>>> Call) driver to load >>>> #When used: run-time only >>>> #Options: SUNRPC, (NORPC), XMLRPC >>>> #Note: XMLRPC is client only at the moment >>>> A4GL_RPCTYPE=XDR >>>> A4GL_RPCTYPE_DETECTED="NORPC XDR" >>>> >>>> ############# >>>> #Defines default UI (user intertface) >>>> driver plug-in to load >>>> #When used: run-time only >>>> #Options: (CONSOLE) [no deps.], TUI >>>> [curses], GTK [GTK+]. >>>> A4GL_UI=XML >>>> A4GL_UI_DETECTED="CONSOLE HL_GTK TUI HL_TUI >>>> HL_TUIN" >>>> >>>> ############ >>>> #Default forms driver to be loaded >>>> #When used: run-time only >>>> #Options: (GENERIC), NOFORM, XDR >>>> #Generic implies that format specified with >>>> A4GL_PACKER will be used >>>> A4GL_FORMTYPE=GENERIC >>>> A4GL_FORMTYPE_DETECTED="NOFORM XDR GENERIC" >>>> >>>> ############ >>>> #Default menu driver to be loaded: >>>> #When used: run-time only >>>> #Options: (NOMENU), XDR, GENERIC >>>> #Generic implies that format specified with >>>> A4GL_PACKER will be used >>>> A4GL_MENUTYPE=@A4GL_MENUTYPE@ >>>> A4GL_MENUTYPE_DETECTED="@A4GL_MENUTYPE_DETECTED@" >>>> >>>> ############ >>>> #Default help message driver to be loaded: >>>> #When used: run-time only >>>> #Options: (NATIVE), XML (??? XML? chech this!) >>>> A4GL_MSGTYPE=NATIVE >>>> A4GL_MSGTYPE_DETECTED="NATIVE" >>>> >>>> ############ >>>> #External data types support to be loaded >>>> #Currently only MPZ (large integers) are >>>> supported >>>> #FIME: not sure if this is needed - looks >>>> like this is loaded on request: >>>> #see example testmpz.4gl into the >>>> tools/test directory. >>>> EXDTYPE= >>>> EXDTYPE_DETECTED="" >>>> >>>> ############ >>>> #You can select which packer to use by >>>> setting the variable "A4GL_PACKER" >>>> # 1) (PACKED) - default >>>> # This is very similar to XDR in that data >>>> is written in a hopefully portable >>>> # way (optionally non-portable if the >>>> required functions aren't available). >>>> # This will probably give the smalled >>>> output files >>>> # 2) XDR >>>> # This is the same as doing it the old way >>>> # 3) XML >>>> # This stores and reads the data in an XML >>>> file. The reading is very limited >>>> # and can basically only read the XML files >>>> that it generates - IT IS NOT A >>>> # FULL BLOWN XML PARSER. It uses some odd >>>> constructs and isn't ideal - but >>>> # you'll get the idea when you see the >>>> output. Size of created files is >>>> # much larger then PACKED or XDR >>>> # 4) PERL >>>> # This generates a data structure which can >>>> be used inside a perl program - its >>>> # pretty complicated stuff though using >>>> hashes for the data representation. >>>> # What you do with it after you've >>>> generated it is up to you, because this is >>>> # an output only library (ie it can't read >>>> back what its written). >>>> A4GL_PACKER=PACKED >>>> A4GL_PACKER_DETECTED=" XML XDR GZPACKED PACKED" >>>> >>>> ############ >>>> #Procesing of reserved word is >>>> experimental. Set this to YES, if you want to >>>> #disable this functionality. When set to >>>> NO, compiler will try to process >>>> #most reserved words, instead of reporting >>>> the error. >>>> A4GL_RESERVEWORDS=NO >>>> >>>> ############ >>>> #Conversion of SQL statements in 4GL code, >>>> to the SQL dialect of target RDBMS >>>> #Conversion is only done if you set >>>> A4GL_SQLCONVERT=YES and only if >>>> #the dialect used by the program differs >>>> from that used by the DBMS >>>> #interface. >>>> A4GL_SQLCONVERT=YES >>>> >>>> ############ >>>> #Declares the SQL dialect of SQL code in >>>> 4GL source code. >>>> #an 4GL directive to change the default SQL >>>> dialect at runtime is: >>>> # SET SQL DIALECT TO ORACLE >>>> #by default the system assumes the 4GL >>>> application is using Informix SQL >>>> #syntax, but this can be changed by >>>> setting, for example: >>>> #A4GL_SQLDIALECT=ORACLE >>>> A4GL_SQLDIALECT=INFORMIX >>>> >>>> ############ >>>> #auto initializing module and function >>>> local variables. This setting is used at >>>> #compile-time only. Numeric variables are >>>> initializet to 0, everything else to NULL >>>> #To turn on, set to "Y" (??? or is that YES >>>> ???) >>>> A4GL_AUTONULL=Y >>>> >>>> ############ >>>> #ANSI SQL 92 checking mode: >>>> #When ANSI_WARN is set to Yes compiler will >>>> display a warning if it encounters >>>> #static SQL statement not confitming to >>>> ANSI SQL 92 specification >>>> #Whn ANSI_ERROR is set to Yes, compiler >>>> will abort id non ANSI SQL 92 statemt >>>> #is found in source code. >>>> #If neither of these is set no checking is >>>> performed. >>>> A4GL_ANSI_WARN=Yes >>>> #A4GL_ANSI_ERROR=Yes >>>> >>>> ############ >>>> #Aubit default extensions for compiled >>>> resources (forms,menus,help) and objects >>>> #as used by Amake _AND_ Aubit compiler (see >>>> resources.c) >>>> #Amake does NOT read this file (?-check) >>>> #note that composite variables A4GL_FRM_EXT >>>> and A4GL_MNU_EXT exist only in/for Amake >>>> #defaults: >>>> #A4GL_MNU_BASE_EXT=.mnu >>>> #A4GL_HLP_EXT=.hlp >>>> #A4GL_FRM_BASE_EXT=.afr >>>> #A4GL_XML_EXT=.xml >>>> #A4GL_PACKED_EXT=.dat >>>> #A4GL_OBJ_EXT=.ao >>>> #A4GL_LIB_EXT=.aox >>>> #A4GL_SOB_EXT=.aso >>>> #A4GL_SOL_EXT=.asx >>>> #A4GL_EXE_EXT=.4ae >>>> # >>>> #To emulate Informix p-code extensions (for >>>> instance, to re-use legacy make >>>> #files) you would use this settings; note >>>> that doing this is not recomended >>>> #and that created files will still be in >>>> Aubit format, not Informix one: >>>> # >>>> #A4GL_MNU_EXT=<no equivalent> >>>> #A4GL_HLP_EXT=.iem >>>> #A4GL_FRM_BASE_EXT=.frm >>>> #A4GL_XML_EXT="" >>>> #A4GL_PACKED_EXT="" >>>> #A4GL_OBJ_EXT=.4go >>>> #A4GL_LIB_EXT=<no (standard) equivalent> >>>> #A4GL_SOB_EXT=<no equivalent> >>>> #A4GL_SOL_EXT=<no equivalent> >>>> #A4GL_EXE_EXT=.4gi >>>> >>>> ############# >>>> #If set to Y allows forms to contain the >>>> additional graphics characters >>>> #<,>,^,v, and + to be used for tee's and an >>>> intersection. >>>> #So the following (view with fixed font!): >>>> #\gp--v--q\g >>>> #\g| | |\g >>>> #\g>--+--<\g >>>> #\g| | |\g >>>> #\gb--^--d\g >>>> #Will draw a box with an intersecting >>>> horizonal and vertical line. >>>> #Note - you'll need to set this before you >>>> compile the form as >>>> #well as when you run program that will use >>>> form file compiled this way >>>> #A4GL_EXTENDED_GRAPHICS=Y >>>> >>>> ############ >>>> #Aubit used to honouring the size y by x in >>>> the form, this has been removed. >>>> #If you require to specify the size, it can >>>> still be used by setting >>>> #A4GL_USE_FORM_SIZE=Y (using this is an >>>> Aubit extension - and not default >>>> #informix behaviour!) >>>> #A4GL_USE_FORM_SIZE=Y >>>> >>>> ############ >>>> #When you encouter programs that chrash, >>>> use this for debugging - it will >>>> #create file 'debug.out' that can be very >>>> usefull when you don't get core >>>> #dump, so you don't have file 'core' to run >>>> 'gdb' on. WARNING: do not set >>>> #this under normal circumstanced - all >>>> programs will create debug.out file >>>> #when they run, files can be VERY large, >>>> and they will slow down progrms >>>> #execution considerably. This setting >>>> applies to all Aubit compiler >>>> #executables (includign all compilers) and >>>> to all 4gl programs compiled >>>> #with Aubit compiler. >>>> #FIXME: we should have separate settings >>>> for compilers and compiled programs, >>>> #like A4GL_DEBUG_COMP and A4GL_DEBUG_PRG >>>> #FIXME: add note about priority numbers >>>> #Default=<not set> >>>> #A4GL_DEBUG=ALL >>>> >>>> ############ >>>> #FIXME: is not odbc.ini supposed to have >>>> default login name and password? >>>> #Defines username and password for >>>> accessing database server via ODBC: >>>> #needed for DATABASE and DEFINE LIKE >>>> statements at compile time, and >>>> #procedural DATABASE statement ar run-time. >>>> You can use OPEN SESSION and >>>> #supply login information at run-time, but >>>> NOT at compile time: >>>> #Default=<no default value> >>>> #WARNING!! BE CAREFULL NOT TO HAVE A TAB OR >>>> OTHER SPECIAL CHARACTRS >>>> #IN THE VALUE OF THIS VARIABLES !!!!!!!!!! >>>> #SQLUID=mydbusername >>>> #SQLPWD=mydbpassword >>>> A4GL_SQLUID=albino >>>> A4GL_SQLPWD=password >>>> >>>> >>>> #################### >>>> #temp fix for a known 'thing' with xterm >>>> and curses - it uses an alternate >>>> #screen. I'll leave this as defaulting to >>>> "N" for now in case it breaks something >>>> #else >>>> A4GL_NO_ALT_SCR=Y >>>> >>>> #################### >>>> #All updates will be transformed to Ansi >>>> syntax. Applies only to EC output >>>> #A4GL_FIXUPDATE=Y >>>> #################### >>>> # The keyword 'AS' is included when using >>>> an alias on a select column >>>> #A4GL_USE_ALIAS_AS=Y >>>> #################### >>>> # Any CREATE TEMP TABLE .. WITH NO LOG will >>>> have the 'WITH NO LOG' silently removed >>>> #A4GL_OMIT_NO_LOG=Y >>>> #################### >>>> # No indicator variables >>>> # A4GL_USE_INDICATOR=N >>>> #################### >>>> #################### >>>> # When needed use the ecpg UNLOAD statement >>>> rather than the aubit code >>>> #IFX esql needs N, but apparently PG ecpg >>>> need Y >>>> #A4GL_ESQL_UNLOAD=N >>>> >>>> ## >>>> =================================================================== >>>> ## Run-time settings for Aubit compiled >>>> programs >>>> ## >>>> =================================================================== >>>> >>>> #Following settings apply only when runing >>>> 4GL programs compiled using >>>> #Aubit 4GL compiler. Note that some other >>>> settings outside this group >>>> #also apply only at run-time >>>> >>>> ############ >>>> #Application windows background colour >>>> #xxxx is a HEX code of a colour attribute - >>>> eg 1400 (for 0x1400) >>>> #for blue and reverse. Applies to all >>>> windows created when no attribute is >>>> #specified (including the main screen) >>>> #A4GL_BACKGROUND=xxxx >>>> >>>> ############ >>>> #Terminal size >>>> #This should make programs work with a >>>> normal (not xterm) terminal session. >>>> #A4GL_COLUMNS=80 >>>> #A4GL_LINES=24 >>>> >>>> ############# >>>> #if set to Y then +,|,- will be used to >>>> draw graphics characters instead of >>>> #proper borders (if available) >>>> #A4GL_SIMPLE_GRAPHICS=Y >>>> >>>> ############ >>>> #Mechanism for doing automated testing >>>> #A4GL_KEYFILE=(some filename in DBPATH) >>>> #A4GL_KEYDELAY=(time in usec 1000000 = 1 >>>> second, defaults to 0.1s) >>>> #A4GL_KEYFILE=/my/key/file.key >>>> #A4GL_KEYDELAY=1000 >>>> >>>> ############ >>>> #Adds originating line number of each >>>> created target language statemtn >>>> #coresponding to 4gl source code, to >>>> created target language source code, >>>> #which is usefull for debugging. Like: >>>> # #line 2 "../tools/test/test_build.4gl" >>>> #INCLINES=yes >>>> >>>> >>>> ## >>>> =================================================================== >>>> ## Settings used only by 4glpc and/or other >>>> scripts >>>> ## >>>> =================================================================== >>>> ################## >>>> #defines command executed as C compiler for >>>> your system, when used by 4glpc: >>>> #Affects: 4glpc >>>> #Default: CC="gcc -O" >>>> CC="gcc" >>>> >>>> ################## >>>> #Full path to 'Awk' executable (awk,gawk,...) >>>> AWK="gawk" >>>> >>>> ################## >>>> #Full path to GTK+ includes (header) files, >>>> used when ...? >>>> #FIXME: why do we need this? >>>> #Affects: 4glc/4glpc only >>>> GTK_INC_PATH="-I/usr/include/gtk-2.0 >>>> -I/usr/lib/gtk-2.0/include >>>> -I/usr/include/atk-1.0 -I/usr/include/cairo >>>> -I/usr/include/pango-1.0 >>>> -I/usr/include/gio-unix-2.0/ >>>> -I/usr/include/glib-2.0 >>>> -I/usr/lib/glib-2.0/include >>>> -I/usr/include/pixman-1 >>>> -I/usr/include/freetype2 >>>> -I/usr/include/directfb >>>> -I/usr/include/libpng12" >>>> >>>> ################## >>>> #full path to SAP-DB ESQL/C pre-compiler >>>> (does not have to be in the path) >>>> #Affects: 4glc only >>>> A4GL_SAPDB_ESQLC="no" >>>> >>>> ################# >>>> #Depending on installed 4gl compilers, >>>> amake can compile same definition >>>> #of the 4gl programs with different 4gl >>>> compilers. Here you can specify >>>> #which make rules will be included by default: >>>> #Affects: amake only >>>> #Default: <not set> >>>> #MAKERULES="/opt/aubit.1.2.36/aubit4glsrc/incl/a4gl.mk >>>> <http://a4gl.mk>" >>>> >>>> #################### >>>> #names of libraries paths 'configure' >>>> detected outside of standard >>>> #library search paths; note that they will >>>> be added to ld.so.conf >>>> #automatically (but this applies only to >>>> run-time loader, and not linker) >>>> #and on non-Linux platforms to .bashrc of >>>> the user, but this applies only to >>>> #that user that installed compiler. In >>>> other cases, you must make sure >>>> #this is set in your LD_LIBRARY_PATH or >>>> equivalent manually. >>>> #Default=<no default value> >>>> ADD_LD_LIBRARY_PATH="/lib:/lib/esql:" >>>> WARN_LD_LIBRARY_REASON=" Informix-ESQL" >>>> >>>> ##################### >>>> #Path to CINT installation. Used by >>>> cint/make_cintlib >>>> #WARNING: on Windows, CINTSYSDIR has to be >>>> in Windows format (not CygWin >>>> #or MSYS mapping (cygdrive) because >>>> makecint and cint executables are >>>> #native Windows executables and know >>>> nothing about path mapping >>>> CINTSYSDIR= >>>> ##################### >>>> #Include flags for PostgreSQL ECPG >>>> compieler - used by ecpg_wrap script and 4glc >>>> ECPG_IFLAGS="" >>>> >>>> ##################### >>>> #Actually a ECPG installation dir - may or >>>> may not be the same as >>>> #PostgreSQL engine installation directory. >>>> Used by ecpg_wrap script and 4glc >>>> POSTGRESDIR="" >>>> LIBPQ_FE_H_IFLAGS="" >>>> #Path and name of PostgreSQL ESQL compiler >>>> (ecpg): >>>> #PG_ESQLC="" >>>> >>>> ##################### >>>> #Workaround for PG ecpg problem (see test #24) >>>> # ERROR: Only numeric/decimal have >>>> precision/scale argument >>>> #A4GL_MONEY_AS_MONEY=Y - gives ERROR: >>>> invalid datatype 'money' >>>> #A4GL_MONEY_AS_DECIMAL=Y >>>> >>>> #List of Informix libraries esql compiler >>>> is using; needed in 4glpc to make >>>> #shared library >>>> #must use single quotes, because on Windows >>>> 'esql -libs' command will automatically >>>> #double quote anything with path in it >>>> IFX_LIBS='' >>>> >>>> #Must not use quotes on UNIX or ESQL will >>>> not be able to find esqlc executable >>>> INFORMIXDIR= >>>> >>>> #We cannot use INFORMIXDIR to find esql >>>> compiler, because of use if >>>> #CSDK sub-directory on _SOME_ platforms >>>> #It's quoted in configure >>>> IFMX_ESQLC=no >>>> >>>> #Location of Aubit regression tests; used >>>> in root makefile >>>> AUBIT_TEST_DIR=/home/pruebas/run >>>> >>>> #need to be able to find PG headers like >>>> decimal.h >>>> #Which means I need to run configure and >>>> create config.h even in binary distros! >>>> #but on Win we will not have autoconf, so >>>> we will need to replace this by >>>> #specifying -I$POSTGRESDIR/x where x is ALL >>>> possible combinations of locations >>>> #of PG headers!!!! OK, on Windows hopefully >>>> this will be in only one place, as >>>> #PG windows installer is hopefully more >>>> consistent then Linux distros and >>>> #PG Linux packages? >>>> PG_COPTS="-DUSING_PG_COPTS=1 -DHAVE_CONFIG_H" >>>> #not set in configure.in >>>> <http://configure.in> atm: >>>> PG_COPTS="@PG_COPTS@" >>>> >>>> MSYS_ROOTDIR= >>>> MINGW_ROOTDIR= >>>> MYRUN=/home/albino/pruebas/run >>>> AFGLSERVER=172.16.1.14 >>>> A4GL_ARR_DIR_MSG="No hay más registros en >>>> esa dirección" >>>> _MON1=Ene >>>> _MON2=Feb >>>> _MON3=Mar >>>> _MON4=Abr >>>> _MON5=May >>>> _MON6=Jun >>>> _MON7=Jul >>>> _MON8=Ago >>>> _MON9=Sep >>>> _MON10=Oct >>>> _MON11=Nov >>>> _MON12=Dic >>>> #-------------------------------- EOF >>>> ----------------------------- >>>> >>>> >>>> #PIPEDIR=/home/albino/pruebas/pipes >>>> #BASEPROGRAMS=/home/albino/pruebas/run >>>> #A4GL_PROXYPASSWD=password >>>> #PROXYUSER=albino >>>> >>>> >>>> >>>> In windows 7 : >>>> VDC >>>> >>>> Server: 172.16.1.214 >>>> Connection: ssh >>>> Port: 22 >>>> Application: $MYRUN/kk.4ae >>>> Username: albino >>>> Password: password >>>> >>>> >>>> I compiled this test program: >>>> ( the path to the source code is in: >>>> /home/albino/pruebas >>>> >>>> kk.4gl : >>>> database apli01 >>>> main >>>> >>>> OPEN WINDOW ventana with 25 rows, 74 columns >>>> MENU "Menu" >>>> COMMAND "Ver cuantos" >>>> call busca_cuantos() >>>> current window is ventana >>>> COMMAND "Consulta" >>>> CONTINUE MENU >>>> COMMAND "Terminar" >>>> EXIT PROGRAM >>>> END MENU >>>> end main >>>> >>>> function busca_cuantos() >>>> define >>>> r record like socios.*, >>>> hay_socios integer >>>> open window prueba at 8,3 with 10 rows, 74 >>>> columns attribute (border,black) >>>> current window is prueba >>>> select count(*) into hay_socios from socios >>>> display "NUMERO DE SOCIOS: ", hay_socios at 5,5 >>>> call g_stop("PULSA INTRO") >>>> close window prueba >>>> end function >>>> function g_stop(valor) >>>> define >>>> opci char(1), >>>> valor char(200) >>>> >>>> prompt valor clipped attribute (reverse) >>>> for opci >>>> end function >>>> >>>> *The contents of the file debug.out (VDC >>>> has been executed with the >>>> option: >>>> >>>> *vdc.exe >>>> >>>> -d debug.out*) >>>> >>>> is this:* >>>> <ENVELOPE ID="3" PID="2400"> >>>> <COMMANDS> >>>> <CREATEWINDOW NAME="prueba" X="3" Y="8" >>>> W="74" H="10" FORM_LINE="255" >>>> ERROR_LINE="255" PROMPT_LINE="255" >>>> MENU_LINE="255" COMMENT_LINE="255" >>>> MESSAGE_LINE="255" BORDER="1" ATTRIBUTE="0" >>>> STYLE="" TEXT="" /> >>>> <CURRENTWINDOW WINDOW="prueba"/> >>>> <DISPLAYAT X="5" Y="5" >>>> ATTRIBUTE="-1">NUMERO DE SOCIOS: 0</DISPLAYAT> >>>> <PROMPT CONTEXT="1" PROMPTATTRIBUTE="4096 >>>> " FIELDATTRIBUTE="-1 " >>>> TEXT="PULSA INTRO" CHARMODE="0" HELPNO="0" >>>> ATTRIB_STYLE="" ATTRIB_TEXT="" >>>> DTYPE_HINT="65536"> >>>> <EVENTS> >>>> </EVENTS> >>>> </PROMPT> >>>> <WAITFOREVENT CONTEXT="1" CACHED="0"/> >>>> </COMMANDS> >>>> </ENVELOPE> >>>> <ENVELOPE ID="3" PID="2400"> >>>> <COMMANDS> >>>> <FREE TYPE="PROMPT" CONTEXT="1"/> >>>> <CLOSEWINDOW WINDOW="prueba"/> >>>> <CURRENTWINDOW WINDOW="ventana"/> >>>> <WAITFOREVENT CONTEXT="0" CACHED="0"/> >>>> </COMMANDS> >>>> </ENVELOPE> >>>> <ENVELOPE ID="3" PID="2400"> >>>> <COMMANDS> >>>> <WAITFOREVENT CONTEXT="0" CACHED="0"/> >>>> </COMMANDS> >>>> </ENVELOPE> >>>> >>>> *The VDC.log file content its:* >>>> Last login: Wed Jan 21 11:31:21 2015 from >>>> 172.16.1.14 >>>> >>>> >>>> [12:40 - 21.01.2015] [Debug] - export >>>> AFGLPORT=35789 >>>> $MYRUN/kk.4ae >>>> >>>> [12:40 - 21.01.2015] [Debug] - >>>> ]0;albino@albino-desktop: ~ >>>> albino@albino-desktop:~$ export AFGLPORT=35789 >>>> ]0;albino@albino-desktop: ~ >>>> albino@albino-desktop:~$ $MYRUN/kk.4ae >>>> >>>> [12:40 - 21.01.2015] [Debug] - <ENVELOPE >>>> ID="1" PID="2400"> >>>> <COMMANDS> >>>> <PROGRAMSTARTUP >>>> PROGRAMNAME="/home/albino/pruebas/run/kk.4ae" >>>> ID="0"> >>>> <ENV NAME="DBPATH" >>>> VALUE=":/opt/aubit.1.2.36/aubit4glsrc/tools:/opt/aubit4gl/tools:/opt/aubit.1.2.36/aubit4glsrc/incl:/opt/aubit4gl/incl:."/> >>>> export AFGLPORT=35789 >>>> $MYRUN/kk.4ae >>>> >>>> [12:40 - 21.01.2015] [Debug] - <ENV >>>> NAME="DBDATE" VALUE="MDY4/"/> >>>> <ENV NAME="DBMONEY" VALUE="#."/> >>>> <ENV NAME="A4GL_NUMERIC" VALUE=""/> >>>> <ENV NAME="DB_LOCALE" VALUE=""/> >>>> <ENV NAME="LANG" VALUE="es_ES.UTF-8"/> >>>> <ENV NAME="A4GL_VERSION" VALUE="1.2.36"/> >>>> <ENV NAME="XML_VERSION" VALUE="1export >>>> AFGLPORT=35789 >>>> $MYRUN/kk.4ae >>>> >>>> [12:40 - 21.01.2015] [Debug] - .4"/> >>>> </PROGRAMSTARTUP> >>>> </COMMANDS> >>>> </ENVELOPE> >>>> <ENVELOPE ID="1" PID="2400"> >>>> <COMMANDS> >>>> <CREATEWINDOW NAME="ventana" X="1" Y="1" >>>> W="74" H="25" FORM_LINE="255" >>>> ERROR_LINE="255" PROMPT_LINE="255" >>>> MENU_LINE="255" COMMENT_LINE="255" >>>> MESSAGE_LINE="255" BOexport AFGLPORT=35789 >>>> $MYRUN/kk.4ae >>>> >>>> [12:40 - 21.01.2015] [Debug] - RDER="0" >>>> ATTRIBUTE="65535" STYLE="" TEXT="" /> >>>> <MENU CONTEXT="0" TITLE="Menu" COMMENT="" >>>> STYLE="" IMAGE=""> >>>> <MENUCOMMANDS> >>>> <MENUCOMMAND CONTEXT="0" KEYS="" ID="1" >>>> TEXT="Ver cuantos" DESCRIPTION="" HELPNO="0"/> >>>> <MENUCOMMAND CONTEXT="0" KEYS="" ID="2" >>>> TEexport AFGLPORT=35789 >>>> $MYRUN/kk.4ae >>>> >>>> [12:40 - 21.01.2015] [Debug] - >>>> XT="Consulta" DESCRIPTION="" HELPNO="0"/> >>>> <MENUCOMMAND CONTEXT="0" KEYS="" ID="3" >>>> TEXT="Terminar" DESCRIPTION="" HELPNO="0"/> >>>> <MENUACTION CONTEXT="0" ID="4" >>>> ACTION="fgl_exit_menu" CMD_NO_TIMEOUT="3" /> >>>> </MENUCOMMANDS> >>>> </MENU> >>>> <WAITFOREVENT CONTEXT="0"export AFGLPORT=35789 >>>> $MYRUN/kk.4ae >>>> >>>> [12:40 - 21.01.2015] [Debug] - CACHED="0"/> >>>> </COMMANDS> >>>> </ENVELOPE> >>>> ç >>>> >>>> But VDC doesn't shows anything. >>>> ¿what is wrong? >>>> >>>> Thanks in advance. >>>> Regards >>>> >>>> , Albino Moreno. >>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> New Year. New Location. New Benefits. New Data Center in Ashburn, VA. >>>> GigeNET is offering a free month of service with a new server in Ashburn. >>>> Choose from 2 high performing configs, both with 100TB of bandwidth. >>>> Higher redundancy.Lower latency.Increased capacity.Completely compliant. >>>> http://p.sf.net/sfu/gigenet >>>> >>>> >>>> _______________________________________________ >>>> Aubit4gl-discuss mailing list >>>> [email protected] <mailto:[email protected]> >>>> https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss >>> >>> -- >>> Mit freundlichen Grüßen >>> Daniel Kroker >>> >>> VENTAS AG 20+ Jahre ERP-Erfahrung! >>> Web:www.ventas.de <http://www.ventas.de> >>> Fon: 040 / 32 33 34 0 >>> Fax: 040 / 32 33 34 38 >>> Firmensitz: Mittelweg 144, 20148 Hamburg, Deutschland >>> Registergericht: Hamburg, HRB 80 297 Ust.IdNr.: DE118686712 >>> Vorstandsvorsitzender: Dipl. Ing. Alain Siverly >>> Aufsichtsratsvorsitzender: Dr. Olaf Rehme >>> >>> >> >> -- >> Mit freundlichen Grüßen >> Daniel Kroker >> >> VENTAS AG 20+ Jahre ERP-Erfahrung! >> Web:www.ventas.de <http://www.ventas.de> >> Fon: 040 / 32 33 34 0 >> Fax: 040 / 32 33 34 38 >> Firmensitz: Mittelweg 144, 20148 Hamburg, Deutschland >> Registergericht: Hamburg, HRB 80 297 Ust.IdNr.: DE118686712 >> Vorstandsvorsitzender: Dipl. Ing. Alain Siverly >> Aufsichtsratsvorsitzender: Dr. Olaf Rehme >> >> >> > > -- > Mit freundlichen Grüßen > Daniel Kroker > > VENTAS AG 20+ Jahre ERP-Erfahrung! > Web:www.ventas.de <http://www.ventas.de> > Fon: 040 / 32 33 34 0 > Fax: 040 / 32 33 34 38 > Firmensitz: Mittelweg 144, 20148 Hamburg, Deutschland > Registergericht: Hamburg, HRB 80 297 Ust.IdNr.: DE118686712 > Vorstandsvorsitzender: Dipl. Ing. Alain Siverly > Aufsichtsratsvorsitzender: Dr. Olaf Rehme > > > > -- Mit freundlichen Grüßen Daniel Kroker VENTAS AG 20+ Jahre ERP-Erfahrung! Web: www.ventas.de Fon: 040 / 32 33 34 0 Fax: 040 / 32 33 34 38 Firmensitz: Mittelweg 144, 20148 Hamburg, Deutschland Registergericht: Hamburg, HRB 80 297 Ust.IdNr.: DE118686712 Vorstandsvorsitzender: Dipl. Ing. Alain Siverly Aufsichtsratsvorsitzender: Dr. Olaf Rehme ------------------------------------------------------------------------------ New Year. New Location. New Benefits. New Data Center in Ashburn, VA. GigeNET is offering a free month of service with a new server in Ashburn. Choose from 2 high performing configs, both with 100TB of bandwidth. Higher redundancy.Lower latency.Increased capacity.Completely compliant. http://p.sf.net/sfu/gigenet _______________________________________________ Aubit4gl-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss