Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 May 1997 22:04:32 +0200
From:      jesse@eva.cs.Uni-Magdeburg.DE (Roland Jesse)
To:        stable@freebsd.org
Subject:   compiling libtcl fails
Message-ID:  <199705202004.WAA03230@pflaume.cs.uni-magdeburg.de>

next in thread | raw e-mail | index | archive | help
With the cvsuped sources (date: May 20, RELENG_2_2) it is not possible
to compile /usr/src/lib/libtcl:

j:/<1>src/lib/libtcl# make
cc -O -I/usr/src/lib/libtcl/../../contrib/tcl/generic -I/usr/src/lib/libtcl/../../contrib/tcl/unix -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TM_ZONE=1 -DHAVE_TM_GMTOFF=1 -DSTDC_HEADERS=1 -DNEED_MATHERR=1 -DTCL_SHLIB_EXT=\".so\" -DTCL_LIBRARY=\"/usr/libdata/tcl\" -c /usr/src/lib/libtcl/../../contrib/tcl/unix/tclMtherr.c -o tclMtherr.o
/usr/src/lib/libtcl/../../contrib/tcl/unix/tclMtherr.c: In function `matherr':
/usr/src/lib/libtcl/../../contrib/tcl/unix/tclMtherr.c:80: dereferencing pointer to incomplete type
/usr/src/lib/libtcl/../../contrib/tcl/unix/tclMtherr.c:80: `DOMAIN' undeclared (first use this function)
/usr/src/lib/libtcl/../../contrib/tcl/unix/tclMtherr.c:80: (Each undeclared identifier is reported only once
/usr/src/lib/libtcl/../../contrib/tcl/unix/tclMtherr.c:80: for each function it appears in.)
/usr/src/lib/libtcl/../../contrib/tcl/unix/tclMtherr.c:80: dereferencing pointer to incomplete type
/usr/src/lib/libtcl/../../contrib/tcl/unix/tclMtherr.c:80: `SING' undeclared (first use this function)
*** Error code 1

Stop.

/usr/src/contrib/tcl/unix/tclMtherr.c:
/*
 * The following definitions allow matherr to compile on systems
 * that don't really support it.  The compiled procedure is bogus,
 * but it will never be executed on these systems anyway.
 */

#ifndef NEED_MATHERR
struct exception {
    int type;
};
#define DOMAIN 0
#define SING 0
#endif
...
int
matherr(xPtr)
    struct exception *xPtr;	/* Describes error that occurred. */
{
...
}

It looks like this is an mistake. Or am I thinking the wrong way?


A make in /usr/src/lib/libc fails with some undefined symbols,
especially in res_stubs.so. 
...
===> libc
Warning: Object directory not changed from original /usr/src/lib/libc
building shared c library (version 3.0)
nm: bt_debug.so: no name list.
nm: euc.so: no name list.
nm: utf2.so: no name list.
/usr/lib/crt0.o: Undefined symbol `_main' referenced from text segment
res_stubs.so: Undefined symbol `_p_secstodate' referenced
res_stubs.so: Undefined symbol `_b64_pton' referenced
res_stubs.so: Undefined symbol `_p_secstodate' referenced
res_stubs.so: Undefined symbol `_sym_ston' referenced
res_stubs.so: Undefined symbol `_dn_count_labels' referenced
res_stubs.so: Undefined symbol `_dn_count_labels' referenced
res_stubs.so: Undefined symbol `_sym_ntos' referenced
...

Any hints for solving the problems are greatly appreciated.
-- 
+-------------
| Roland Jesse <jesse@cs.uni-magdeburg.de>
|  http://www.cs.uni-magdeburg.de/~jesse/  |
                                      -----+



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199705202004.WAA03230>