![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Error in issuing a make and make install | ahjiefreak | Linux | 1 | 03-12-2008 01:32 AM |
| Error while running C++ make file | hram | High Level Programming | 1 | 10-18-2007 06:28 PM |
| Error when running make | shashidhara_01 | High Level Programming | 1 | 02-02-2007 06:35 PM |
| how to make percentage of a running script? | jimmbp | Shell Programming and Scripting | 1 | 01-31-2006 02:41 PM |
| Solaris 9: make: Fatal error:Command failed for target | eldiego | UNIX for Dummies Questions & Answers | 2 | 10-28-2005 03:11 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hi,
Not really sure whether this question should go to this forum but am giving it a shot. I have compiled a simple C program test.c. #include <stdio.h> #include <stdlib.h> #include <string.h> static int a; int test() { a=a+1; return a; } When I run a make command, I get this: --- This is the command ----- $ /usr/ccs/bin/make -f demo_rdbms.mk extproc_nocallback SHARED_LIBNAME=test.so OBJS=test.o ----------------------------------- -----Output --------------------- /usr/ccs/bin/ld -G -z text -L/u01/app/oracle/product/9.0.1/lib -R/u01/app/oracle /product/9.0.1/lib -o test.so test.o Text relocation remains referenced against symbol offset in file a 0x4 test.o a 0x8 test.o a 0xc test.o a 0x10 test.o a 0x20 test.o a 0x24 test.o ld: fatal: relocations remain against allocatable but non-writable sections *** Error code 1 make: Fatal error: Command failed for target `extproc_nocallback' ------------------------------------ I am using Sun Solaris 2.8. Can anyone pl suggest what might be wrong. Thanx |
|
||||
|
you need to compile it with the 'cc' command.
so youd type cc test.c however iwould suggest naming the program something other than test, because there already exists a command 'test'. you can keep the name as test if youd like, but you will need to make sure you have the ./ infront of the command ./test. but if you just use the command cc test.c it is ok, the binary will be there as a.out and not test, unless you specify it. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|