delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/06/18/22:11:37

Date: Sun, 18 Jun 1995 20:15:07 -0500 (CDT)
From: Aaron Ucko <UCKO AT VAX1 DOT ROCKHURST DOT EDU>
Subject: Re: lib that's linked?
To: turnbull AT turnbull DOT sk DOT tsukuba DOT ac DOT jp
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Organization: Rockhurst College; Kansas City, MO

>> > Is there a way to find out what library is linked to the executable?
>> > Specifically, I'm trying to find out when libgpp is linked into the
>> > program. Because I'm trying to deal with GPL/LGPL.
>> 
>> AFAIK, not directly.  The easiest way to know is to try linking
>> without -lgpp on the command line and see if ld complains about
>> unresolved externals.  This assumes, of course, that *you* are
>> the person who does the link.
>
>My understanding of the matter is that for exactly the reason that libgpp
>and libgpl have implications for the licensing of the executable, they are
>never implicitly linked.  (This implicit in what Eli wrote, I thought it

In fact, _only_ libc.a and libgcc.a (both of which are restrictionless)
are ever implicitly linked.


>was worth making it explicit.)  Linking any object compiled with bison into
>your executable puts the whole thing under GPL (not LGPL); I don't think
>libbison itself has any implications, but you wouldn't use it if you
>weren't using bison itself so that's just pedantic.  I have not checked in
>about a year, but then flex did *not* impose restrictions similar to
>bison's, but things may have changed.  Those are the only times code
>written entirely by you will be affected by the GPL AFAIK. 

Bison 1.24 removes the restrictions from bison.{simple,hairy} when it
appears in unmodified Bison output.

>    JED editor package provides a usable implementation of grep; it's not 
>    Posix-compliant, but it's very easy to get used to.  Aaron Ucko's 

There is also a recent port of GNU grep on Simtel (in .../msdos/gnuish) if
you prefer a POSIX grep.

>    Perl works well for me; I would guess that it's the tool of choice 
>    for this kind of exercise.  URLs are from memory (sorry, I'm on a 
>    slow link and it's a pain to use Mosaic):
>
>    JED:  file://space.mit.edu/davis/pub/jed  or maybe

file://space.mit.edu/pub/davis/jed
actually

>          file://space.mit.edu/pub/jed
>    Perl (5.0):  file://turnbull.sk.tsukuba.ac.jp/pub/djgpp/packages

BTW, I will not be able to update Perl to version 5.001 until mid-July
at the very earliest, as I am out of town and will not return until
then.  And one caveat: Stuff involving database files does not work right
in my perl5, so if you need it, use the one on Simtel.

--- Aaron Ucko (ucko AT vax1 DOT rockhurst DOT edu; finger for PGP public key) | httyp!
Geek code 2.1 [for explanation, finger hayden@ | `God's Laws' (Rudy Rucker,  
vax1.mankato.msus.edu]: GCS/M/S d(-) H s g+ p? \ _Master of Space and Time_):
!au a17 w+ v+(++) C++(+++)>++++ UL++(S+)>++++	\ 1) Be clean. 2) Follow Gary.
P+(++) L++ 3(-) E- N+(++) K- W--(---) M-@ V-(--) \ 3) Teach God's Laws.
po-(--) Y+ t(+) !5 j(++) R(-) G' tv--(-) b+++	  +---------------------------
!D(--) B--(---) e>++++(*) u++(@) h!() f(+) r-(--)>+++ n+(-) y?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019