gnucobol-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[open-cobol-list] GNU-Cobol 1.1 crashes...


From: Veit Heise
Subject: [open-cobol-list] GNU-Cobol 1.1 crashes...
Date: Tue, 16 Sep 2014 11:40:58 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

hello patrick :-)

Hello -Patrick :-)
I added following to /etc/ld.so.conf

(old) -> include /etc/ld.so.conf.d/*.conf
(new) -> /usr/local/lib
(new) -> /usr/local/lib/gnu-cobol
(new) -> /home/heise/lib/open-cobol <---- there my with -m compiled
                      modules are placed...

ldconfig executed ...

Now the Compiler crashes with:
$ cobc -O2 -x -free -fmfcomment -ffold-copy-lower -I
/home/heise/lib/open-cobol/copy -L /home/heise/lib/open-cobol
28575 Speicherzugriffsfehler (Speicherabzug geschrieben) cobc -O2 ......

What is going wrong?

Veit


Am 15.09.2014 15:37, schrieb address@hidden:
> Send open-cobol-list mailing list submissions to
>     address@hidden
>
> To subscribe or unsubscribe via the World Wide Web, visit
>     https://lists.sourceforge.net/lists/listinfo/open-cobol-list
> or, via email, send a message with subject or body 'help' to
>     address@hidden
>
> You can reach the person managing the list at
>     address@hidden
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of open-cobol-list digest..."
>
>
> Today's Topics:
>
>    1. Re: big problems with open-cobol since GNU    portation... (Patrick)
>    2. Open COBOL Build 426 Not Finding Modules (Marty Heyman)
>    3. Re: Open COBOL Build 426 Not Finding Modules (Patrick)
>    4. Open COBOL Build 426 Not Finding Modules (Marty Heyman)
>    5. Re: Open COBOL Build 426 Not Finding Modules (Marty Heyman)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 15 Sep 2014 07:35:00 -0400
> From: Patrick <address@hidden>
> Subject: Re: [open-cobol-list] big problems with open-cobol since GNU
>     portation...
> To: Veit Heise <address@hidden>,
>     address@hidden
> Message-ID: <address@hidden>
> Content-Type: text/plain; charset="iso-8859-1"
>
> On 15/09/14 05:54 AM, Veit Heise wrote:
>> Hello Friends...
>> My open-cobol is dys-functional! I find no other word, to describe my
>> problem:
>>     - when I make a CALL from a with -x compiled executable, and call
>> a -m compiled module or subprogram, under UBUNTU,
>>         * my module would not be found .... or
>>         * my module is crashing, if it contains any own screen section!
>> I think, there must be anything wrong in the module-loader-context....
>> or in the module-loader itsself...
>> Who may help?
>> Greatings from Germany...
>> --
>> Info Veit Heise
>>
>>
>>       Veit Heise
>>
>> Breslauer Str. 24, 63477 Maintal, Germany
>>
>> Phone +49-6181-6108324, Mobile +49-173-244-0194
>>
>>
> Hi Veit
>
> Have you tried editing /etc/ld.so.conf and adding in /usr/local/lib, I
> usually have to do this. Don't forget to run ldconfig after.
>
> -Patrick
>
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 2
> Date: Mon, 15 Sep 2014 08:39:38 -0400
> From: Marty Heyman <address@hidden>
> Subject: [open-cobol-list] Open COBOL Build 426 Not Finding Modules
> To: address@hidden
> Message-ID: <address@hidden>
> Content-Type: text/plain; charset=windows-1252
>
> In empathy with message from Velt (below), I took Patrick?s advice and added /usr/local/lib to /etc/ld.so.conf and ran ldconfig ? and get the same error. I am running cobc 2.1.0 on xUbuntu. The session fragment:
>
> ?? START ??
> address@hidden:~/Projects/PlanBTest/mhWork$ make clean;make;./PGTest
> rm PGTest
> cobc -I../copylib -L/usr/lib -lpq -std=mvs -x ../cobol_source/PGTest.cbl
> Before connect:0x0000000000000000
> libcob: Cannot find module 'PQconnectdb'
> address@hidden:~/Projects/PlanBTest/mhWork$
> ??END ----
>
> shows the behavior. I have the same problem on Fedora 12. lib cob appears to be found but does not seem to be able to find libpq. The code is Brian Tiffin?s example of accessing postgres directly through libpq (form the FAQ.
> On 15/09/14 05:54 AM, Veit Heise wrote:
>> Hello Friends...
>> My open-cobol is dys-functional! I find no other word, to describe my
>> problem:
>>     - when I make a CALL from a with -x compiled executable, and call
>> a -m compiled module or subprogram, under UBUNTU,
>>         * my module would not be found .... or
>>         * my module is crashing, if it contains any own screen section!
>> I think, there must be anything wrong in the module-loader-context....
>> or in the module-loader itsself...
>> Who may help?
>> Greatings from Germany...
>> --
>> Info Veit Heise
>>
>>
>>       Veit Heise
>>
>> Breslauer Str. 24, 63477 Maintal, Germany
>>
>> Phone +49-6181-6108324, Mobile +49-173-244-0194
>>
>>
> Hi Veit
>
> Have you tried editing /etc/ld.so.conf and adding in /usr/local/lib, I
> usually have to do this. Don't forget to run ldconfig after.
>
> -Patrick
>
> ?
> Marty Heyman
> 510-290-6484 (Mobile)
>
>
>
>
>
>
> ------------------------------
>
> Message: 3
> Date: Mon, 15 Sep 2014 08:45:58 -0400
> From: Patrick <address@hidden>
> Subject: Re: [open-cobol-list] Open COBOL Build 426 Not Finding
>     Modules
> To: Marty Heyman <address@hidden>,
>     address@hidden
> Message-ID: <address@hidden>
> Content-Type: text/plain; charset=windows-1252; format=flowed
>
> Hi Marty
>
> Do you have a little snippet of test code you could share ?
>
> I am on Debian Stable. I don't seem to be having trouble but maybe I am
> missing something and have the bug too.
>
> Is it possible to statically link to see if the problem goes away?
>
> Could you compile in verbose mode and share?
>
> Thanks
>
>
>
>
> On 15/09/14 08:39 AM, Marty Heyman wrote:
>> In empathy with message from Velt (below), I took Patrick?s advice and added /usr/local/lib to /etc/ld.so.conf and ran ldconfig ? and get the same error. I am running cobc 2.1.0 on xUbuntu. The session fragment:
>>
>> ?? START ??
>> address@hidden:~/Projects/PlanBTest/mhWork$ make clean;make;./PGTest
>> rm PGTest
>> cobc -I../copylib -L/usr/lib -lpq -std=mvs -x ../cobol_source/PGTest.cbl
>> Before connect:0x0000000000000000
>> libcob: Cannot find module 'PQconnectdb'
>> address@hidden:~/Projects/PlanBTest/mhWork$
>> ??END ----
>>
>> shows the behavior. I have the same problem on Fedora 12. lib cob appears to be found but does not seem to be able to find libpq. The code is Brian Tiffin?s example of accessing postgres directly through libpq (form the FAQ.
>> On 15/09/14 05:54 AM, Veit Heise wrote:
>>> Hello Friends...
>>> My open-cobol is dys-functional! I find no other word, to describe my
>>> problem:
>>>      - when I make a CALL from a with -x compiled executable, and call
>>> a -m compiled module or subprogram, under UBUNTU,
>>>          * my module would not be found .... or
>>>          * my module is crashing, if it contains any own screen section!
>>> I think, there must be anything wrong in the module-loader-context....
>>> or in the module-loader itsself...
>>> Who may help?
>>> Greatings from Germany...
>>> --
>>> Info Veit Heise
>>>
>>>
>>>        Veit Heise
>>>
>>> Breslauer Str. 24, 63477 Maintal, Germany
>>>
>>> Phone +49-6181-6108324, Mobile +49-173-244-0194
>>>
>>>
>> Hi Veit
>>
>> Have you tried editing /etc/ld.so.conf and adding in /usr/local/lib, I
>> usually have to do this. Don't forget to run ldconfig after.
>>
>> -Patrick
>>
>> ?
>> Marty Heyman
>> 510-290-6484 (Mobile)
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Want excitement?
>> Manually upgrade your production database.
>> When you want reliability, choose Perforce
>> Perforce version control. Predictably reliable.
>> http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
>> _______________________________________________
>> open-cobol-list mailing list
>> address@hidden
>> https://lists.sourceforge.net/lists/listinfo/open-cobol-list
>>
>
>
>
>
> ------------------------------
>
> Message: 4
> Date: Mon, 15 Sep 2014 08:39:38 -0400
> From: Marty Heyman <address@hidden>
> Subject: [open-cobol-list] Open COBOL Build 426 Not Finding Modules
> To: address@hidden
> Message-ID: <address@hidden>
> Content-Type: text/plain; charset=windows-1252
>
> In empathy with message from Velt (below), I took Patrick?s advice and added /usr/local/lib to /etc/ld.so.conf and ran ldconfig ? and get the same error. I am running cobc 2.1.0 on xUbuntu. The session fragment:
>
> ?? START ??
> address@hidden:~/Projects/PlanBTest/mhWork$ make clean;make;./PGTest
> rm PGTest
> cobc -I../copylib -L/usr/lib -lpq -std=mvs -x ../cobol_source/PGTest.cbl
> Before connect:0x0000000000000000
> libcob: Cannot find module 'PQconnectdb'
> address@hidden:~/Projects/PlanBTest/mhWork$
> ??END ----
>
> shows the behavior. I have the same problem on Fedora 12. lib cob appears to be found but does not seem to be able to find libpq. The code is Brian Tiffin?s example of accessing postgres directly through libpq (form the FAQ.
> On 15/09/14 05:54 AM, Veit Heise wrote:
>> Hello Friends...
>> My open-cobol is dys-functional! I find no other word, to describe my
>> problem:
>>     - when I make a CALL from a with -x compiled executable, and call
>> a -m compiled module or subprogram, under UBUNTU,
>>         * my module would not be found .... or
>>         * my module is crashing, if it contains any own screen section!
>> I think, there must be anything wrong in the module-loader-context....
>> or in the module-loader itsself...
>> Who may help?
>> Greatings from Germany...
>> --
>> Info Veit Heise
>>
>>
>>       Veit Heise
>>
>> Breslauer Str. 24, 63477 Maintal, Germany
>>
>> Phone +49-6181-6108324, Mobile +49-173-244-0194
>>
>>
> Hi Veit
>
> Have you tried editing /etc/ld.so.conf and adding in /usr/local/lib, I
> usually have to do this. Don't forget to run ldconfig after.
>
> -Patrick
>
> ?
> Marty Heyman
> 510-290-6484 (Mobile)
>
>
>
>
>
>
> ------------------------------
>
> Message: 5
> Date: Mon, 15 Sep 2014 09:10:22 -0400
> From: Marty Heyman <address@hidden>
> Subject: Re: [open-cobol-list] Open COBOL Build 426 Not Finding
>     Modules
> To: address@hidden
> Message-ID: <address@hidden>
> Content-Type: text/plain; charset="windows-1252"
>
> Patrick,
> The code is copied below. It is Brian?s example from the FAQ section 5.4.6. I get similar results without -x and running cobcrun (which then can?t find PGTest.so).
> I haven?t statically linked stuff yet ? will try in a bit. Have a customer on the phone at the moment.
> ?? START CODE ??
> OCOBOL*> ***************************************************************
>       *> Author:    Brian Tiffin
>       *> Date:      20091129
>       *> Purpose:   PostgreSQL connection test
>       *> Tectonics: cobc -x -lpq pgcob.cob
>       *> ***************************************************************
>        identification division.
>        program-id. pgcob.
>
>        data division.
>        working-storage section.
>        01 pgconn usage pointer.
>        01 pgres  usage pointer.
>        01 resptr usage pointer.
>        01 resstr pic x(80) based.
>        01 result usage binary-long.
>        01 answer pic x(80).
>
>       *> ***************************************************************
>        procedure division.
>        display "Before connect:" pgconn end-display
>
>        call "PQconnectdb" using
>            by reference "dbname = postgres" & x"00"
>            returning pgconn
>        end-call
>        display "After connect: " pgconn end-display
>
>        call "PQstatus" using by value pgconn returning result end-call
>        display "Status:        " result end-display
>
>        call "PQuser" using by value pgconn returning resptr end-call
>
>        set address of resstr to resptr
>        string resstr delimited by x"00" into answer end-string
>        display "User:          " function trim(answer) end-display
>
>        display "call PQexec" end-display
>        call "PQexec" using
>            by value pgconn
>            by reference "select version();" & x"00"
>            returning pgres
>        end-call
>        display pgres end-display
>
>       *> Pull out a result. row 0, field 0 <*
>        call "PQgetvalue" using
>            by value pgres
>            by value 0
>            by value 0
>            returning resptr
>        end-call
>        set address of resstr to resptr
>        string resstr delimited by x"00" into answer end-string
>        display "Version:       " answer end-display
>
>        call "PQfinish" using by value pgconn returning null end-call
>        display "After finish:  " pgconn end-display
>
>        call "PQstatus" using by value pgconn returning result end-call
>        display "Status:        " result end-display
>
>       *> this will now return garbage  <*
>        call "PQuser" using by value pgconn returning resptr end-call
>        set address of resstr to resptr
>        string resstr delimited by x"00" into answer end-string
>        display "User after:    " function trim(answer) end-display
>
>        goback.
>        end program pgcob. 
> ? END CODE ? start cobc -v output ???
> address@hidden:~/Projects/PlanBTest/mhWork$ cobc -L/usr/lib -lpq -std=mvs -v ../cobol_source/PGTest.cbl
> Command line:    cobc -L/usr/lib -lpq -std=mvs -v ../cobol_source/PGTest.cbl
> Preprocessing:    ../cobol_source/PGTest.cbl -> /tmp/cob41797_0.cob
> Return status:    0
> Parsing:    /tmp/cob41797_0.cob (../cobol_source/PGTest.cbl)
> Return status:    0
> Translating:    /tmp/cob41797_0.cob -> /tmp/cob41797_0.c (../cobol_source/PGTest.cbl)
> Executing:    gcc -std=gnu99 -I/usr/local/include -pipe -Wno-unused
>         -fsigned-char -Wno-pointer-sign -shared -fPIC -DPIC
>         -Wl,--export-dynamic -o "PGTest.so" "/tmp/cob41797_0.c"
>         -L/usr/local/lib -lcob -lm -lgmp -lncurses -ldb -ldl -l"pq"
>         -L"/usr/lib"
> Return status:    0
> address@hidden:~/Projects/PlanBTest/mhWork$
> ??? END cobc -v output ???
>> Patrick wrote
>> Hi Marty
>
>> Do you have a little snippet of test code you could share ?
>
>> I am on Debian Stable. I don't seem to be having trouble but maybe I am
>> missing something and have the bug too.
>
>> Is it possible to statically link to see if the problem goes away?
>
>> Could you compile in verbose mode and share?
>
> Thanks
>
> ?
> Marty Heyman
> 510-290-6484 (Mobile)
>
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> ------------------------------------------------------------------------------
> Want excitement?
> Manually upgrade your production database.
> When you want reliability, choose Perforce
> Perforce version control. Predictably reliable.
> http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
>
> ------------------------------
>
> _______________________________________________
> open-cobol-list mailing list
> address@hidden
> https://lists.sourceforge.net/lists/listinfo/open-cobol-list
>
>
> End of open-cobol-list Digest, Vol 83, Issue 6
> **********************************************
>



--

Veit Heise

Breslauer Str. 24, 63477 Maintal, Germany

Phone +49-6181-6108324, Mobile +49-173-244-0194

Email: address@hidden

Member of AFCEA, Armed Forces Communication and Electronics Association, Chapter Bonn, AFCEA Europe, Brussels, Belgium
Member of ACM, Association of Computer Machinery, German Chapter, Munich, Germany
Member of FREELENS, Bundesvereinigung der Fotojournalistinnen u. Fotojournalisten e.V., Hamburg, Germany

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]