Sponsored Content
Full Discussion: Compiling problem
Operating Systems Solaris Compiling problem Post 81981 by iandunn on Thursday 25th of August 2005 10:11:52 PM
Old 08-25-2005
Compiling problem

I'm trying to install the jed text editor on a SunOS 5.10 box. It depends on the s-lang library, which I installed to ~/lib. I'm trying to install jed to ~/jed (it's a box @ my university, so I don't have rights to install globally), but when I run make I get this error:

Quote:
[cps250-n1.08@sun131-13 jed-0.99-16] make
cd src; make jed
gcc -g -O2 -fno-strength-reduce -Dunix -DJED -I/home/cps250-n1.08/slang/src /home/cps250-n1.08/jed-0.99-16/src/chkslang.c -o /home/cps250-n1.08/jed-0.99-16/src/objs/chkslang -L/home/cps250-n1.08/slang/src/objs -lslang -lsocket -lnsl -lm
/home/cps250-n1.08/jed-0.99-16/src/chkslang.c:20:19: slang.h: No such file or directory
*** Error code 1
make: Fatal error: Command failed for target `/home/cps250-n1.08/jed-0.99-16/src/objs/chkslang'
Current working directory /home/cps250-n1.08/jed-0.99-16/src
*** Error code 1
make: Fatal error: Command failed for target `jed'
It looks like it can't find the s-lang library, but my PATH is:

Quote:
PATH=/usr/bin:/usr/sfw/bin:/opt/sfw/bin:/usr/matlab/bin:/usr/local/cobol/bin:/usr/ccs/bin:/usr/local/TeX:/usr/local/bluej:/usr/local/eclipse:/home/cps250-n1.08/lib:/home/cps250-n1.08/lib/lib:/home/cps250-n1.08/lib/include:/home/cps250-n1.08/lib/share
So it shouldn't have any trouble finding it, I don't think, but it's been awhile since I've used *nix. slang.h is located in ~/lib/include
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

A problem regarding compiling C prog. in lynux ...

Hi mates, I am using Mandrake 7.1. I am trying to compile my file let is say Firstc.c file. It compiles it without any problem and creates the a.out file too. But when i am trying to execute the a.out file it brings the error: "bash: a.out: command not found!" ... i don't know what is the... (1 Reply)
Discussion started by: abdul
1 Replies

2. Programming

Problem compiling metamail

Hi Guys. I have downloaded metamail from internet e Iīm trying to compile it at a SCO 5.0.5. In this server itīs working fine (letīs name it as mission1) iīm using the developer package in this server (mission1) and when I use mailto, i got the e-mail fine. Itīs forwarding to a exchange server... (2 Replies)
Discussion started by: ahnishimi
2 Replies

3. Solaris

Problem in PowerDNS compiling

PowerDNS is true Power of Internet Name Management. http://www.powerdns.com Now, I compile it on my SunOS system (SunOS 5.8 Generic_117350-05 sun4u sparc SUNW,Ultra-5_10). ./configure -- no error make --> it has error: <i> make: Fatal error: Command failed for target... (0 Replies)
Discussion started by: secret4all
0 Replies

4. Programming

Problem compiling program

hi i am having a problem that when ever i use cc program_name.c to compile a program. an error occurs, showing cc not found. please help. (28 Replies)
Discussion started by: rochitsharma
28 Replies

5. Solaris

Problem's compiling Glib

Hello, I am trying to install glib on my development box - with little/no luck. Below are some details of the box: SunOS 5.8 Generic_117350-38 sun4u sparc SUNW,Ultra-Enterprise gcc version 2.95.2 19991024 (release) GNU Make version 3.78.1, by Richard Stallman and Roland McGrath. Glib version:... (2 Replies)
Discussion started by: tetley
2 Replies

6. Programming

Problem with Compiling C on Tiger

I've downloaded Xcode and i've done : which "gcc" which "ggc-4.0" and which "c99" all were found in /usr/bin/ however with the script #include <stdio.h> main() { printf("hello, world\n"); } and when I, in command line use the command while in my home dir: gcc cprog.c -o cprog (4 Replies)
Discussion started by: cleansing_flame
4 Replies

7. HP-UX

Problem in HP-UX compiling

Hi When im trying to do make --version and make --help in HP-UX it throws error Make: Unknown flag argument -. Stop. a soft link is present in this directory /usr/bin/make and hard link is in /usr/ccs/bin/make what could be the reason can any1 ..please tell me how to solve this... (1 Reply)
Discussion started by: vasanthan
1 Replies

8. UNIX for Dummies Questions & Answers

Compiling samba problem

People i download the lastest version of samba i`am tryng to compile it in a solaris 9 i'm reading the how to of samba, i am in the first step making the autogen.sh but show me this when i do ./autogen.sh ./autogen.sh: running script/mkversion.sh ./script/mkversion.sh: 'include/version.h'... (0 Replies)
Discussion started by: enkei17
0 Replies

9. Programming

Library problem - not compiling in c

Ok I was trying to test if I installed correctly gsl, I followed the INSTALL file and still I don't know what is wrong. Here is a sample code to test gel,I got it from Random Number Generator Examples - GNU Scientific Library -- Reference Manual (note: made a few changes in the code) #include... (2 Replies)
Discussion started by: joseamck
2 Replies

10. AIX

Compiling problem - AIX 7.2

Hi We meet errors while running configuration scripts to prepare compiling source code on AIX 7.2. This error does not happen on AIX5.3 and AIX6.1 With the “/usr/bin/sh” from AIX7.2, sometimes , the script runs sucessfully, sometimes not. It’s unstable, and I don’t know why. When... (10 Replies)
Discussion started by: bobochacha29
10 Replies
cc(1B)						     SunOS/BSD Compatibility Package Commands						    cc(1B)

NAME
cc - C compiler SYNOPSIS
/usr/ucb/cc [options] DESCRIPTION
/usr/ucb/cc is the interface to the BSD Compatibility Package C compiler. It is a script that looks for the link /usr/ccs/bin/ucbcc to the C compiler. The /usr/ccs/bin/ucbcc link is available only with the SPROcc package, whose default location is /opt/SUNWspro. The /usr/ucb/cc interface is identical to /usr/ccs/bin/ucbcc, except that BSD headers are used and BSD libraries are linked before base libraries. The /opt/SUNWspro/man/man1/acc.1 man page is available only with the SPROcc package. OPTIONS
The /usr/ucb/cc interface accepts the same options as /usr/ccs/bin/ucbcc, with the following exceptions: -Idir Search dir for included files whose names do not begin with a slash (/) prior to searching the usual directories. The directo- ries for multiple -I options are searched in the order specified. The preprocessor first searches for #include files in the directory containing sourcefile, and then in directories named with -I options (if any), then /usr/ucbinclude, and finally, in /usr/include. -Ldir Add dir to the list of directories searched for libraries by /usr/ccs/bin/ucbcc. This option is passed to /usr/ccs/bin/ld and /usr/lib. Directories specified with this option are searched before /usr/ucblib and /usr/lib. -Y P, dir Change the default directory used for finding libraries. EXIT STATUS
The following exit values are returned: 0 Successful compilation or link edit. >0 An error occurred. FILES
/usr/ccs/bin/ld link editor /usr/lib/libc C library /usr/ucbinclude BSD Compatibility directory for header files /usr/ucblib BSD Compatibility directory for libraries /usr/ucblib/libucb BSD Compatibility C library /usr/lib/libsocket library containing socket routines /usr/lib/libnsl library containing network functions /usr/lib/libelf library containing routines to process ELF object files /usr/lib/libaio library containing asynchronous I/O routines ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWscpu | +-----------------------------+-----------------------------+ SEE ALSO
ld(1), a.out(4), attributes(5) NOTES
The -Y P, dir option may have unexpected results and should not be used. SunOS 5.11 24 Feb 1998 cc(1B)
All times are GMT -4. The time now is 05:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy