Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

On the eighth day, God created FORTRAN.


computers / comp.os.linux.misc / Determine compile order of required libs

SubjectAuthor
* Determine compile order of required libsKirk_Rockstein
`* Re: Determine compile order of required libsThe Natural Philosopher
 `* Re: Determine compile order of required libsJohn-Paul Stewart
  `* Re: Determine compile order of required libsLew Pitcher
   +- Re: Determine compile order of required libsComputer Nerd Kev
   `* Re: Determine compile order of required libsJohn-Paul Stewart
    `* Re: Determine compile order of required libsThe Natural Philosopher
     `- Re: Determine compile order of required libsComputer Nerd Kev

1
Determine compile order of required libs

<kk4aehF1jfoU1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13366&group=comp.os.linux.misc#13366

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: Kirk_Rockstein@nowhere.invalid (Kirk_Rockstein)
Newsgroups: comp.os.linux.misc
Subject: Determine compile order of required libs
Date: 16 Aug 2023 16:05:37 GMT
Lines: 6
Message-ID: <kk4aehF1jfoU1@mid.individual.net>
X-Trace: individual.net VVDtMIc/sEwzgrHCrenQswOX134IbCRKBCpZtIXPLFqsGdMMel
Cancel-Lock: sha1:wHI0yNcC3DGzwpjXtxVEebYZ0SQ= sha256:Rlv42CpmTzSsS2sNnVP0iorH3t+n6TEeSJUu3OgBtUc=
User-Agent: slrn/pre1.0.4-6/co (Aptosid Fluxbox)
 by: Kirk_Rockstein - Wed, 16 Aug 2023 16:05 UTC

When compiling a program from source code that has many
required library's, and compiling them from source also
is there a way to determine what order
the required libs need to be compiled?

Re: Determine compile order of required libs

<ubj0jh$3cicu$9@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13370&group=comp.os.linux.misc#13370

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.os.linux.misc
Subject: Re: Determine compile order of required libs
Date: Wed, 16 Aug 2023 18:21:53 +0100
Organization: A little, after lunch
Lines: 13
Message-ID: <ubj0jh$3cicu$9@dont-email.me>
References: <kk4aehF1jfoU1@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 16 Aug 2023 17:21:53 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="49c114199f676b14dbb475f2ed9e587e";
logging-data="3557790"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18I3TWQIOxIKC1rvc9CGOHBPNCe0RvcUfk="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:+N56+TmEdTgidop9ITMgx2/OrGk=
Content-Language: en-GB
In-Reply-To: <kk4aehF1jfoU1@mid.individual.net>
 by: The Natural Philosop - Wed, 16 Aug 2023 17:21 UTC

On 16/08/2023 17:05, Kirk_Rockstein wrote:
> When compiling a program from source code that has many
> required library's, and compiling them from source also
> is there a way to determine what order
> the required libs need to be compiled?

It's in the makefile. If A depends on B, B is compiled first.

--
In a Time of Universal Deceit, Telling the Truth Is a Revolutionary Act.

- George Orwell

Re: Determine compile order of required libs

<kk4lnvF39cuU1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13374&group=comp.os.linux.misc#13374

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: jpstewart@personalprojects.net (John-Paul Stewart)
Newsgroups: comp.os.linux.misc
Subject: Re: Determine compile order of required libs
Date: Wed, 16 Aug 2023 15:18:22 -0400
Lines: 22
Message-ID: <kk4lnvF39cuU1@mid.individual.net>
References: <kk4aehF1jfoU1@mid.individual.net> <ubj0jh$3cicu$9@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net IRfRaVZEIsaHhWGi67eaVgryVPF6uD9Rhn0kwwb8kXatKZ7VMa
Cancel-Lock: sha1:Bp/IyFH3Wr0J5Xuhen03iFWQIFs= sha256:w0LJjoWhGu9I+Vi2AZHxA/fmp9ZhaWGDTq3nVY14ogs=
User-Agent: Mozilla Thunderbird
Content-Language: en-CA
In-Reply-To: <ubj0jh$3cicu$9@dont-email.me>
 by: John-Paul Stewart - Wed, 16 Aug 2023 19:18 UTC

On 2023-08-16 13:21, The Natural Philosopher wrote:
> On 16/08/2023 17:05, Kirk_Rockstein wrote:
>> When compiling a program from source code that has many
>> required library's, and compiling them from source also
>> is there a way to determine what order
>> the required libs need to be compiled?
>
> It's in the makefile.  If A depends on B, B is compiled first.

Or, if they're from different packages, prerequisites are documented in
the INSTALL file that is customarily part of the source.

If A depends on B it will say so in the INSTALL (or README) file for A.
Then the docs for B could say it depends on C. So you read up on
package C, and so on until you get to a library that doesn't depend on
any other. Then you start by compiling it and working your way back up
the chain.

If you're building from source, it's typically up to you handle
dependencies manually.

Re: Determine compile order of required libs

<ubj8jc$3ajkp$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13375&group=comp.os.linux.misc#13375

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: lew.pitcher@digitalfreehold.ca (Lew Pitcher)
Newsgroups: comp.os.linux.misc
Subject: Re: Determine compile order of required libs
Date: Wed, 16 Aug 2023 19:38:20 -0000 (UTC)
Organization: The Pitcher Digital Freehold
Lines: 37
Message-ID: <ubj8jc$3ajkp$2@dont-email.me>
References: <kk4aehF1jfoU1@mid.individual.net>
<ubj0jh$3cicu$9@dont-email.me> <kk4lnvF39cuU1@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 16 Aug 2023 19:38:20 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b581253026a9998bab917224ced56283";
logging-data="3493529"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+RmAFuAj5jwqfHd550XxAgi8Q5v5tjJ+U="
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:DO7+v/p58EL84/La/RlmWjdM/g8=
 by: Lew Pitcher - Wed, 16 Aug 2023 19:38 UTC

On Wed, 16 Aug 2023 15:18:22 -0400, John-Paul Stewart wrote:

> On 2023-08-16 13:21, The Natural Philosopher wrote:
>> On 16/08/2023 17:05, Kirk_Rockstein wrote:
>>> When compiling a program from source code that has many
>>> required library's, and compiling them from source also
>>> is there a way to determine what order
>>> the required libs need to be compiled?
>>
>> It's in the makefile.  If A depends on B, B is compiled first.
>
> Or, if they're from different packages, prerequisites are documented in
> the INSTALL file that is customarily part of the source.
>
> If A depends on B it will say so in the INSTALL (or README) file for A.
> Then the docs for B could say it depends on C. So you read up on
> package C, and so on until you get to a library that doesn't depend on
> any other. Then you start by compiling it and working your way back up
> the chain.
>
> If you're building from source, it's typically up to you handle
> dependencies manually.

Quite often (in my experience, most of the time) 3rd-party source packages
come with the support files for one (or more) build systems. For these
packages, you use tools like CMake or Autoconf to build the makefile that
will then be used to build the program, libraries, etc.

In these cases, the build system detects and reports missing dependencies.

The OP should look for these reports, and manually follow the chain
of dependent installations.

HTH
--
Lew Pitcher
"In Skills We Trust"

Re: Determine compile order of required libs

<64dd52dc@news.ausics.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13376&group=comp.os.linux.misc#13376

  copy link   Newsgroups: comp.os.linux.misc
Message-ID: <64dd52dc@news.ausics.net>
From: not@telling.you.invalid (Computer Nerd Kev)
Subject: Re: Determine compile order of required libs
Newsgroups: comp.os.linux.misc
References: <kk4aehF1jfoU1@mid.individual.net> <ubj0jh$3cicu$9@dont-email.me> <kk4lnvF39cuU1@mid.individual.net> <ubj8jc$3ajkp$2@dont-email.me>
User-Agent: tin/2.0.1-20111224 ("Achenvoir") (UNIX) (Linux/2.4.31 (i586))
NNTP-Posting-Host: news.ausics.net
Date: 17 Aug 2023 08:51:08 +1000
Organization: Ausics - https://www.ausics.net
Lines: 37
X-Complaints: abuse@ausics.net
Path: i2pn2.org!i2pn.org!news.bbs.nz!news.ausics.net!not-for-mail
 by: Computer Nerd Kev - Wed, 16 Aug 2023 22:51 UTC

Lew Pitcher <lew.pitcher@digitalfreehold.ca> wrote:
> On Wed, 16 Aug 2023 15:18:22 -0400, John-Paul Stewart wrote:
>> Or, if they're from different packages, prerequisites are documented in
>> the INSTALL file that is customarily part of the source.
>>
>> If A depends on B it will say so in the INSTALL (or README) file for A.
>> Then the docs for B could say it depends on C. So you read up on
>> package C, and so on until you get to a library that doesn't depend on
>> any other. Then you start by compiling it and working your way back up
>> the chain.
>>
>> If you're building from source, it's typically up to you handle
>> dependencies manually.
>
> Quite often (in my experience, most of the time) 3rd-party source packages
> come with the support files for one (or more) build systems. For these
> packages, you use tools like CMake or Autoconf to build the makefile that
> will then be used to build the program, libraries, etc.
>
> In these cases, the build system detects and reports missing dependencies.

Maybe, but both ./configure scripts, and the few times I've used
CMake, they tend to quietly disable functionality (eg. GUI) if
certain libraries aren't found. With most ./configure scripts you
can use --enable-[option] to force behaviour based on the options
listed with "./configure --help". CMake has some silly interactive
equivalent. If there's a good README or INSTALL file then the
instructions there are probably clearer than guessing things based
on vague configure options, but often there isn't.

Pkgsrc can also be used to automate resolving dependencies while
compiling software on Linux, if the program has been packaged for
NetBSD. But it's not all that reliable in my (minimal) experience.

--
__ __
#_ < |\| |< _#

Re: Determine compile order of required libs

<kk53g7F39cvU1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13377&group=comp.os.linux.misc#13377

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: jpstewart@personalprojects.net (John-Paul Stewart)
Newsgroups: comp.os.linux.misc
Subject: Re: Determine compile order of required libs
Date: Wed, 16 Aug 2023 19:13:11 -0400
Lines: 45
Message-ID: <kk53g7F39cvU1@mid.individual.net>
References: <kk4aehF1jfoU1@mid.individual.net> <ubj0jh$3cicu$9@dont-email.me>
<kk4lnvF39cuU1@mid.individual.net> <ubj8jc$3ajkp$2@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net HjvV+01ds1mEFMpv6g4rWgA3QV3mbAB6GAYWrKO9MmXK19luP/
Cancel-Lock: sha1:bJaLlzBmldiwz6G7L3lA0T4ULVU= sha256:Hak5K6RjcZrH1VquKlm+r1x8B12gkcgIS/rIW/tTBKo=
User-Agent: Mozilla Thunderbird
Content-Language: en-CA
In-Reply-To: <ubj8jc$3ajkp$2@dont-email.me>
 by: John-Paul Stewart - Wed, 16 Aug 2023 23:13 UTC

On 2023-08-16 15:38, Lew Pitcher wrote:
> On Wed, 16 Aug 2023 15:18:22 -0400, John-Paul Stewart wrote:
>
>> On 2023-08-16 13:21, The Natural Philosopher wrote:
>>> On 16/08/2023 17:05, Kirk_Rockstein wrote:
>>>> When compiling a program from source code that has many
>>>> required library's, and compiling them from source also
>>>> is there a way to determine what order
>>>> the required libs need to be compiled?
>>>
>>> It's in the makefile.  If A depends on B, B is compiled first.
>>
>> Or, if they're from different packages, prerequisites are documented in
>> the INSTALL file that is customarily part of the source.
>>
>> If A depends on B it will say so in the INSTALL (or README) file for A.
>> Then the docs for B could say it depends on C. So you read up on
>> package C, and so on until you get to a library that doesn't depend on
>> any other. Then you start by compiling it and working your way back up
>> the chain.
>>
>> If you're building from source, it's typically up to you handle
>> dependencies manually.
>
> Quite often (in my experience, most of the time) 3rd-party source packages
> come with the support files for one (or more) build systems. For these
> packages, you use tools like CMake or Autoconf to build the makefile that
> will then be used to build the program, libraries, etc.
>
> In these cases, the build system detects and reports missing dependencies.
>
> The OP should look for these reports, and manually follow the chain
> of dependent installations.

Sure, that's another way to achieve the same result.

Personally, I find it infuriating to run the configure script, discover
a missing prerequisite, install it, and then re-run configure only to
discover another missing prerequisite and so on and so forth. That is
to say, autoconf-based configure scripts tend to abort at the first
missing prerequisite rather than listing them all at once, IME.
Conversely, good documentation will list them all.

But whatever works, works! It's good for the OP to know there's more
than one way to get there.

Re: Determine compile order of required libs

<ubkhn1$3mg8s$6@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13384&group=comp.os.linux.misc#13384

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.os.linux.misc
Subject: Re: Determine compile order of required libs
Date: Thu, 17 Aug 2023 08:20:01 +0100
Organization: A little, after lunch
Lines: 20
Message-ID: <ubkhn1$3mg8s$6@dont-email.me>
References: <kk4aehF1jfoU1@mid.individual.net> <ubj0jh$3cicu$9@dont-email.me>
<kk4lnvF39cuU1@mid.individual.net> <ubj8jc$3ajkp$2@dont-email.me>
<kk53g7F39cvU1@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 17 Aug 2023 07:20:01 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b774bcc341983c44d21192c1beaaeeba";
logging-data="3883292"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18BWPKwBZHzs2RcEwFwdEq26jNy2OQMABQ="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:MdotRAThZdAN9aETJmKnPkwNSP0=
In-Reply-To: <kk53g7F39cvU1@mid.individual.net>
Content-Language: en-GB
 by: The Natural Philosop - Thu, 17 Aug 2023 07:20 UTC

On 17/08/2023 00:13, John-Paul Stewart wrote:
> Personally, I find it infuriating to run the configure script, discover
> a missing prerequisite, install it, and then re-run configure only to
> discover another missing prerequisite and so on and so forth. That is
> to say, autoconf-based configure scripts tend to abort at the first
> missing prerequisite rather than listing them all at once, IME.
> Conversely, good documentation will list them all.

What i find irritating is that they need a newer versions of some
library than the one you have installed, and you have to upgrade the
whole operating system to compile some hacked up bit of code that
doesn't work anyway.

These days I prefer to write my own code

--
Climate Change: Socialism wearing a lab coat.

Re: Determine compile order of required libs

<64de1066@news.ausics.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13386&group=comp.os.linux.misc#13386

  copy link   Newsgroups: comp.os.linux.misc
Message-ID: <64de1066@news.ausics.net>
From: not@telling.you.invalid (Computer Nerd Kev)
Subject: Re: Determine compile order of required libs
Newsgroups: comp.os.linux.misc
References: <kk4aehF1jfoU1@mid.individual.net> <ubj0jh$3cicu$9@dont-email.me> <kk4lnvF39cuU1@mid.individual.net> <ubj8jc$3ajkp$2@dont-email.me> <kk53g7F39cvU1@mid.individual.net> <ubkhn1$3mg8s$6@dont-email.me>
User-Agent: tin/2.0.1-20111224 ("Achenvoir") (UNIX) (Linux/2.4.31 (i686))
NNTP-Posting-Host: news.ausics.net
Date: 17 Aug 2023 22:19:51 +1000
Organization: Ausics - https://www.ausics.net
Lines: 26
X-Complaints: abuse@ausics.net
Path: i2pn2.org!i2pn.org!news.bbs.nz!news.ausics.net!not-for-mail
 by: Computer Nerd Kev - Thu, 17 Aug 2023 12:19 UTC

The Natural Philosopher <tnp@invalid.invalid> wrote:
> On 17/08/2023 00:13, John-Paul Stewart wrote:
>> Personally, I find it infuriating to run the configure script, discover
>> a missing prerequisite, install it, and then re-run configure only to
>> discover another missing prerequisite and so on and so forth. That is
>> to say, autoconf-based configure scripts tend to abort at the first
>> missing prerequisite rather than listing them all at once, IME.
>> Conversely, good documentation will list them all.
>
> What i find irritating is that they need a newer versions of some
> library than the one you have installed, and you have to upgrade the
> whole operating system to compile some hacked up bit of code that
> doesn't work anyway.
>
> These days I prefer to write my own code

The worst one like that lately for me has been OpenSSL. Now that
I've finally got everything comfortable with v1.1.1, I recently
ran into trouble with something that expected v3!

But I'm not going to try writing my own encryption code, for
obvious reasons.

--
__ __
#_ < |\| |< _#

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor