TCL-UDP: Problems compiling a modified version (by the developer) of the package
- From: dkushner99@xxxxxxxxx
- Date: Thu, 30 Aug 2007 14:12:48 -0700
Hello,
I'm having some problems compiling the (yet to be released) source for
tcludp (that supports multiple interfaces) and I was wondering if I
can get some help? I installed gcc on my Linux and I downloaded all
the TCL source code. I compiled TCL. That was more of an exercise than
anything else, I already have TCL/TK and some pacjkages installed,
just wanted to get set up to compile this package (tcl_udp) because I
recieved source from the developer. He did include a compiled version
but it's for WIN and I have Linux.
The first problem I had was that there seemed to be files missing from
the zip that was sent as compared to a release 1.0.8 of the same
package. I understand this because it's not released yet. So, I copied
all the files from the release 1.0.8 into the directory structure
under /home/user-name/src/tcludp1.0.8, I renamed the original source
and header file (1.0.8) to tcl_udp.ext.bak and then copied the 2 new
source files (udp_tcl.c, udp_tcl.h) into the same directory. I did ./
configure, then make. This configure looked okay but I had problems
with the make.
The first problem was that I am trying to compile in Linux but during
make it appears NOT to follow the #ifdef for LINUX, so I hardcoded
#define LINUX to the top of these two file and compiled again. It
looks better but I still have errors (see below). I'm not a C
programmer, though I took a couple classes. I know a little bit of C
but have not really used it. Even getting this compile to work has
been dificult. I need the .so for Linux.
Another problem thazt I noticed was that there's an error: "'FIONBIO'
undeclared (first use in this function)". I saw another posting about
referencing 'FIONBIO' and relating it to filio.h, but I shouldn't need
that file for Linux - I think. Anyway, there are problems and I have
not been ableo compile it yet. Any help would be appreciated.
Here is the detail iof my set up.
Platform: Linux
Compiler: gcc
##### COMPILE #######################################
[dkushner@castlerock tcludp-1.0.8]$ ./configure
checking for correct TEA configuration... ok (TEA 3.5)
checking for Tcl configuration... found /usr/local/lib/tclConfig.sh
checking for existence of /usr/local/lib/tclConfig.sh... loading
configure: --prefix defaulting to TCL_PREFIX /usr/local
configure: --exec-prefix defaulting to TCL_EXEC_PREFIX /usr/local
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... yes
checking for ranlib... ranlib
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking if the compiler understands -pipe... yes
checking whether byte ordering is bigendian... no
checking for sin... no
checking for main in -lieee... yes
checking for main in -linet... no
checking net/errno.h usability... no
checking net/errno.h presence... no
checking for net/errno.h... no
checking for connect... yes
checking for gethostbyname... yes
checking dirent.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking values.h usability... yes
checking values.h presence... yes
checking for values.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/filio.h usability... no
checking sys/filio.h presence... no
checking for sys/filio.h... no
checking system version... Linux-2.6.22.1-41.fc7
checking FIONBIO vs. O_NONBLOCK for nonblocking I/O... O_NONBLOCK
checking for Tcl public headers... /usr/local/include
checking for pthread_mutex_init in -lpthread... yes
checking for building with threads... yes (default)
checking how to build libraries... shared
checking if 64bit support is requested... no
checking if 64bit Sparc VIS support is requested... no
checking system version... (cached) Linux-2.6.22.1-41.fc7
checking for dlopen in -ldl... yes
checking for ar... ar
checking for required early compiler flags... _LARGEFILE64_SOURCE
checking for 64-bit integer type... long long
checking for struct dirent64... no
checking for struct stat64... yes
checking for open64... yes
checking for lseek64... yes
checking for off64_t... yes
checking for build with symbols... no
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for usable FD_CLOEXEC flag... yes
checking for tclsh... /usr/local/bin/tclsh8.4
checking for dtplite... :
configure: creating ./config.status
config.status: creating Makefile
[dkushner@castlerock tcludp-1.0.8]$
[dkushner@castlerock tcludp-1.0.8]$
[dkushner@castlerock tcludp-1.0.8]$
[dkushner@castlerock tcludp-1.0.8]$
[dkushner@castlerock tcludp-1.0.8]$
[dkushner@castlerock tcludp-1.0.8]$ make
gcc -pipe -DPACKAGE_NAME=\"udp\" -DPACKAGE_TARNAME=\"udp\" -
DPACKAGE_VERSION=\"1.0.8\" -DPACKAGE_STRING=\"udp\ 1.0.8\" -
DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -
DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -
DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -
DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -
DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_IOCTL_H=1 -DUSE_THREAD_ALLOC=1 -
D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1 -D_LARGEFILE64_SOURCE=1
-DTCL_WIDE_INT_TYPE=long\ long -DHAVE_STRUCT_STAT64=1 -DHAVE_OPEN64=1 -
DHAVE_LSEEK64=1 -DHAVE_TYPE_OFF64_T=1 -DUSE_TCL_STUBS=1 -
DHAVE_FCNTL_H=1 -DHAVE_FLAG_FD_CLOEXEC=1 -I"/usr/local/include" -
O2 -fomit-frame-pointer -Wall -Wno-implicit-int -fPIC -c `echo ./
generic/udp_tcl.c` -o udp_tcl.o
../generic/udp_tcl.c: In function 'udpPeek':
../generic/udp_tcl.c:218: warning: implicit declaration of function
'atoi'
../generic/udp_tcl.c:222: warning: pointer targets in passing argument
6 of 'recvfrom' differ in signedness
../generic/udp_tcl.c:233: warning: implicit declaration of function
'inet_ntoa'
../generic/udp_tcl.c:201: warning: unused variable 'name'
../generic/udp_tcl.c:200: warning: unused variable 'remotehost'
../generic/udp_tcl.c:197: warning: unused variable 'port'
../generic/udp_tcl.c: In function 'udpConf':
../generic/udp_tcl.c:298: warning: implicit declaration of function
'inet_addr'
../generic/udp_tcl.c:254: warning: unused variable 'ret'
../generic/udp_tcl.c: In function 'udpOpen':
../generic/udp_tcl.c:641: warning: implicit declaration of function
'ioctl'
../generic/udp_tcl.c:641: error: 'FIONBIO' undeclared (first use in
this function)
../generic/udp_tcl.c:641: error: (Each undeclared identifier is
reported only once
../generic/udp_tcl.c:641: error: for each function it appears in.)
../generic/udp_tcl.c:645: warning: pointer targets in passing argument
3 of 'getsockname' differ in signedness
../generic/udp_tcl.c:666: warning: pointer targets in passing argument
3 of 'getsockname' differ in signedness
../generic/udp_tcl.c:559: warning: unused variable 'result'
../generic/udp_tcl.c: In function 'Udp_Init':
../generic/udp_tcl.c:907: warning: unused variable 'i'
../generic/udp_tcl.c: In function 'udpOutput':
../generic/udp_tcl.c:944: warning: unused variable 'inp'
../generic/udp_tcl.c: In function 'udpInput':
../generic/udp_tcl.c:1094: warning: pointer targets in passing argument
6 of 'recvfrom' differ in signedness
../generic/udp_tcl.c:1023: warning: unused variable 'i'
../generic/udp_tcl.c:1014: warning: unused variable 'name'
../generic/udp_tcl.c:1010: warning: unused variable 'reply'
../generic/udp_tcl.c:1010: warning: unused variable 'actual_size'
make: *** [udp_tcl.o] Error 1
[dkushner@castlerock tcludp-1.0.8]$
.
- Follow-Ups:
- Re: TCL-UDP: Problems compiling a modified version (by the developer) of the package
- From: Alexandre Ferrieux
- Re: TCL-UDP: Problems compiling a modified version (by the developer) of the package
- Prev by Date: Re: apache and websh
- Next by Date: Re: TCL editor recommendation
- Previous by thread: Need header file to compile tcludp package
- Next by thread: Re: TCL-UDP: Problems compiling a modified version (by the developer) of the package
- Index(es):
Relevant Pages
|