[Date Prev] [Date Next] [Thread Prev] [Thread Next] Date Index Thread Index Search archive:
Date:Mon May 2 10:29:37 2003 
Subject:Re: [Fwd: Re: Problem installing PopLog on RedHat 9 - error in linking] 
From:Aaron Sloman 
Volume-ID:1030502.06 


Chris Dollin <kers@hpl.hp.com> writes:

> > Jay Schlackman wrote:
 
> >  >>/usr/local/poplog/v15.53/pop/obj/src.olb(devio.o)(.text+0xda9):
> >   >> more undefined references to `errno' follow
> >  >>collect2: ld returned 1 exit status
> >
> > [snip]
>
> I note that I upgraded to RH9 recently at work (at home I'm still
> running RH8) and the existing installation of Poplog still works;
> but when you run pop11 you get
>
>   Incorrectly built binary which accesses errno, h_errno or _res directly.
>   Needs to be fixed.
>
> Presumably something changed in the 8-9 increment that we need to
> find out about. (It all carries on *running* without apparent
> problems.)

If runs but produces a warning, then a temporary work around is to
edit the installation script to avoid relinking poplog.

In the file INSTALL_MOTIF_POPLOG comment out this bit:

    ##### START of bit that may not work on Mandrake and some other systems
    ### Comment out the next few commands (up to ##### END) if you are
    ### running mandrake and installation does not work

    echo "relinking -- using $popsys/poplink_cmnd"

    cd $popsys
        ./poplink_cmnd

    echo "checking for newpop11"

    ls -l newpop11

    if ( -f newpop11 ) then
        echo "copying newpop11 to basepop11"
        cp newpop11 basepop11
        rm newpop11
    else
        echo "COULD NOT LINK NEWPOP11:"
        echo "Try commenting out poplink_cmnd"
        echo "OR"
        echo "Try asking for help via comp.lang.pop or pop-forum AT cs.bham.ac.uk"
        exit
    endif
    ##### END of bit that may not work on Mandrake

and then run it again.

It may, or may not work. I.e. it may be able to rebuild all the
saved images using the basepop11 binary. Then you'll just have
to put up with the warning message mentioned by Chris whenever you
start poplog.

Since you have already actually untarred the system you can also
comment out this bit earlier in the file:

    echo "Unpacking poplog+motif. May take some time"

    # Install linux poplog with motif
    zcat $tardir/linux-pc-1553a.tar.gz | tar xf -

    echo "UNPACKING POPLOG TAR FILE COMPLETE"

That just unpacks the tar file in /usr/local/poplog or wherever
and you don't need to do it again.

What Dave wrote is also worth looking at

> Check that the file errno.h exists in /usr/include (ls -l
> /usr/incluse/errno.h) If it doesn't try to find it elsewhere - you might
> need to install the devel RPM for your libraries - and make a symlink
> pointing to it in your /usr/include/ dir.
>
> Check 'man errno' for more info.

It's possible that for reasons to do with the market place Redhat
are moving towards a minimal installation as the default, i.e.
without the libraries needed by developers. In that case
you may have to find a devel RPM on the redhat CD that
includes errno.h (I don't know which it would be), or maybe
even a SRC rpm.

In general, when installing redhat I find it useful to ask for all
the 'developer' options when customising the installation (a tedious
process) even though I probably end up wasting many megabytes on my
hard drive.

That's because often I later want to install packages fetched
remotely, e.g. xine, which have to be compiled from source, and
without the 'developer' options that often will not work. Likewise
installing some rpms.
Some packages use libraries and languages I have never heard of and
don't use myself.

It's a messy world.

Aaron
====
Aaron Sloman, ( http://www.cs.bham.ac.uk/~axs/ )
School of Computer Science, The University of Birmingham, B15 2TT, UK
EMAIL A.Sloman AT cs.bham.ac.uk   (ReadATas@please !)
PAPERS: http://www.cs.bham.ac.uk/research/cogaff/ (And free book on Philosophy of AI)
FREE TOOLS: http://www.cs.bham.ac.uk/research/poplog/freepoplog.html