[Python-bugs-list] [Bug #128119] Building under FreeBSD 2.2.1 fails due to unresolved _TELL64
noreply@sourceforge.net
noreply@sourceforge.net
Mon, 08 Jan 2001 17:43:41 -0800
Bug #128119, was updated on 2001-Jan-08 17:43
Here is a current snapshot of the bug.
Project: Python
Category: Build
Status: Open
Resolution: None
Bug Group: Platform-specific
Priority: 5
Submitted by: jh1
Assigned to : nobody
Summary: Building under FreeBSD 2.2.1 fails due to unresolved _TELL64
Details: fileobject.c:274: Undefined symbol `_TELL64' referenced from text
segment
% uname -sr
FreeBSD 2.2.1-RELEASE
% ./configure; make
[...]
gcc -g -O2 -Wall -Wstrict-prototypes -I./../Include -I.. -DHAVE_CONFIG_H -c
fileobject.c
fileobject.c: In function `_portable_fseek':
fileobject.c:274: warning: implicit declaration of function `TELL64'
[...]
cd Modules; make OPT="-g -O2 -Wall -Wstrict-prototypes" VERSION="2.0"
prefix="/usr/local" exec_prefix="/usr/local" LIBRARY=../libpython2.0.a
link
gcc python.o ../libpython2.0.a -lutil -lm -o python
fileobject.c:274: Undefined symbol `_TELL64' referenced from text segment
It compiles cleanly if I use ``gcc -D__NetBSD__'', or, better, if I apply:
diff -u Objects/fileobject.c{~,}
--- Objects/fileobject.c~ Mon Oct 16 14:49:24 2000
+++ Objects/fileobject.c Mon Jan 8 17:41:49 2001
@@ -58,7 +58,7 @@
/* define the appropriate 64-bit capable tell() function */
#if defined(MS_WIN64)
#define TELL64 _telli64
-#elif defined(__NetBSD__) || defined(__OpenBSD__)
+#elif defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__)
/* NOTE: this is only used on older
NetBSD prior to f*o() funcions */
#define TELL64(fd) lseek((fd),0,SEEK_CUR)
For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=128119&group_id=5470