need help with compiling ips.o driver module
Hi there... I have a debian computer with kernel 2.4.27-2-386 on an IBM xSeries 236 Type 8841. This is the SCSI Control info = :03:0c.0 SCSI storage controller: Adaptec ASC-29320ALP U320 (rev 10) :03:0e.0 RAID bus controller: Adaptec ServeRAID Controller (rev 07) = The ips.o file is version 7.00.15 = /lib/modules/2.4.27-2-386/kernel/drivers/scsi/ips.o = On the IBM Support CD for ServeRAID, they have provided the linux driver module.. 'ips.c' and 'ips.h' which is of version 7.10.20 and I need to compile. It's giving a lot of errors that are going over my head. Can anyone help me compile this driver module? Regards -- TAC Support Team
Need Help in compiling
Helloi have started using unix recently i have an problem using fortrani have write a program in fortran namely test.f that uses a subroutine displaymessage.f and this subroutine uses another subroutine display.fi compiled all of them in single library say libt.a when a make an executable file of it the error isNo Main Fortran Program to execute i dont know why it is so while test.f is the main program on the other hand when i compile them with followinf commandsf77 -o tt test.f displaymessage.f display.f it worksplease help me i want to make exe from librarysajidPost your free ad now! Yahoo! Canada Personals
Re: Need Help in compiling
Incoming from sajid hameed: i have started using unix recently i have an problem using fortran i have write a program in fortran namely test.f that uses a subroutine For one thing, don't call it test; there already is a test program in unix, and it's a fairly important one. To keep from getting in the way of already existing programs, see if they exist first by (eg.) typing which test; you'll see there's a /usr/bin/test Secondly, if your objects are now in a library, supply the library name with -Ldir See man f77 and man gcc. -- Any technology distinguishable from magic is insufficiently advanced. (*) http://www.spots.ab.ca/~keeling - - -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Need Help in compiling
sajid hameed [EMAIL PROTECTED] writes: 1. (*) text/plain ( ) text/html (Please post to the mailing list in plain text only.) i have started using unix recently i have an problem using fortran i have write a program in fortran namely test.f that uses a subroutine displaymessage.f and this subroutine uses another subroutine display.f i compiled all of them in single library say libt.a when a make an executable file of it the error is No Main Fortran Program to execute What commands, exactly, are you using to do this? This is a little unusual way to compile programs. In C, at least, I happen to know that putting main() in a library would work. Playing around with g77, though, it looks like this fails. That is, if main.f is C main.f: pull some FORTRAN code... PROGRAM MAIN CALL PRINTMESSAGE END and printmessage.f is C printmessage.f: define the PRINTMESSAGE subroutine SUBROUTINE PRINTMESSAGE V = 17 WRITE(*,*) V END I can use 'g77 -c main.f' to get main.o, 'g77 -c printmessage.f' to get printmessage.o, and 'g77 main.o printmessage.o' to get a binary (a.out). I can use 'ar cru libpm.a printmessage.o' to get a library containing the PRINTMESSAGE subroutine, then use 'g77 -L. main.o -lpm' to get the same a.out binary. But putting main.o in a libary doesn't work at all. I suspect that some of this is the behavior of the system linker with respect to libraries. But really, the best answer is don't do that: if it doesn't work on Linux, it seems unlikely to go on any other Unix-like system either. -- David Maze [EMAIL PROTECTED] http://people.debian.org/~dmaze/ Theoretical politics is interesting. Politicking should be illegal. -- Abra Mitchell -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]