Problem running demo/tcpip / compiling dlls

View: New views
9 Messages — Rating Filter:   Alert me  

Problem running demo/tcpip / compiling dlls

by Joost Kraaijeveld :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I am trying to get the tcp/ip demo running on my Debian (testing)
machine. I am using a freshly checked out version of cint 5.17.00 (svn
co http://root.cern.ch/svn/root/trunk/cint)

After compiling and installing the Debian package using "make deb" I can
run several demo's e.g. the stl demo.

Running the tcp/ip demo however results in:

jkr@panoramix:~/src/cint-5.17.00/demo/tcpip$ cint server.cxx
#error cintsock.dll is not ready. Run setup script in
$CINTSYSDIR/lib/socket directory


Doing so results in the message below, which basically says that I
should have a decent compiler (which I obviously do or I could not have
compiled cint in the first place). I have tried "make dlls" but that
does not build it either.

The dlls that get build (and also installed) are:
./debian/cint/usr/share/cint/cint/include/sys/ipc.dll
./debian/cint/usr/share/cint/cint/include/long.dll
./debian/cint/usr/share/cint/cint/include/stdfunc.dll
./debian/cint/usr/share/cint/cint/include/posix.dll
./debian/cint/usr/share/cint/cint/include/stdcxxfunc.dll
./debian/cint/usr/share/cint/cint/stl/vector.dll
./debian/cint/usr/share/cint/cint/stl/list.dll
./debian/cint/usr/share/cint/cint/stl/deque.dll
./debian/cint/usr/share/cint/cint/stl/map.dll
./debian/cint/usr/share/cint/cint/stl/map2.dll
./debian/cint/usr/share/cint/cint/stl/set.dll
./debian/cint/usr/share/cint/cint/stl/multimap.dll
./debian/cint/usr/share/cint/cint/stl/multimap2.dll
./debian/cint/usr/share/cint/cint/stl/multiset.dll
./debian/cint/usr/share/cint/cint/stl/stack.dll
./debian/cint/usr/share/cint/cint/stl/queue.dll
./debian/cint/usr/share/cint/cint/stl/valarray.dll
./debian/cint/usr/share/cint/cint/stl/exception.dll
./debian/cint/usr/share/cint/cint/stl/stdexcept.dll
./debian/cint/usr/share/cint/cint/stl/climits.dll
./debian/cint/usr/share/cint/cint/stl/complex.dll
./debian/cint/usr/share/cint/cint/stl/string.dll
./debian/cint/usr/share/cint/cint/stl/vectorbool.dll


Is there a solution for this problem? Is there anything I could try or
look at?


panoramix:/usr/share/cint/cint/lib/socket# sh ./setup
cp: cannot stat `/MAKEINFO': No such file or directory
cc  -o mksockh mksockh.c
rm: cannot remove `mksockh.exe': No such file or directory
##########################################################################
# makecint : interpreter-compiler for cint (UNIX version)
# Copyright(c) 1995~2007 Masaharu Goto. Mailing list:
cint@...
##########################################################################
Run 'make -f Makefile' to compile the object
gcc  -DG__SHAREDLIB -DG__OSFDLL -DG__ANSI -DG__ERRORCALLBACK
-DG__SIGNEDCHAR -DG__NEWSTDHEADER -DG__CINT_VER6 -DG__NATIVELONGLONG
-DG__P2FCAST -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO  -O2
-m64  -fPIC  -o cintsock.o -c cintsock.c
/usr/bin/cint  -K -w2 -zcintsock -nG__c_cintsock.c  -D__MAKECINT__
-DG__MAKECINT -DG__SHAREDLIB -DG__OSFDLL -DG__ANSI -DG__ERRORCALLBACK
-DG__SIGNEDCHAR -DG__NEWSTDHEADER -DG__CINT_VER6 -DG__NATIVELONGLONG
-DG__P2FCAST -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO   -c-2
-I/usr/include  -DG__SHAREDLIB -DG__OSFDLL -DG__ANSI -DG__ERRORCALLBACK
-DG__SIGNEDCHAR -DG__NEWSTDHEADER -DG__CINT_VER6 -DG__NATIVELONGLONG
-DG__P2FCAST -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO  -Z0
cintsock.h
#error "You need a ISO C conforming compiler to use the glibc headers"
!!!Removing G__c_cintsock.c G__c_cintsock.h !!!
make: *** [G__c_cintsock.c] Error 1
rm: cannot remove `G__*': No such file or directory


TIA

--
Groeten,

Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
web: www.askesis.nl



AW: Problem running demo/tcpip / compiling dlls

by Louis-35 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi J.
You problem is exactly at this line:
cc  -o mksockh mksockh.c
You compiled cint with gcc, but you try to compile the lib with cc.
Change the compiler executable within the makefile from cc to gcc and it
should compile.

Greets Louis

-----Ursprüngliche Nachricht-----
Von: owner-cint@... [mailto:owner-cint@...] Im Auftrag von
Joost Kraaijeveld
Gesendet: Dienstag, 15. September 2009 10:50
An: cint@...
Betreff: [CINT] Problem running demo/tcpip / compiling dlls

Hi,

I am trying to get the tcp/ip demo running on my Debian (testing)
machine. I am using a freshly checked out version of cint 5.17.00 (svn
co http://root.cern.ch/svn/root/trunk/cint)

After compiling and installing the Debian package using "make deb" I can
run several demo's e.g. the stl demo.

Running the tcp/ip demo however results in:

jkr@panoramix:~/src/cint-5.17.00/demo/tcpip$ cint server.cxx
#error cintsock.dll is not ready. Run setup script in
$CINTSYSDIR/lib/socket directory


Doing so results in the message below, which basically says that I
should have a decent compiler (which I obviously do or I could not have
compiled cint in the first place). I have tried "make dlls" but that
does not build it either.

The dlls that get build (and also installed) are:
./debian/cint/usr/share/cint/cint/include/sys/ipc.dll
./debian/cint/usr/share/cint/cint/include/long.dll
./debian/cint/usr/share/cint/cint/include/stdfunc.dll
./debian/cint/usr/share/cint/cint/include/posix.dll
./debian/cint/usr/share/cint/cint/include/stdcxxfunc.dll
./debian/cint/usr/share/cint/cint/stl/vector.dll
./debian/cint/usr/share/cint/cint/stl/list.dll
./debian/cint/usr/share/cint/cint/stl/deque.dll
./debian/cint/usr/share/cint/cint/stl/map.dll
./debian/cint/usr/share/cint/cint/stl/map2.dll
./debian/cint/usr/share/cint/cint/stl/set.dll
./debian/cint/usr/share/cint/cint/stl/multimap.dll
./debian/cint/usr/share/cint/cint/stl/multimap2.dll
./debian/cint/usr/share/cint/cint/stl/multiset.dll
./debian/cint/usr/share/cint/cint/stl/stack.dll
./debian/cint/usr/share/cint/cint/stl/queue.dll
./debian/cint/usr/share/cint/cint/stl/valarray.dll
./debian/cint/usr/share/cint/cint/stl/exception.dll
./debian/cint/usr/share/cint/cint/stl/stdexcept.dll
./debian/cint/usr/share/cint/cint/stl/climits.dll
./debian/cint/usr/share/cint/cint/stl/complex.dll
./debian/cint/usr/share/cint/cint/stl/string.dll
./debian/cint/usr/share/cint/cint/stl/vectorbool.dll


Is there a solution for this problem? Is there anything I could try or
look at?


panoramix:/usr/share/cint/cint/lib/socket# sh ./setup
cp: cannot stat `/MAKEINFO': No such file or directory
cc  -o mksockh mksockh.c
rm: cannot remove `mksockh.exe': No such file or directory
##########################################################################
# makecint : interpreter-compiler for cint (UNIX version)
# Copyright(c) 1995~2007 Masaharu Goto. Mailing list:
cint@...
##########################################################################
Run 'make -f Makefile' to compile the object
gcc  -DG__SHAREDLIB -DG__OSFDLL -DG__ANSI -DG__ERRORCALLBACK
-DG__SIGNEDCHAR -DG__NEWSTDHEADER -DG__CINT_VER6 -DG__NATIVELONGLONG
-DG__P2FCAST -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO  -O2
-m64  -fPIC  -o cintsock.o -c cintsock.c
/usr/bin/cint  -K -w2 -zcintsock -nG__c_cintsock.c  -D__MAKECINT__
-DG__MAKECINT -DG__SHAREDLIB -DG__OSFDLL -DG__ANSI -DG__ERRORCALLBACK
-DG__SIGNEDCHAR -DG__NEWSTDHEADER -DG__CINT_VER6 -DG__NATIVELONGLONG
-DG__P2FCAST -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO   -c-2
-I/usr/include  -DG__SHAREDLIB -DG__OSFDLL -DG__ANSI -DG__ERRORCALLBACK
-DG__SIGNEDCHAR -DG__NEWSTDHEADER -DG__CINT_VER6 -DG__NATIVELONGLONG
-DG__P2FCAST -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO  -Z0
cintsock.h
#error "You need a ISO C conforming compiler to use the glibc headers"
!!!Removing G__c_cintsock.c G__c_cintsock.h !!!
make: *** [G__c_cintsock.c] Error 1
rm: cannot remove `G__*': No such file or directory


TIA

--
Groeten,

Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
web: www.askesis.nl



Re: AW: Problem running demo/tcpip / compiling dlls

by Joost Kraaijeveld :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Louis,

Thanks for answering.

On Tue, 2009-09-15 at 20:46 +0200, Louis wrote:
> Hi J.
> You problem is exactly at this line:
> cc  -o mksockh mksockh.c
> You compiled cint with gcc, but you try to compile the lib with cc.
> Change the compiler executable within the makefile from cc to gcc and it
> should compile.

The makefile is generated by the setup script (which also automatically
remove both the makefile and o file after compilation).

Fiddling with some "export CC=" statements changed the compiler but
there definitely seems to be something wrong:

panoramix:/usr/share/cint/cint/lib/socket# sh ./setup
cp: cannot stat `/MAKEINFO': No such file or directory
gcc  -o mksockh mksockh.c
rm: cannot remove `mksockh.exe': No such file or directory
##########################################################################
# makecint : interpreter-compiler for cint (UNIX version)
# Copyright(c) 1995~2007 Masaharu Goto. Mailing list: cint@...
##########################################################################
Run 'make -f Makefile' to compile the object
gcc  -DG__SHAREDLIB -DG__OSFDLL -DG__ANSI -DG__ERRORCALLBACK -DG__SIGNEDCHAR -DG__NEWSTDHEADER -DG__CINT_VER6 -DG__NATIVELONGLONG -DG__P2FCAST -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO  -O2 -m64  -fPIC  -o cintsock.o -c cintsock.c
/usr/bin/cint  -K -w2 -zcintsock -nG__c_cintsock.c  -D__MAKECINT__ -DG__MAKECINT -DG__SHAREDLIB -DG__OSFDLL -DG__ANSI -DG__ERRORCALLBACK -DG__SIGNEDCHAR -DG__NEWSTDHEADER -DG__CINT_VER6 -DG__NATIVELONGLONG -DG__P2FCAST -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO   -c-2  -I/usr/include  -DG__SHAREDLIB -DG__OSFDLL -DG__ANSI -DG__ERRORCALLBACK -DG__SIGNEDCHAR -DG__NEWSTDHEADER -DG__CINT_VER6 -DG__NATIVELONGLONG -DG__P2FCAST -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO  -Z0 cintsock.h
#error "You need a ISO C conforming compiler to use the glibc headers"
!!!Removing G__c_cintsock.c G__c_cintsock.h !!!
make: *** [G__c_cintsock.c] Error 1
rm: cannot remove `G__*': No such file or directory
panoramix:/usr/share/cint/cint/lib/socket#



--
Groeten,

Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
web: www.askesis.nl



Re: Problem running demo/tcpip / compiling dlls

by Philippe Canal :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Joost,

I just updated (revision 30247) the setup script (it nows works for me :)).
Can you give it a try?

Thanks,
Philippe.

Joost Kraaijeveld wrote:

> Hi,
>
> I am trying to get the tcp/ip demo running on my Debian (testing)
> machine. I am using a freshly checked out version of cint 5.17.00 (svn
> co http://root.cern.ch/svn/root/trunk/cint)
>
> After compiling and installing the Debian package using "make deb" I can
> run several demo's e.g. the stl demo.
>
> Running the tcp/ip demo however results in:
>
> jkr@panoramix:~/src/cint-5.17.00/demo/tcpip$ cint server.cxx
> #error cintsock.dll is not ready. Run setup script in
> $CINTSYSDIR/lib/socket directory
>
>
> Doing so results in the message below, which basically says that I
> should have a decent compiler (which I obviously do or I could not have
> compiled cint in the first place). I have tried "make dlls" but that
> does not build it either.
>
> The dlls that get build (and also installed) are:
> ./debian/cint/usr/share/cint/cint/include/sys/ipc.dll
> ./debian/cint/usr/share/cint/cint/include/long.dll
> ./debian/cint/usr/share/cint/cint/include/stdfunc.dll
> ./debian/cint/usr/share/cint/cint/include/posix.dll
> ./debian/cint/usr/share/cint/cint/include/stdcxxfunc.dll
> ./debian/cint/usr/share/cint/cint/stl/vector.dll
> ./debian/cint/usr/share/cint/cint/stl/list.dll
> ./debian/cint/usr/share/cint/cint/stl/deque.dll
> ./debian/cint/usr/share/cint/cint/stl/map.dll
> ./debian/cint/usr/share/cint/cint/stl/map2.dll
> ./debian/cint/usr/share/cint/cint/stl/set.dll
> ./debian/cint/usr/share/cint/cint/stl/multimap.dll
> ./debian/cint/usr/share/cint/cint/stl/multimap2.dll
> ./debian/cint/usr/share/cint/cint/stl/multiset.dll
> ./debian/cint/usr/share/cint/cint/stl/stack.dll
> ./debian/cint/usr/share/cint/cint/stl/queue.dll
> ./debian/cint/usr/share/cint/cint/stl/valarray.dll
> ./debian/cint/usr/share/cint/cint/stl/exception.dll
> ./debian/cint/usr/share/cint/cint/stl/stdexcept.dll
> ./debian/cint/usr/share/cint/cint/stl/climits.dll
> ./debian/cint/usr/share/cint/cint/stl/complex.dll
> ./debian/cint/usr/share/cint/cint/stl/string.dll
> ./debian/cint/usr/share/cint/cint/stl/vectorbool.dll
>
>
> Is there a solution for this problem? Is there anything I could try or
> look at?
>
>
> panoramix:/usr/share/cint/cint/lib/socket# sh ./setup
> cp: cannot stat `/MAKEINFO': No such file or directory
> cc  -o mksockh mksockh.c
> rm: cannot remove `mksockh.exe': No such file or directory
> ##########################################################################
> # makecint : interpreter-compiler for cint (UNIX version)
> # Copyright(c) 1995~2007 Masaharu Goto. Mailing list:
> cint@...
> ##########################################################################
> Run 'make -f Makefile' to compile the object
> gcc  -DG__SHAREDLIB -DG__OSFDLL -DG__ANSI -DG__ERRORCALLBACK
> -DG__SIGNEDCHAR -DG__NEWSTDHEADER -DG__CINT_VER6 -DG__NATIVELONGLONG
> -DG__P2FCAST -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO  -O2
> -m64  -fPIC  -o cintsock.o -c cintsock.c
> /usr/bin/cint  -K -w2 -zcintsock -nG__c_cintsock.c  -D__MAKECINT__
> -DG__MAKECINT -DG__SHAREDLIB -DG__OSFDLL -DG__ANSI -DG__ERRORCALLBACK
> -DG__SIGNEDCHAR -DG__NEWSTDHEADER -DG__CINT_VER6 -DG__NATIVELONGLONG
> -DG__P2FCAST -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO   -c-2
> -I/usr/include  -DG__SHAREDLIB -DG__OSFDLL -DG__ANSI -DG__ERRORCALLBACK
> -DG__SIGNEDCHAR -DG__NEWSTDHEADER -DG__CINT_VER6 -DG__NATIVELONGLONG
> -DG__P2FCAST -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO  -Z0
> cintsock.h
> #error "You need a ISO C conforming compiler to use the glibc headers"
> !!!Removing G__c_cintsock.c G__c_cintsock.h !!!
> make: *** [G__c_cintsock.c] Error 1
> rm: cannot remove `G__*': No such file or directory
>
>
> TIA
>
>  


bugs in parsing ++/-- operators?

by David Bremner-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


It seems like the cint parser has trouble with

- --j

and

+ ++j

here are some test cases

,----
| cint> {int i=1; int j=1; printf("%d", --i - --j); }
| -1(const int)2
| cint>
| cint> {int i=1; int j=1; printf("%d\n", --i - --j); }
| -1
| (const int)3
| cint> {int i=1; int j=1; printf("%d\n", ++i - --j); }
| -1
| (const int)3
| cint> {int i=1; int j=1; printf("%d\n", ++i - ++j); }
| 0
| (const int)2
| cint> {int i=1; int j=1; printf("%d\n", ++i + ++j); }
| 1
| (const int)2
| cint>
`----

Adding enough parentheses fixes the failing ones.

This is svn revision 30149, banner says
 revision     : 5.17.00, Dec 21, 2008 by M.Goto



Re: bugs in parsing ++/-- operators?

by Axel Naumann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi David,

we are aware of these parsing limitations. We don't plan to fix them -
it would require a substantial rewrite of the operator parser. I hope
that the workaround that you already found yourself is sufficient for
you... If it's not then your patches are always welcome!

Cheers, Axel.

David Bremner wrote on 09/22/2009 03:24 PM:

> It seems like the cint parser has trouble with
>
> - --j
>
> and
>
> + ++j
>
> here are some test cases
>
> ,----
> | cint> {int i=1; int j=1; printf("%d", --i - --j); }
> | -1(const int)2
> | cint>
> | cint> {int i=1; int j=1; printf("%d\n", --i - --j); }
> | -1
> | (const int)3
> | cint> {int i=1; int j=1; printf("%d\n", ++i - --j); }
> | -1
> | (const int)3
> | cint> {int i=1; int j=1; printf("%d\n", ++i - ++j); }
> | 0
> | (const int)2
> | cint> {int i=1; int j=1; printf("%d\n", ++i + ++j); }
> | 1
> | (const int)2
> | cint>
> `----
>
> Adding enough parentheses fixes the failing ones.
>
> This is svn revision 30149, banner says
>  revision     : 5.17.00, Dec 21, 2008 by M.Goto
>
>
>


Re: bugs in parsing ++/-- operators?

by David Bremner-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Err, sorry about the bad threading. I think anything I do now will make things worse...

At Tue, 22 Sep 2009 15:43:31 +0200,
Axel Naumann wrote:

> we are aware of these parsing limitations. We don't plan to fix them -
> it would require a substantial rewrite of the operator parser. I hope
> that the workaround that you already found yourself is sufficient for
> you... If it's not then your patches are always welcome!

It is a bit unfortunate for teaching purposes. I have been using CINT
to quickly run snippets of C code during lectures, and although these
expressions are ugly, they are exactly the kind of corner cases one
wants to test.  I understand however that exact C standard compliance
is not really a design goal for CINT.  

d



Re: bugs in parsing ++/-- operators?

by Axel Naumann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi David,

David Bremner wrote on 09/22/2009 04:39 PM:

>> we are aware of these parsing limitations. We don't plan to fix them -
>> it would require a substantial rewrite of the operator parser. I hope
>> that the workaround that you already found yourself is sufficient for
>> you... If it's not then your patches are always welcome!
>
> It is a bit unfortunate for teaching purposes. I have been using CINT
> to quickly run snippets of C code during lectures, and although these
> expressions are ugly, they are exactly the kind of corner cases one
> wants to test.  I understand however that exact C standard compliance
> is not really a design goal for CINT.  

It wasn't, and now it's too late for some of the corners... Sorry for
the bad news :-(

Cheers, Axel.


Parent Message unknown Re: Problem running demo/tcpip / compiling dlls

by Joost Kraaijeveld :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Philippe,

[Added a CC to the mailing list which got lost with my previous ]

On Thu, 2009-09-24 at 10:18 -0500, Philippe Canal wrote:

> Hi Joost,
>
> Do you see the same problem with the 'old'/'current core.
>
> Philippe.
>
> Joost Kraaijeveld wrote:
> > Hi Phillipe,
> >
> > Thanks for your response.
> >
> > I succeeded in compiling the socket dll. What I did was:
> >
> > svn co http://root.cern.ch/svn/root/trunk/cint cint
> > cd cint
> > ./configure --coreversion=new
> > make all
> > export PATH=$PWD/bin:$PATH
> > export LD_LIBRARY_PATH=$PWD/lib:$LD_LIBRARY_PATH
> > export CINTSYSDIR=$PWD
> > cd cint7/lib/socket/
> > sh ./setup
> >
> > copy the dll to $CINTSYSDIR/cint7/include
> >
> > cd ../../../demo/tcpip/
> > cint server.cxx
> >

I did not need to copy the dll manually (because of your path to the
setup script I believe). otherwise the procedure was the same and leaded
to a working standalone cint and a compilation of the socket dll.

I also investigated the Debian package problems a bit further and will
start a new Debian thread for that.

thanks,


--
Groeten,

Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
web: www.askesis.nl