PxPlus User Forum

Twitter Twitter Twitter

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - clayton.fast

Pages: [1]
1
Programming / No event firing in Report View List_Box
« on: December 19, 2020, 09:42:29 PM »
The CHANGE<ctl.name> is not being executed in a class.  I'm using a NOMADS panel.

I'm sure the answer to this is simple but I haven't figured it out.  I attached screenshots of the List_Box properties from NOMADS.

Here's the program starting the class:
0010 REM "era.pvx
0020 SETERR ERROR_TRAP
0030 LET SESSION=NEW("session")
0040 LET ERA=NEW("era")
0050 LET RESULT=ERA'PROCESS()

Here's the FUNCTION from era.pvc:  (It doesn't get here when I click on a row in the List_Box.  It does fire until I double click on a row)
00880 FUNCTION CHANGELB_CLAIMS()
00890 SETERR ERROR_TRAP
00900 GOSUB SET_IOLISTS
00910 LET LC=LB_CLAIMS.CTL,L1=LC'VALUE,L2=LC'ITEM,L3=LC'CURRENTITEM,LC$=TRY(LC'ITEMTEXT$,"")
00920 LET TT$="Control id ="+STR(LC)+"  Value = "+STR(L1)+"  Item Num "+STR(L2)+"  Item Text = "+LC$+"  Current Item = "+STR(L3)
00930 MSGBOX TT$
00940 RETURN

I attached the Nomads List_Box properties.

I'm developing on Win 10 and running PxPlus 2019

2
Web Services / Re: Error Compiling mod_inomads.c
« on: October 23, 2018, 08:14:16 AM »
Hi Mike,

I sent your response to my Linux consultant.  It is still failing.  Here's his email to me.
______________________

I added the lines in manually because the file he sent diffs quite a bit different. It compiled but apache won’t start and throws an error

The error:

httpd[24376]: httpd: Syntax error on line 360 of /etc/httpd/conf/httpd.conf: Cannot load /usr/lib64/httpd/modules/mod_inomads.so into server: /usr/lib64/httpd/modules/mod_inomads.so: undefined symbol: stricmp

 

 

Compiler Output:

 

]# apxs -i -a -c mod_inomads.c

/usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -std=gnu99 -prefer-pic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fe                                                                                                                                     xceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic  -DLINUX -D_REENTRANT -D_                                                                                                                                     GNU_SOURCE -pthread -I/usr/include/httpd  -I/usr/include/apr-1   -I/usr/include/apr-1   -c -o mod_inomads.lo mod_inomads.c && to                                                                                                                                     uch mod_inomads.slo

mod_inomads.c: In function 'Load_Config':

mod_inomads.c:292:4: warning: implicit declaration of function 'stricmp' [-Wimplicit-function-declaration]

    if (stricmp(szLine, "DIRECTORY") == 0)

    ^

mod_inomads.c: In function 'Session_Find':

mod_inomads.c:1669:3: warning: format '%x' expects argument of type 'unsigned int', but argument 8 has type 'struct SESSIONS *'                                                                                                                                      [-Wformat=]

   ap_log_error(APLOG_MARK, APLOG_NOTICE, APR_SUCCESS, Request->server, "AlLocating SESSIONS table at %8.8x", pSessions);

   ^

mod_inomads.c:1681:3: warning: format '%x' expects argument of type 'unsigned int', but argument 9 has type 'struct SESSION *' [                                                                                                                                     -Wformat=]

   ap_log_error(APLOG_MARK, APLOG_NOTICE, APR_SUCCESS, Request->server, "Allocating SESSION %s entry at %8.8x", pNomads->szSessi                                                                                                                                     on, pSession);

   ^

mod_inomads.c:1689:2: warning: format '%x' expects argument of type 'unsigned int', but argument 9 has type 'struct SESSION *' [                                                                                                                                     -Wformat=]

  ap_log_error(APLOG_MARK, APLOG_NOTICE, APR_SUCCESS, Request->server, "Returning SESSION %s entry at %8.8x (socket=%8.8x)", pNo                                                                                                                                     mads->szSession, pSession, pSession->pSocket);

  ^

mod_inomads.c:1689:2: warning: format '%x' expects argument of type 'unsigned int', but argument 10 has type 'struct apr_socket_                                                                                                                                     t *' [-Wformat=]

mod_inomads.c: In function 'Session_Free':

mod_inomads.c:1710:3: warning: format '%x' expects argument of type 'unsigned int', but argument 9 has type 'struct SESSION *' [                                                                                                                                     -Wformat=]

   ap_log_error(APLOG_MARK, APLOG_NOTICE, APR_SUCCESS, Request->server, "Releasing SESSION %s entry at %8.8x", pNomads->szSessio                                                                                                                                     n, pSession);

   ^

mod_inomads.c: In function 'FileIO_GetDir':

mod_inomads.c:1933:2: warning: implicit declaration of function 'max' [-Wimplicit-function-declaration]

  apr_table_setn(Request->headers_out, "Content-Range", apr_psprintf(TmpPool, "bytes 0-%d/%d", max(0,nBytes-1), nBytes));

  ^

mod_inomads.c: In function 'FileIO_GetFile':

mod_inomads.c:1984:2: warning: format '%d' expects argument of type 'int', but argument 3 has type 'apr_off_t' [-Wformat=]

  apr_table_setn(Request->headers_out, "Content-Range", apr_psprintf(TmpPool, "bytes %d-%d/%d", nOffset, nOffset+max(0,nLength-1                                                                                                                                     ), nFileSize));

  ^

mod_inomads.c:1984:2: warning: format '%d' expects argument of type 'int', but argument 4 has type 'apr_off_t' [-Wformat=]

mod_inomads.c:1984:2: warning: format '%d' expects argument of type 'int', but argument 5 has type 'apr_size_t' [-Wformat=]

mod_inomads.c: In function 'FileIO_Put':

mod_inomads.c:2026:2: warning: implicit declaration of function 'min' [-Wimplicit-function-declaration]

  { nRead = (long)min(sizeof(bfrTemp), nBytes-nOfsIn);

  ^

/usr/lib64/apr-1/build/libtool --silent --mode=link gcc -std=gnu99 -Wl,-z,relro,-z,now   -o mod_inomads.la  -rpath /usr/lib64/ht                                                                                                                                     tpd/modules -module -avoid-version    mod_inomads.lo

/usr/lib64/httpd/build/instdso.sh SH_LIBTOOL='/usr/lib64/apr-1/build/libtool' mod_inomads.la /usr/lib64/httpd/modules

/usr/lib64/apr-1/build/libtool --mode=install install mod_inomads.la /usr/lib64/httpd/modules/

libtool: install: install .libs/mod_inomads.so /usr/lib64/httpd/modules/mod_inomads.so

libtool: install: install .libs/mod_inomads.lai /usr/lib64/httpd/modules/mod_inomads.la

libtool: install: install .libs/mod_inomads.a /usr/lib64/httpd/modules/mod_inomads.a

libtool: install: chmod 644 /usr/lib64/httpd/modules/mod_inomads.a

libtool: install: ranlib /usr/lib64/httpd/modules/mod_inomads.a

libtool: finish: PATH="/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/sbin" ldconfig -n /usr/lib64/httpd/modules

----------------------------------------------------------------------

Libraries have been installed in:

   /usr/lib64/httpd/modules

 

If you ever happen to want to link against installed libraries

in a given directory, LIBDIR, you must either use libtool, and

specify the full pathname of the library, or use the `-LLIBDIR'

flag during linking and do at least one of the following:

   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable

     during execution

   - add LIBDIR to the `LD_RUN_PATH' environment variable

     during linking

   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag

   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

 

See any operating system documentation about shared libraries for

more information, such as the ld(1) and ld.so(8) manual pages.

----------------------------------------------------------------------

chmod 755 /usr/lib64/httpd/modules/mod_inomads.so

[activating module `inomads' in /etc/httpd/conf/httpd.conf]

 

3
Web Services / Re: Error Compiling mod_inomads.c
« on: October 22, 2018, 08:51:18 PM »
Thanks, Mike.  I spent all day fixing problems.  I'll try your updated inomads module tomorrow and let you know the results.

4
Web Services / Error Compiling mod_inomads.c
« on: October 21, 2018, 02:26:34 PM »
We are in the process of moving our applications from a local server to an Azure Centos v7.  We are using inomads.  We have installed PxPlus 2018 and it is working for our character based application.  We are attempting to replicate what was running on the local server.  There are 2 PxPlus installations on the server (one standard version and 1 Wayfarer version).

Can someone help us figure out what is going wrong?  Thanks.

When we attempt to compile the inomads module for apache (mod_inomads.c) with this command: apxs -i -a -c mod_inomads.c, we get the following errors:

/usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -std=gnu99 -prefer-pic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic  -DLINUX -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/httpd  -I/usr/include/apr-1   -I/usr/include/apr-1   -c -o mod_inomads.lo mod_inomads.c && touch mod_inomads.slo
mod_inomads.c:137:62: error: unknown type name 'BOOL'
 static struct SESSION *Session_Find(struct INOMADS *pNomads, BOOL bCreate);
                                                              ^
mod_inomads.c: In function 'Load_Config':
mod_inomads.c:287:4: warning: implicit declaration of function 'stricmp' [-Wimplicit-function-declaration]
    if (stricmp(szLine, "DIRECTORY") == 0)
    ^
mod_inomads.c: In function 'Load_session':
mod_inomads.c:626:2: error: unknown type name 'BOOL'
  BOOL   bUsedCookie; /* Indicates if cookie was used to get session ID */
  ^
mod_inomads.c:677:3: warning: implicit declaration of function 'Session_Find' [-Wimplicit-function-declaration]
   if (Session_Find(pNomads, FALSE) == NULL)
   ^
mod_inomads.c:677:36: warning: comparison between pointer and integer [enabled by default]
   if (Session_Find(pNomads, FALSE) == NULL)
                                    ^
mod_inomads.c: In function 'Spawn_ViaTcp':
mod_inomads.c:954:11: warning: assignment makes pointer from integer without a cast [enabled by default]
  pSession = Session_Find(pNomads, TRUE);
           ^
mod_inomads.c: At top level:
mod_inomads.c:1627:63: error: unknown type name 'BOOL'
 static struct SESSION * Session_Find(struct INOMADS *pNomads, BOOL bCreate)
                                                               ^
mod_inomads.c: In function 'Session_Free':
mod_inomads.c:1705:3: warning: format '%x' expects argument of type 'unsigned int', but argument 9 has type 'struct SESSION *' [-Wformat=]
   ap_log_error(APLOG_MARK, APLOG_NOTICE, APR_SUCCESS, Request->server, "Releasing SESSION %s entry at %8.8x", pNomads->szSession, pSession);
   ^
mod_inomads.c: In function 'FileIO_GetDir':
mod_inomads.c:1928:2: warning: implicit declaration of function 'max' [-Wimplicit-function-declaration]
  apr_table_setn(Request->headers_out, "Content-Range", apr_psprintf(TmpPool, "bytes 0-%d/%d", max(0,nBytes-1), nBytes));
 ^
mod_inomads.c: In function 'FileIO_GetFile':
mod_inomads.c:1979:2: warning: format '%d' expects argument of type 'int', but argument 3 has type 'apr_off_t' [-Wformat=]
  apr_table_setn(Request->headers_out, "Content-Range", apr_psprintf(TmpPool, "bytes %d-%d/%d", nOffset, nOffset+max(0,nLength-1), nFileSize));
  ^
mod_inomads.c:1979:2: warning: format '%d' expects argument of type 'int', but argument 4 has type 'apr_off_t' [-Wformat=]
mod_inomads.c:1979:2: warning: format '%d' expects argument of type 'int', but argument 5 has type 'apr_size_t' [-Wformat=]
mod_inomads.c: In function 'FileIO_Put':
mod_inomads.c:2021:2: warning: implicit declaration of function 'min' [-Wimplicit-function-declaration]
  { nRead = (long)min(sizeof(bfrTemp), nBytes-nOfsIn);
  ^
apxs:Error: Command failed with rc=65536

5
Off Topic / Label Printer Suggestions
« on: August 14, 2018, 01:44:00 PM »
I need suggestions for a label printer that I can print to from PXPLUS running on a Linux Centos server.  This is a WAN deployment; if that makes any difference. ???

Thanks,
Clay

6
Nomads / Dictionary
« on: August 05, 2018, 09:26:51 PM »
We build providex.dde and providex.ddf from our proprietary dictionary.  I'm trying to figure out how to incorporate it with Providex tools like Nomads and the Report Writer.

I have several questions:

1) How do I set the global variables in the file name/path so that the PVX tools know where to find the physical file.  I could probably figure out how to do it if I started the tools from within a Providex program that I write.  I'm struggling trying to figure out how to do from the IDE.
2) How do I determine or force the dictionary to use my specific physical copy of providex.dde and providex.ddf?  There are so many copies of those files in different folders that I can't figure it out.  I even tried to see which physical file changed when I changed dictionary information,  That didn't work for me.  That wasn't logical to me.
3) Where can I find information on how to define the keys for a particular file definition?  I could probably figure that out if I could get an answer to #2.

Thanks,
Clay

Pages: [1]