Problems compiling pd Korn shell source

Problems compiling pd Korn shell source

Post by Kent Karr » Mon, 26 Oct 1992 10:51:59



I finally managed to ftp  the source for the public domain Korn shell. I have
spent the better part of the last three evenings trying to compile it. But
I keep running into obstacles.

First of all, it did not like line 56 of the stdio.h that was included in
the source. Out of frustration I commented out a bunch of stuff in stdio.h
and it compiles much further before erroring out.

Now I am receiving the following:

        undefined                       first referenced
         symbol                             in file
        sigmask                             jobs.o
        sigsetmask                          jobs.o
        sigblock                            jobs.o
        ld fatal: Symbol referencing errors. No output written to ksh
        *** Error code 13

        Stop.

I am an inexperienced C programmer and I have no idea what's going on in
jobs.c even though I looked.

I am running ISC 3.0 and have the LPI New C ANSI compiler as well as the
normal development stuff.

Any help anyone can provide is greatly appreciated.
--
[ A GREAT DEAL OF CHAOS IN THE WORLD occurs because people don't appreciate ]
[                      themselves. -- Chogyam Trungpa                       ]
[               "SHAMBHALA - The Sacred Path of the Warrior"                ]
[____uunet!seaeast!shambala!kentkar  /or/  uunet!polari!shambala!kentkar____]

 
 
 

Problems compiling pd Korn shell source

Post by David L. Park » Thu, 29 Oct 1992 21:22:56



>I finally managed to ftp  the source for the public domain Korn shell. I have
>spent the better part of the last three evenings trying to compile it. But
>I keep running into obstacles.

>First of all, it did not like line 56 of the stdio.h that was included in
>the source. Out of frustration I commented out a bunch of stuff in stdio.h
>and it compiles much further before erroring out.

>Now I am receiving the following:

>    undefined                       first referenced
>     symbol                             in file
>    sigmask                             jobs.o
>    sigsetmask                          jobs.o
>    sigblock                            jobs.o
>    ld fatal: Symbol referencing errors. No output written to ksh
>    *** Error code 13

>    Stop.

>I am an inexperienced C programmer and I have no idea what's going on in
>jobs.c even though I looked.

>I am running ISC 3.0 and have the LPI New C ANSI compiler as well as the
>normal development stuff.

>Any help anyone can provide is greatly appreciated.
>--
>[ A GREAT DEAL OF CHAOS IN THE WORLD occurs because people don't appreciate ]
>[                      themselves. -- Chogyam Trungpa                       ]
>[               "SHAMBHALA - The Sacred Path of the Warrior"                ]
>[____uunet!seaeast!shambala!kentkar  /or/  uunet!polari!shambala!kentkar____]

HEY!!  That sure looks familiar!  I got the same thing under ISC 3.0 with
the LPI compiler while trying to compile bash 1.11.

What gives??
--
Dave Parker
Automated Data Management Services, Pleasant Hill, MO 64080-1331
(816) 987-5167/5218 voice/fax          -          dlpinc00!dlparker

 
 
 

Problems compiling pd Korn shell source

Post by Bruce Momji » Fri, 30 Oct 1992 12:46:34


Add this to sh/sigact.c at the top:

#define NO_SIGSET

and I think that will fix it.  I am running AT&T SVr3.1 and I think that
is what I had to do to get it to work.  If it doesn't fix it, let me
know.

--
Bruce Momjian                          |  830 Blythe Avenue

  +  If your life is a hard drive,     |  (215) 353-9879(w)
  +  Christ can be your backup.        |  (215) 853-3000(h)

 
 
 

Problems compiling pd Korn shell source

Post by Stanislav V. Vorony » Wed, 28 Oct 1992 22:03:21



> I finally managed to ftp  the source for the public domain Korn shell. I have
> spent the better part of the last three evenings trying to compile it. But
> I keep running into obstacles.

> First of all, it did not like line 56 of the stdio.h that was included in
> the source. Out of frustration I commented out a bunch of stuff in stdio.h
> and it compiles much further before erroring out.

> Now I am receiving the following:

>    undefined                       first referenced
>     symbol                             in file
>    sigmask                             jobs.o
>    sigsetmask                          jobs.o
>    sigblock                            jobs.o
>    ld fatal: Symbol referencing errors. No output written to ksh
>    *** Error code 13

>    Stop.

> I am an inexperienced C programmer and I have no idea what's going on in
> jobs.c even though I looked.

        This function is a POSIX function for signal(2).

Quote:> I am running ISC 3.0 and have the LPI New C ANSI compiler as well as the
> normal development stuff.

        Use standart compiler with key -Xp or GNU gcc compiler with -posix.
This function located in library /lib/libcposix.a.

        Sincerely,
           Stanislav Voronyi.

--


    postmaster       |   Voice +7 (0572) 212-684
 of use.kharkov.ua   |      K'harkov, Ukraine

 
 
 

Problems compiling pd Korn shell source

Post by Stanislav V. Vorony » Fri, 30 Oct 1992 18:37:07




> >I finally managed to ftp  the source for the public domain Korn shell. I have
> >spent the better part of the last three evenings trying to compile it. But
> >I keep running into obstacles.

> >First of all, it did not like line 56 of the stdio.h that was included in
> >the source. Out of frustration I commented out a bunch of stuff in stdio.h
> >and it compiles much further before erroring out.

> >Now I am receiving the following:

> >       undefined                       first referenced
> >        symbol                             in file
> >       sigmask                             jobs.o
> >       sigsetmask                          jobs.o
> >       sigblock                            jobs.o
> >       ld fatal: Symbol referencing errors. No output written to ksh
> >       *** Error code 13

> >       Stop.

> >I am an inexperienced C programmer and I have no idea what's going on in
> >jobs.c even though I looked.

> >I am running ISC 3.0 and have the LPI New C ANSI compiler as well as the
> >normal development stuff.

> >Any help anyone can provide is greatly appreciated.
> >--
> >[ A GREAT DEAL OF CHAOS IN THE WORLD occurs because people don't appreciate ]
> >[                      themselves. -- Chogyam Trungpa                       ]
> >[               "SHAMBHALA - The Sacred Path of the Warrior"                ]
> >[____uunet!seaeast!shambala!kentkar  /or/  uunet!polari!shambala!kentkar____]

> HEY!!  That sure looks familiar!  I got the same thing under ISC 3.0 with
> the LPI compiler while trying to compile bash 1.11.

> What gives??
> --
> Dave Parker
> Automated Data Management Services, Pleasant Hill, MO 64080-1331
> (816) 987-5167/5218 voice/fax          -          dlpinc00!dlparker

        Reason of this problem in LPI compiler - it's does not
support POSIX. Use cc with -Xp or gcc with -posix.

--


    postmaster       |   Voice +7 (0572) 212-684
 of use.kharkov.ua   |      K'harkov, Ukraine

 
 
 

Problems compiling pd Korn shell source

Post by MJ Franza » Thu, 05 Nov 1992 06:42:30


|>
|> I finally managed to ftp  the source for the public domain Korn shell. I have
|> spent the better part of the last three evenings trying to compile it. But
|> I keep running into obstacles.
|>
|> First of all, it did not like line 56 of the stdio.h that was included in
|> the source. Out of frustration I commented out a bunch of stuff in stdio.h
|> and it compiles much further before erroring out.
|>
|> Now I am receiving the following:
|>
|>   undefined                       first referenced
|>    symbol                             in file
|>   sigmask                             jobs.o
|>   sigsetmask                          jobs.o
|>   sigblock                            jobs.o
|>   ld fatal: Symbol referencing errors. No output written to ksh
|>   *** Error code 13
|> ...
|> I am running ISC 3.0 and have the LPI New C ANSI compiler as well as the
|> normal development stuff.

It _is_ possible to generate POSIX conforming applications using
LPI-C version 01.23.00 or later; I'm not sure which version is
bundled with ISC 3.0.

LPI-C supports the "-Xp" option for users who wish to create POSIX
conforming programs.  The "-Xp" option may be supplied on the command
line to lpicc, lpild, and ldc. Note that this option should be used
in conjunction with "-sys" or "-Xa" (i.e., the LPI ANSI-C Library
lpic.a cannot be used when linking POSIX conforming applications).

For SVR4 compatibility, the switches -Xa/-Xt/-Xc/-nosys have been
added to lpicc, with the following meaning:

        -Xc     conforming:     __STDC__ is defined when compiling
                                with the system include files.
                                Equivalent to "-sys".

        -Xa     ansi:           __STDC__ is undefined when compiling
                                with the system include files, but
                                compiler runs in full ANSI mode.
                                Equivalent to "-sys -xnc".

        -Xt     transition:     implementation is currently equivalent
                                to "-Xa".

        -nosys  default:        use the LPI ANSI-C library rather than
                                the system library.

The system include files use a combination of __STDC__ and _POSIX_SOURCE_
to toggle between the "old flavor" of the system include files and the
"ANSI/POSIX flavor" of the system include files.

The macro __STDC__ is automatically predefined in LPI-C. However,
predefining _POSIX_SOURCE_ must be done via the command-line definition,
"-D_POSIX_SOURCE_".  Alternatively "#define _POSIX_SOURCE_" may be added
to the source code.  This may be added to the file <LPI/sysdef.h> if
you always want to have _POSIX_SOURCE defined.

In order to avoid the following system include caveats, using the lpicc
command-line options "-Xa -Xp" are recommended for simplicity.

  - When including the system include file <sys/stat.h>, the
    function prototypes for chmod, mkdir, and mkfifo, e.g.

    #if defined (__STDC__)
       extern int chmod (char const *, mode_t);
       ...
    #endif

    require a typedef for mode_t.  This typedef is found in the
    system include file <sys/types.h>, but is conditionally
    included via

    #if defined(_POSIX_SOURCE_)
         ...
    #endif

    Unless _POSIX_SOURCE_ is explicitly defined, mode_t will be
    undefined.  The "-Xa" option (described above) may be used
    to circumvent this problem, which will have the
    effect of turning off function prototypes in the system
    include files; alternatively, the appropriate typedef for
    mode_t from <sys/types.h> may be specified directly in the
    user source program.

  - When using the "-sys" option for compiling/linking, unresolved
    references to the external routines getc() and putc() may
    result at link-time.

    This situation will not occur if using the "-Xp" link-time
    option for POSIX compatibility (described in section 3.4 of
    these release notes).  Otherwise, the "-Xa" compile-time option
    (described below) may be used to circumvent this problem.

  - Beware of similar problems when including <math.h>; the bessel
    functions j0(), j1(), etc, may be conditionally excluded,
    resulting in a default return type of 'int' rather than 'double'.

The latest release of LPI-C is version 2.0.  This includes a brand
new optimizer, has "-sys" as the default, and comes bundled with
CodeWatch, our X/Motif (and command-line too) source-level de*.

especially if you are using a version of LPI-C older than 1.23.

If there are any further issues or questions, the person to contact is:



P.S. Sorry we didn't respond sooner; our news feed has been a bit slow
lately.

--------------------------------------------------------------------

   Liant Software Corporation        tel: (508) 872-8700
   Framinghan, MA 01760 USA          fax: (508) 626-2221
--------------------------------------------------------------------

 
 
 

1. Korn Shell query...is there any source or compiled versions?

As the keywords indicate, I'm on a mission to find a company(ies) that
sell license for source to Korn shell or a pre-compiled version of
Korn shell.

It's for our educational institution so we aren't really looking for WAY out
prices to be quoted here, but if you have any information or are a seller
of such product, please e-mail me details(prices,etc.).

Thanks in advance,

Paul "Axel" Virgo

2. Configuring Sendmail + RedHat

3. PD Korn Shell (full implementation) wanted

4. SOLVED! Why are my flock()ed files not locked?!

5. PD Korn Shell?

6. can't get FAQ

7. Mail Check in pd korn shell

8. RS/6000 ThinkPad 850 - memory?

9. best korn shell resources and is there a korn shell faq

10. Windowing Korn Shell (wksh) source

11. Korn shell source for XENIX?

12. csh source in korn shell

13. How to source csh-file in korn shell ?