Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#4 Invalid 'pthreads' argument for loader

closed
Mark Hessling
None
5
2001-11-26
2001-08-31
Anonymous
No

Problem:
I received the following messages after executing a
make on RedHat 7.1 workstation :
/usr/bin/ld: cannot find -lpthreads
collect2: ld returned 1 exit status
make: ***[the] Error 1

My configuration options were:
--with-xcurses
--with-orexx
--with-cursesincdir=../PDCurses-2.4
--with-curseslibdir=../PDCcurses-2.4/pdcurses

I executed the make within the /usr/local/src/THE-3.0
directory. PDCurses-2.4 is installed in
/usr/local/src/PDCurses-2.4 . The only
references I found, in the whole system, to 'pthreads'
were in /usr/include
.

-------------------------
Solution:
I changed the 'pthreads' reference, in the Makefile, to
'pthread'. The make then completed successfully.

Discussion

  • Logged In: YES
    user_id=81178

    Submitted by Chuck Moore = chuckm@dis.wa.gov

     
  • Mark Hessling
    Mark Hessling
    2001-09-02

    • assigned_to: nobody --> rexx
     
  • Logged In: YES
    user_id=293753

    Hi there,

    I have a similar problem building on solaris 2.x systems.
    The build fails after a point looking for _getfp. I add
    -lpthread (NOTE, There's no s) and type in make. The build
    proceeds and completes successfully at this point.

    George...

     
  • Mark Hessling
    Mark Hessling
    2001-11-26

    • status: open --> closed
     
  • Mark Hessling
    Mark Hessling
    2001-11-26

    Logged In: YES
    user_id=86185

    Should be fixed in THE 3.1 RC1; available for download now.