From: "Peter Petrakis" <voodoo@alphadriven.org>
To: <axp-list@redhat.com>
Subject: yeah baby :-) RE: error logs RE: compiling X with ccc
Date: Mon, 11 Mar 2002 20:33:09 -0500 [thread overview]
Message-ID: <ODEEIIAMNNHHFAMGOBAPKEOMCAAA.voodoo@alphadriven.org> (raw)
In-Reply-To: <20020311174944.A7347@ellpspace.math.ualberta.ca>
> 'make -Dalloca=malloc' or add this define to your compilation flags.
OK. Tried it. same effect :-). I think the root of the problem is the linker
doesnt know what lmalloc is to begin with. Take it down to the bare bones.
# ld imake.o
will give me about 50 lines of undefined symbols.
voodoo@asterix:~/Xfree/build/config/imake > ld imake.o -lc
ld: warning: cannot find entry symbol __start; defaulting to
0000000120000f60
imake.o: In function `get_libc_version':
:1010: undefined reference to `alloca'
:1010: undefined reference to `alloca'
:1010: undefined reference to `alloca'
and finally
voodoo@asterix:~/Xfree/build/config/imake > ld imake.o -lmalloc -lc
ld: cannot find -lmalloc
So either I don't have lmalloc (how), The linker needs to be told EXACTLY
where to look, or is that even the proper lib that holds alloca().
Let's bring it back some with using rpath-link which from what the man
page says should have /lib,/usr/lib in its path,
voodoo@asterix:~/Xfree/build/config/imake > ld -rpath-link
../../exports/lib -lc imake.o
ld: warning: cannot find entry symbol __start; defaulting to
0000000120000ee0
imake.o: In function `get_distrib':
:961: undefined reference to `lstat'
:961: undefined reference to `lstat'
:961: undefined reference to `lstat'
:966: undefined reference to `lstat'
:966: undefined reference to `lstat'
imake.o::966: more undefined references to `lstat' follow
imake.o: In function `get_libc_version':
:1010: undefined reference to `alloca'
:1010: undefined reference to `alloca'
:1010: undefined reference to `alloca'
imake.o: In function `get_gcc_incdir':
:1179: undefined reference to `lstat'
:1179: undefined reference to `lstat'
:1179: undefined reference to `lstat'
imake.o: In function `CleanCppInput':
:1349: undefined reference to `fstat'
:1349: undefined reference to `fstat'
:1349: undefined reference to `fstat'
imake.o: In function `ReadLine':
:1554: undefined reference to `fstat'
:1554: undefined reference to `fstat'
imake.o::1554: more undefined references to `fstat' follow
get_gcc_incdir you say? Hmmmm.
get_gcc_incdir(FILE *inFile)
{
static char* gcc_path[] = {
#if defined(linux) || defined(__OpenBSD__) || defined (__GNU__)
"/usr/bin/cc", /* for Linux PostIncDir */
#endif
"/usr/local/bin/gcc",
"/opt/gnu/bin/gcc"
};
:-)
Wow that's ugly. NOW I got it to work by taking out the -Dlinux in the
compile step.
voodoo@asterix:~/Xfree/build/config/imake >
ccc -O0 -g -mcpu=ev6 -ansi -Wall -Wpointer-arith -Wstrict-prototypes -Wmissi
ng-prototypes -Wmissing-declarations -Wnested-externs -pipe -g -I../../inc
lude -I../../exports/include/X11 -I../.. -I../../exports/include -I/usr/X11
R6-DRI/include -D__alpha__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XO
PEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DFUNCPROTO=15 -DNA
RROWPROTO -DCPP_PROGRAM="\"/usr/bin/cpp\"" -DHAS_MERGE_CONSTANTS=`if
ccc -fmerge-constants -xc /dev/null -S -o /dev/null 2> /dev/null 1>
/dev/null; then echo 1; else echo 0; fi` -c -o imake.o imake.c
cc: Info: imake.c, line 1610: In this statement, the unsigned expression
"fwrite(...)" is being compared with an equality operator to a constant
whose value is negative. This might not be what you intended.
(questcompare1)
if (fwrite(buf, sizeof(char), cnt, fd) == -1)
------------^
cc: Info: imake.c, line 156: This top level include file appears to be
unused. (unusedtop)
#include "Xosdefs.h"
-^
cc: Info: imake.c, line 169: This top level include file appears to be
unused. (unusedtop)
#include <sys/types.h>
-^
cc: Info: imake.c, line 191: This top level include file appears to be
unused. (unusedtop)
#include <sys/stat.h>
-^
cc: Info: imake.c, line 230: This top level include file appears to be
unused. (unusedtop)
#include <stdlib.h>
-^
voodoo@asterix:~/Xfree/build/config/imake > make -f Makefile.proto
rm -f imake
ccc -o
imake -O0 -g -mcpu=ev6 -ansi -Wall -Wpointer-arith -Wstrict-prototypes -Wmis
sing-prototypes -Wmissing-declarations -Wnested-externs -pipe -g
imake.o -Wl,-rpath-link,../../exports/lib
SUCCESS!!!
but.
voodoo@asterix:~/Xfree/build/config/imake > ./imake
Imakefile.c:4: Imake.tmpl: No such file or directory
./imake: Exit code 1.
Stop.
voodoo@asterix:~/Xfree/build/config/imake > nm imake
0000000000000000 a *ABS*
0000000000000000 a *ABS*
0000000000000000 a *ABS*
0000000000000000 a *ABS*
0000000000000000 a *ABS*
0000000000000000 a *ABS*
00000001200017f8 T AddCppArg
0000000120001758 T AddMakeArg
0000000120001fa8 T CheckImakefileC
00000001200026a8 T CleanCppInput
0000000120002c14 T CleanCppOutput
0000000120003338 T Emalloc
0000000120001c98 T FindImakefile
00000001201046b8 B Imakefile
0000000120103f98 D ImakefileC
0000000120001d94 T LogFatal
0000000120001d64 T LogFatalI
0000000120001e18 T LogMsg
0000000120103f88 D Makefile
0000000120002fe4 T ReadLine
0000000120001898 T SetOpts
000000012000338c T Strdup
0000000120103f90 D Template
0000000120104500 A _DYNAMIC
0000000120104308 A _GLOBAL_OFFSET_TABLE_
0000000120003534 R _IO_stdin_used
0000000120104128 A _PROCEDURE_LINKAGE_TABLE_
0000000120104110 ? __CTOR_END__
0000000120104108 ? __CTOR_LIST__
0000000120104120 ? __DTOR_END__
0000000120104118 ? __DTOR_LIST__
0000000120104100 ? __EH_FRAME_BEGIN__
0000000120104100 ? __FRAME_END__
0000000120104660 A __bss_start
U __ctype_b@@GLIBC_2.0
w __deregister_frame_info@@GLIBC_2.0
0000000120001100 t __do_frame_setup
0000000120001138 t __do_frame_takedown
0000000120003480 t __do_global_ctors_aux
00000001200010c0 t __do_global_dtors_aux
U __errno_location@@GLIBC_2.0
0000000120003400 T __fstat
U __fxstat@@GLIBC_2.0
00000001200034c0 W __gmon_start__
U __libc_start_main@@GLIBC_2.0
0000000120003440 T __lstat
U __lxstat@@GLIBC_2.0
w __register_frame_info@@GLIBC_2.0
0000000120001080 W __start
0000000120104660 A _edata
0000000120104700 A _end
00000001200034e0 A _etext
00000001200034e0 ? _fini
0000000120001020 ? _init
0000000120001080 T _start
U access@@GLIBC_2.0
0000000120001538 T catch
00000001201046c8 B cleanedImakefile
U close@@GLIBC_2.0
00000001201046b0 B cpp
0000000120104660 S cpp_argindex
0000000120103c28 D cpp_argv
0000000120002474 T cppit
0000000120002448 T define_os_defaults
0000000120002168 T doit
U dup2@@GLIBC_2.0
U execvp@@GLIBC_2.0
U exit@@GLIBC_2.0
U fclose@@GLIBC_2.1
U fdopen@@GLIBC_2.1
U fflush@@GLIBC_2.0
U fgets@@GLIBC_2.0
U fileno@@GLIBC_2.0
U fopen@@GLIBC_2.1
U fork@@GLIBC_2.0
U fprintf@@GLIBC_2.0
U fread@@GLIBC_2.0
U fseek@@GLIBC_2.0
0000000120003400 W fstat
U ftruncate@@GLIBC_2.0
U fwrite@@GLIBC_2.0
U getenv@@GLIBC_2.0
00000001201046c0 B haveImakefileC
000000012000157c T init
0000000120002ce8 T isempty
0000000120003440 W lstat
0000000120001170 T main
0000000120104670 S make_argindex
0000000120103db8 D make_argv
0000000120002674 T makeit
U malloc@@GLIBC_2.0
U mkstemp@@GLIBC_2.0
00000001200020a4 T optional_include
U pclose@@GLIBC_2.1
U popen@@GLIBC_2.1
0000000120104668 S program
0000000120103fa0 D show
0000000120001f2c T showargs
00000001200013d4 T showit
U signal@@GLIBC_2.0
U sprintf@@GLIBC_2.0
U sscanf@@GLIBC_2.0
U stderr@@GLIBC_2.0
U stdout@@GLIBC_2.0
U strcat@@GLIBC_2.0
U strcmp@@GLIBC_2.0
U strcpy@@GLIBC_2.0
U strerror@@GLIBC_2.0
U strlen@@GLIBC_2.0
U strncmp@@GLIBC_2.0
U strstr@@GLIBC_2.0
0000000120103f78 D tmpImakefile
0000000120103f70 D tmpMakefile
U unlink@@GLIBC_2.0
00000001201046d0 B verbose
U wait@@GLIBC_2.0
0000000120001488 T wrapup
00000001200032d4 T writetmpfile
If I try and do a 'make World' again it will trash this program.
Mike?
Peter
next prev parent reply other threads:[~2002-03-12 1:38 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-11 19:43 compiling X with ccc Peter Petrakis
2002-03-11 22:24 ` error logs " Peter Petrakis
2002-03-11 23:30 ` Uncle George
2002-03-12 0:24 ` Peter Petrakis
2002-03-12 1:25 ` Uncle George
2002-03-12 1:36 ` Peter Petrakis
2002-03-12 2:42 ` Uncle George
2002-03-12 1:30 ` W Bauske
2002-03-12 1:50 ` Uncle George
2002-03-12 1:56 ` Uncle George
2002-03-12 0:23 ` W Bauske
2002-03-12 0:49 ` Michal Jaegermann
2002-03-12 1:33 ` Peter Petrakis [this message]
2002-03-12 2:06 ` yeah baby :-) " Uncle George
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox