From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost.localdomain (int-mx1.corp.redhat.com [172.16.52.254]) by listman.redhat.com (Postfix) with ESMTP id 83C8E3F3D6 for ; Mon, 11 Mar 2002 20:38:44 -0500 (EST) Received: from lacrosse.corp.redhat.com (IDENT:root@lacrosse.corp.redhat.com [172.16.52.154]) by localhost.localdomain (8.11.6/8.11.6) with ESMTP id g2C1chF23630 for ; Mon, 11 Mar 2002 20:38:43 -0500 Received: (from mail@localhost) by lacrosse.corp.redhat.com (8.11.6/8.9.3) id g2C1chs19974 for axp-list@listman.redhat.com; Mon, 11 Mar 2002 20:38:43 -0500 Received: from localhost.localdomain (int-mx1.corp.redhat.com [172.16.52.254]) by lacrosse.corp.redhat.com (8.11.6/8.9.3) with ESMTP id g2C1chR19970 for ; Mon, 11 Mar 2002 20:38:43 -0500 Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by localhost.localdomain (8.11.6/8.11.6) with SMTP id g2C1chF23626 for ; Mon, 11 Mar 2002 20:38:43 -0500 Received: from technolust.cx (technolust.cx [66.92.82.226]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id g2C1bLc00413 for ; Mon, 11 Mar 2002 20:37:21 -0500 Received: from whichblade (pool-141-154-179-87.wma.east.verizon.net [141.154.179.87]) by technolust.cx (8.9.3/8.8.7) with ESMTP id UAA13077 for ; Mon, 11 Mar 2002 20:38:41 -0500 From: "Peter Petrakis" To: Subject: yeah baby :-) RE: error logs RE: compiling X with ccc Date: Mon, 11 Mar 2002 20:33:09 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <20020311174944.A7347@ellpspace.math.ualberta.ca> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: > '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 -^ cc: Info: imake.c, line 191: This top level include file appears to be unused. (unusedtop) #include -^ cc: Info: imake.c, line 230: This top level include file appears to be unused. (unusedtop) #include -^ 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