Binary install on FreeBSD

"James B. Byrne via Aubit4gl-discuss" <[email protected]> Wed, 6 Jan 2021 13:07:41 -0500
Newsgroups gmane.comp.lang.4gl.aubit.general
Message-ID <[email protected]>
I am attempting to use the binary distribution for Unix which I have extracted
from the tar archives in /home/byrnejb/Projects/aubit4gl.  I have some
questions before I go further and given this operating environment:

FreeBSD-12.1p12 Unix OS
PostgreSQL 11.9


On FreeBSD the libiodbc and ncurses library packages are installed into
/usr/local/lib.  They both have configuration manager scripts installed in
/usr/local/bin: /usr/local/bin/iodbc-config, /usr/local/bin/ncurses6-config,
and /usr/local/bin/ncursesw6-config.

FreeBSD uses CLang instead of gcc and has its binary in /usr/bin.  The -O
option equates to -O2 for clang.

Do I set the following in .a4glrc?

# Aubit 4gl **compiler** configuration file
#

#where Aubit 4gl is installed: here you can override aubitenv if you need
AUBITDIR=/home/byrnejb_hll/Projects/aubit4gl

#location of ODBC libraries (iODBC manager or other)
ODBC_LIB_DIR=/usr/local/lib

#optionally you can specify separate location for NCURSES
NCURSES_LIB_DIR=/usr/local/lib

#defines command executed as C compiler for your system
GCC="cc -O"

LD_LIBRARY_PATH=$AUBITDIR/lib

PATH=$PATH:$AUBITDIR/bin

iodbc-config provides this information:

iodbc-config --cflags
-I/usr/local/include/libiodbc

iodbc-config --libs
-L/usr/local/lib  -liodbc -liodbcinst

ncurses6-config provides this information:

ncurses6-config --cflags
-I/usr/local/include/ncurses/ncurses

ncurses6-config --libs
-fstack-protector-strong -Wl,-rpath,/usr/local/lib -lncurses -ltinfo


There is a second ncurses configurator, which handles multibyte characters
(UTF8?), that is named ncursesw6-config and which produces this:

ncursesw6-config --cflags
-I/usr/local/include/ncurses/ncursesw -I/usr/local/include/ncurses

ncursesw6-config --libs
-fstack-protector-strong -Wl,-rpath,/usr/local/lib -lncursesw -ltinfow


Which leads to etc/aubitrc


more etc/aubitrc.binary.default
. . .
#AUBITETC=/etc/opt/aubit4gl
#WARNING - do not hard-code - use /home/aubit4gl/.aubit4gl instead!!

## REMOVE THE FOLLOWING LINE ONCE YOU'VE SETUP THIS FILE  ##
DEFAULT_AUBITRCFILE_HAS_BEEN_EDITED=N



## EDIT THESE  ##
#
AUBITDIR=/home/byrnejb_hll/Projects/aubit4gl

# This is where postgresql11 keeps its files on FreeBSD-12
POSTGRESDIR="/var/db/postgres/data11"

# This is where postgresql11 has its include files on FreeBSD-12

tree -d /usr/local/include/postgresql/
/usr/local/include/postgresql/
|-- informix
|   `-- esql
|-- internal
|   `-- libpq
`-- server
    |-- access
    |-- bootstrap
    |-- catalog
    |-- commands
    |-- common
    |-- datatype
    |-- executor
    |-- fe_utils
    |-- foreign
    |-- jit
    |-- lib
    |-- libpq
    |-- mb
    |-- nodes
    |-- optimizer
    |-- parser
    |-- partitioning
    |-- port
    |   |-- atomics
    |   |-- win32
    |   |   |-- arpa
    |   |   |-- netinet
    |   |   `-- sys
    |   `-- win32_msvc
    |       `-- sys
    |-- portability
    |-- postmaster
    |-- regex
    |-- replication
    |-- rewrite
    |-- snowball
    |   `-- libstemmer
    |-- statistics
    |-- storage
    |-- tcop
    |-- tsearch
    |   `-- dicts
    `-- util

and this is where postgres11 keeps it libraries:

tree -d /usr/local/lib/postgresql
/usr/local/lib/postgresql
`-- bitcode
    `-- postgres
        |-- access
        |   |-- brin
        |   |-- common
        |   |-- gin
        |   |-- gist
        |   |-- hash
        |   |-- heap
        |   |-- index
        |   |-- nbtree
        |   |-- rmgrdesc
        |   |-- spgist
        |   |-- tablesample
        |   `-- transam
        |-- bootstrap
        |-- catalog
        |-- commands
        |-- executor
        |-- foreign
        |-- jit
        |-- lib
        |-- libpq
        |-- main
        |-- nodes
        |-- optimizer
        |   |-- geqo
        |   |-- path
        |   |-- plan
        |   |-- prep
        |   `-- util
        |-- parser
        |-- partitioning
        |-- port
        |-- postmaster
        |-- regex
        |-- replication
        |   `-- logical
        |-- rewrite
        |-- statistics
        |-- storage
        |   |-- buffer
        |   |-- file
        |   |-- freespace
        |   |-- ipc
        |   |-- large_object
        |   |-- lmgr
        |   |-- page
        |   `-- smgr
        |-- tcop
        |-- tsearch
        `-- utils
            |-- adt
            |-- cache
            |-- error
            |-- fmgr
            |-- hash
            |-- init
            |-- mb
            |-- misc
            |-- mmgr
            |-- resowner
            |-- sort
            `-- time


I habe no idea on how to set these:

LIBPQ_FE_H_IFLAGS="-I/usr/local/pgsql/include/"
IFX_LIBS='-lifsql -lifasf -lifgen -lifos -lifgls -lc -ldl -lcrypt
/home/informix/lib/esql/checkapi.o -lifglx'
IFMX_ESQLC='/home/informix/bin/esql'
PG_COPTS="-DUSING_PG_COPTS=1 -DHAVE_CONFIG_H"

Or these:

## You may want to edit these
#
A4GL_CINT="no"
A4GL_SQLTYPE=esql
A4GL_LEXTYPE=C
A4GL_PDFTYPE=PDF
A4GL_RPCTYPE=XDR
A4GL_UI=TUI
A4GL_FORMTYPE=GENERIC
A4GL_MSGTYPE=NATIVE
EXDTYPE=mpz
EXDTYPE_DETECTED=" mpz"
A4GL_PACKER=PACKED
A4GL_RESERVEWORDS=NO
A4GL_SQLCONVERT=YES
A4GL_AUTONULL=Y
A4GL_ANSI_WARN=Yes
A4GL_NO_ALT_SCR=Y
A4GL_SAPDB_ESQLC="no"
MSYS_ROOTDIR=
MINGW_ROOTDIR=

Help with this and an explanation of what each setting is for would be greatly
appreciated.  I have visited and read much of:

http://aubit4gl.sourceforge.net/aubit4gldoc/manual/

But there does not appear to be a search function and I have not found the
place where these are discussed.


-- 
***          e-Mail is NOT a SECURE channel          ***
        Do NOT transmit sensitive data via e-Mail
   Unencrypted messages have no legal claim to privacy
 Do NOT open attachments nor follow links sent by e-Mail

James B. Byrne                mailto:[email protected]
Harte & Lyne Limited          http://www.harte-lyne.ca
9 Brockley Drive              vox: +1 905 561 1241
Hamilton, Ontario             fax: +1 905 561 0757
Canada  L8E 3C3