From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4980 invoked by alias); 1 Feb 2002 23:25:51 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 4904 invoked from network); 1 Feb 2002 23:25:47 -0000 Received: from unknown (HELO hotmail.com) (209.185.241.114) by sources.redhat.com with SMTP; 1 Feb 2002 23:25:47 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 1 Feb 2002 15:25:47 -0800 Received: from 63.127.215.130 by lw3fd.law3.hotmail.msn.com with HTTP; Fri, 01 Feb 2002 23:25:46 GMT X-Originating-IP: [63.127.215.130] From: "Jim M." To: gcc-help@gcc.gnu.org Bcc: Subject: install gcc made app question Date: Fri, 01 Feb 2002 15:25:00 -0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 01 Feb 2002 23:25:47.0079 (UTC) FILETIME=[C6F99D70:01C1AB77] X-SW-Source: 2002-02/txt/msg00024.txt.bz2 converted the CFLAGS (followed your suggestions) to be compatible with the gcc driver compiles ok, but geting a failure to attach and no print messages when tried to install the driver. sun compiler compatible makefile: CC = /usr/local/bin/gcc #DEFS = -D_KERNEL -DSOLARIS2_7 CFLAGS = -D_KERNEL -xarch=v9 -xcode=abs32 -regs=no%appl -xO3 LD = ld LDFLAGS = -r SRCS = myapp.c myapp_impl.h myapp_io.h DOCS = %.o : %.c $(CC) $(CFLAGS) $(DEFS) -c $< myapp: myapp.o $(LD) $(LDFLAGS) myapp.o -o myapp install: myapp echo "You must be superuser to install" cp -p myapp /kernel/drv/sparcv9/ cp -p myapp.conf /kernel/drv/ add_drv -i '"pci1057,1801"' -m '* 0666 bin bin' myapp reinstall: myapp echo "You must be superuser to re-install" rem_drv myapp cp myapp /kernel/drv/sparcv9/ add_drv -i '"pci1057,1801"' -m '* 0666 bin bin' myapp clean: $(RM) myapp.o myapp .myapp* pack: myapp clean tar cvf myapp.tar myapp $(SRCS) Makefile $(DOCS) compress myapp.tar myapp.o : myapp.c _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com