Howto compile TCL-dp ?

Howto compile TCL-dp ?

Post by Sven Gegg » Mon, 22 May 1995 04:00:00



Hi all,

I recently tried to compile tcl-dp on LINUX (Kernel is 1.2.6)
without sucess. I was able to compile tcl and tk before, so this
can't be the problem.

The compiler gives the following error Messages:

  > In file included from /usr/include/linux/in.h:118,
  >                  from /usr/include/netinet/in.h:78,
  >                  from dpnetwork.c:55:
  > /usr/include/asm/byteorder.h:12: conflicting types for `ntohl'
  > dpInt.h:50: previous declaration of `ntohl'
  > /usr/include/asm/byteorder.h:14: conflicting types for `htonl'
  > dpInt.h:49: previous declaration of `htonl'
  > make: *** [dpnetwork.o] Error 1

It would be nice if somebody could help me with this.

TIA

Sven

--


       PHONE     : +49 7244 4952
       SNAILMAIL: Sven Geggus - Haydnstr.5 - 76356 Weingarten - GERMANY
   >> Escape from the "GATES" of HELL ! Use LINUX, it's better NT anyway! <<  

 
 
 

Howto compile TCL-dp ?

Post by Lou Parr » Mon, 22 May 1995 04:00:00


: Hi all,

: I recently tried to compile tcl-dp on LINUX (Kernel is 1.2.6)
: without sucess. I was able to compile tcl and tk before, so this
: can't be the problem.

: The compiler gives the following error Messages:

:   > In file included from /usr/include/linux/in.h:118,
:   >                  from /usr/include/netinet/in.h:78,
:   >                  from dpnetwork.c:55:
:   > /usr/include/asm/byteorder.h:12: conflicting types for `ntohl'
:   > dpInt.h:50: previous declaration of `ntohl'
:   > /usr/include/asm/byteorder.h:14: conflicting types for `htonl'
:   > dpInt.h:49: previous declaration of `htonl'
:   > make: *** [dpnetwork.o] Error 1

: It would be nice if somebody could help me with this.
        Try editing the file dpInt.h and removing the declaration of htonl...

        OR, remove it from <asm/byteorder.h> line 12 / 14.

        Probably it won't kill anything.

: TIA

: Sven

: --


:        PHONE   : +49 7244 4952
:        SNAILMAIL: Sven Geggus - Haydnstr.5 - 76356 Weingarten - GERMANY
:    >> Escape from the "GATES" of HELL ! Use LINUX, it's better NT anyway! <<  

 
 
 

Howto compile TCL-dp ?

Post by Erik Huddlest » Wed, 24 May 1995 04:00:00





>: Hi all,

>: I recently tried to compile tcl-dp on LINUX (Kernel is 1.2.6)
>: without sucess. I was able to compile tcl and tk before, so this
>: can't be the problem.

>: The compiler gives the following error Messages:

>:   > In file included from /usr/include/linux/in.h:118,
>:   >                  from /usr/include/netinet/in.h:78,
>:   >                  from dpnetwork.c:55:
>:   > /usr/include/asm/byteorder.h:12: conflicting types for `ntohl'
>:   > dpInt.h:50: previous declaration of `ntohl'
>:   > /usr/include/asm/byteorder.h:14: conflicting types for `htonl'
>:   > dpInt.h:49: previous declaration of `htonl'
>:   > make: *** [dpnetwork.o] Error 1

If you look in asm/byteorder you will notice that ntohl and htonl are type long.
If you look in dpInt.h you will notice that they are looking for type int
Simply change dpInt.h lines 49 and 50 to long instead of int.  Works great.

- Show quoted text -

>: It would be nice if somebody could help me with this.
>    Try editing the file dpInt.h and removing the declaration of htonl...

>    OR, remove it from <asm/byteorder.h> line 12 / 14.

>    Probably it won't kill anything.

>: TIA

>: Sven

>: --


>:        PHONE       : +49 7244 4952
>:        SNAILMAIL: Sven Geggus - Haydnstr.5 - 76356 Weingarten - GERMANY
>:    >> Escape from the "GATES" of HELL ! Use LINUX, it's better NT anyway! <<  

Erik

*********************************************************
*Erik Huddleston -- System Administrator                *
*Illuminati Online -- Internet Access for Central Texas *

*********************************************************

 
 
 

Howto compile TCL-dp ?

Post by Andrew Macphers » Tue, 30 May 1995 04:00:00





| >
| >:   > In file included from /usr/include/linux/in.h:118,
| >:   >                  from /usr/include/netinet/in.h:78,
| >:   >                  from dpnetwork.c:55:
| >:   > /usr/include/asm/byteorder.h:12: conflicting types for `ntohl'
| >:   > dpInt.h:50: previous declaration of `ntohl'
| >:   > /usr/include/asm/byteorder.h:14: conflicting types for `htonl'
| >:   > dpInt.h:49: previous declaration of `htonl'
| >:   > make: *** [dpnetwork.o] Error 1

configure defines HTONL and dpInt.h looks for NTOHL (or vice-versa).  Change
the the #ifdef in dpInt.h

Now a follow-up question.   make test

When I run this it hangs in connect.test
==== connect-2.1 test of connecting to previously made unix server

The process is in state S )ps)
strace traces into the connect call, but never returns.

Running a seperate dptcl process, one can connect successfully.

Anyone know what's going on here?

If one decides to re-order the tests at this point, object and rpc tests
succeed, then the udp test... there are other
problems

==== udp-2.0 test of dp_socketOption sendBuffer

==== udp-2.0 test of dp_socketOption sendBuffer
==== Contents of test case:

dp_socketOption $sfile sendBuffer

==== Result was:
32767
---- Result should have been:

---- udp-2.0 FAILED
==== udp-2.1 test of dp_socketOption recvBuffer

==== udp-2.1 test of dp_socketOption recvBuffer
==== Contents of test case:

dp_socketOption $sfile recvBuffer

==== Result was:
32767
---- Result should have been:

---- udp-2.1 FAILED
==== udp-2.2 test of dp_socketOption
==== udp-2.3 test of dp_socketOption

==== udp-2.3 test of dp_socketOption
==== Contents of test case:

dp_socketOption $afile recvBuffer 200
dp_socketOption $afile recvBuffer

==== Result was:
256
---- Result should have been:
200
---- udp-2.3 FAILED
==== udp-2.4 send a message between two udp sockets that should be dropped
==== udp-2.5 send a message between two udp sockets that should be dropped

Another hangup at this point...

Anyone got any pointers?

Linux bhari447 1.2.1 #8 Tue May 23 16:55:08 BST 1995 i386

Slackware distribution,

Fixed with kernel release # would be an ideal answer
--

"Northern Telecom has committed to a 30% reduction in its use of paper
 by the year 2000."   No faxes, or printouts please, just e-mail.

 
 
 

Howto compile TCL-dp ?

Post by Andrew Macphers » Wed, 31 May 1995 04:00:00



experiencing with getting TCL-DP to pass it's own test suite.  I can now
refine the question to a very short test case.

I have the slackware 1.2.1 kernel, and related distribution.   This
test program hangs.  It works fine on a Sun (header file changes needed
of course --- and there are a whole lot of includes here that are not
strictly needed.)

Q1.  Is it just on my machine this fails?

Q2.  If not, does it work on a subsequent kernel

Thank you, kind person who checks this out.

--------- Test Case Code here ---------

#include <stdio.h>
#include <assert.h>
#include <ctype.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <errno.h>
#include <sys/un.h>
#include <sys/param.h>
#include <sys/ioctl.h>
#include <sys/uio.h>
#include <fcntl.h>

#define SOCKET "/tmp/socket"

main() {
    int server, client;
    struct sockaddr_un s_sock, c_sock, link;
    int paranoia;

    if ((server = socket(PF_UNIX, SOCK_STREAM, 0)) < 0) {
        perror("server socket");
        exit (-1);
    }
    if ((client = socket(PF_UNIX, SOCK_STREAM, 0)) < 0) {
        perror("client socket");
        exit (-1);
    }
    memset((char *) &s_sock, 0, sizeof(struct sockaddr_un));
    memset((char *) &c_sock, 0, sizeof(struct sockaddr_un));

    s_sock.sun_family = AF_UNIX ;
    c_sock.sun_family = AF_UNIX ;

    strcpy(s_sock.sun_path, SOCKET);
    strcpy(c_sock.sun_path, SOCKET);

    unlink(SOCKET);

    if (bind(server, (struct sockaddr *)&s_sock, sizeof(s_sock)) < 0) {
        perror("Server socket bind");
        exit(2);
    }

    if (listen(server, 5) == -1) {
        perror("Listen on server");
        exit(3);
    }

    fprintf(stderr,"Attempting connexion\n");

    if (connect(client, (struct sockaddr *)&c_sock, sizeof(c_sock)) < 0) {
        perror("Client socket connect");
        exit(2);
    }

    fprintf(stderr,"Connexion succeeded\n");

    paranoia = sizeof(link) ;
    if (accept(server, (struct sockaddr *)&link, &paranoia) < 0) {
        perror("accept");
        exit(4);
    }
    fprintf(stderr,"All is well, please proceed to next debugging step\n");
    unlink(SOCKET);
    return(0);

Quote:}

--

"Northern Telecom has committed to a 30% reduction in its use of paper
 by the year 2000."   No faxes, or printouts please, just e-mail.
 
 
 

Howto compile TCL-dp ?

Post by Rene Pijlma » Wed, 31 May 1995 04:00:00




>experiencing with getting TCL-DP to pass it's own test suite.  I can now
>refine the question to a very short test case.

>I have the slackware 1.2.1 kernel, and related distribution.   This
>test program hangs.  It works fine on a Sun (header file changes needed
>of course --- and there are a whole lot of includes here that are not
>strictly needed.)

>Q1.  Is it just on my machine this fails?

No. It hangs on mine as well (kernel 1.2.5, gcc 2.5.8).

Quote:>Q2.  If not, does it work on a subsequent kernel

>Thank you, kind person who checks this out.

>--------- Test Case Code here ---------

This looks like a silly test program to me. It's both a server (listen()) and
a client (connect()) in one process. I haven't been able to find any spec
which says that connect() is supposed to return before the server has done
accept(). I think connect() is entitled to block.

... code deleted ...

Quote:>    if (listen(server, 5) == -1) {
>    perror("Listen on server");
>    exit(3);
>    }

>    fprintf(stderr,"Attempting connexion\n");

>    if (connect(client, (struct sockaddr *)&c_sock, sizeof(c_sock)) < 0) {
>    perror("Client socket connect");
>    exit(2);
>    }

>    fprintf(stderr,"Connexion succeeded\n");

>    paranoia = sizeof(link) ;
>    if (accept(server, (struct sockaddr *)&link, &paranoia) < 0) {
>    perror("accept");
>    exit(4);

... code deleted ...


>"Northern Telecom has committed to a 30% reduction in its use of paper
> by the year 2000."   No faxes, or printouts please, just e-mail.

HTH,
-Ren\'e Pijlman-                      _-^^-_

                                   //   _ -  /
On no account allow a Vogon       || \  -  /\\
to read poetry at you.            ||  \___/ ||
- Hitchiker's Guide to the Galaxy ||       //|\
------------------------------------------------
 
 
 

Howto compile TCL-dp ?

Post by Andrew Macphers » Thu, 01 Jun 1995 04:00:00



| >
| >Q1.  Is it just on my machine this fails?
| No. It hangs on mine as well (kernel 1.2.5, gcc 2.5.8).
|
| >Q2.  If not, does it work on a subsequent kernel
| >
| >Thank you, kind person who checks this out.
| >
| >--------- Test Case Code here ---------
| This looks like a silly test program to me. It's both a server (listen()) and
| a client (connect()) in one process. I haven't been able to find any spec
| which says that connect() is supposed to return before the server has done
| accept(). I think connect() is entitled to block.

While I have sympathy with this view, the test program is, in synopsis, the
code run by tcl-dp as tests connect.test 2.0, 2.1, 2.2.   If there were a
clear standard for this then no problem.  My problem is that the code
runs successfully to completion on a Sun, but not on Linux.

That in itself is not a killer, but there is a package written in tcl-dp
which I wish to run.  On Linux.  While I don't think tcl-dp makes use of
this feature in this package, I have less confidence in the package that
cannot complete its own installation tests.
--

"Northern Telecom has committed to a 30% reduction in its use of paper
 by the year 2000."   No faxes, or printouts please, just e-mail.

 
 
 

1. Problems compiling groupkit & tcl-dp

I am not able to compile groupkit3.2 and tcl-dp3.5b2 with
tcl7.6 and tk4.2.
gcc does not find the library 'nsl', does anybody of you know this
library and if so, where to find it.

2. Calling process

3. Trouble Compiling tcl-dp !!

4. RedHat 7.1 repeated "freezes" and filesystem problems

5. TCL-DP compiling problems

6. /sbin/install-info

7. Compiled tcl-dp

8. UDMA transfer rate

9. Problem compiling tcl-dp/running Zircon

10. Compiled tcl-dp

11. tcl-dp and term114?

12. Problems building tcl-dp

13. tcl-dp Package for linux? Anyone built it?