Re: configure + make fails on AIX due to missing -lpthread

Thien-Thi Nguyen <[email protected]> Fri, 23 Jan 2015 09:07:05 +0100
Newsgroups gmane.comp.version-control.rcs.bugs
Message-ID <[email protected]>
() Michael Felt <[email protected]>
() Thu, 22 Jan 2015 22:55:01 +0100

   I am off to bed - but what files would you like besides
   config.log, Makefile for starts here.

Thanks.

   The simple bit is configure determines that it is
   pthread:posix, adds the -lpthread to some Makefile arguments,
   but never includes those in the cc commands to create the
   programs.

Right.  That's because such functionality is not needed.  So the
problem really is why the configure script generates such vars
in the first place.

   And I shall rerun everything tomorrow. I shall add the
   -bnoquiet option and it shall reveal where the calls to
   pthread are coming from.

After some digging, i see that "./configure --help" output
includes the lines:

   --enable-threads={posix|solaris|pth|windows}
                           specify multithreading API
   --disable-threads       build without multithread safety

so i would ask you to include ‘--disable-threads’ in the
configure invocation.  I will arrange for that to be the default
in the next release.

   Check in the Makefile - there are variables defined that are
   never used by cc to link the programs.

Right.  That part of the flow is correct (RCS doesn't care about
threads).

   As to previous builds - I have not built it before. I saw it
   in the announcements and remember rcs as a program I used
   over 25 years ago. Been forced to use cvs and svm pretty much
   the last 10-15 years - and they have yet newer systems
   thought up it seems.

Well, i hope we can resolve these issues so that you might find
RCS useful (or at least fun to play with) henceforth.

-- 
Thien-Thi Nguyen
   GPG key: 4C807502
   (if you're human and you know it)
      read my lisp: (responsep (questions 'technical)
                               (not (via 'mailing-list)))
                     => nil
signature.asc (application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlTCAS0ACgkQZwMiJEyAdQLDvACg6koT+nogFezrF7APcKFvEdr+
dAgAoNxIqJRVnKU1euhh5saqYC/Tr8c7
=pvT4
-----END PGP SIGNATURE-----