Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* mpg123 diff (Re: mpg123 rpms, need testing)
  1999-03-07 18:51 ` norvierk
@ 1999-03-07 19:55   ` Daniel J. Frasnelli
  1999-03-08  1:53     ` Michal Jaegermann
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel J. Frasnelli @ 1999-03-07 19:55 UTC (permalink / raw)
  To: axp-list

> Is it legal to distributed binaries compiled against a static library whose
> license prevents redistribution?
Chances are good, no.  I'd have to spend time deciphering the legalese to 
make a reasonable guess, though.
	Here is the patch against mpg123-0.59o (with axp mods) 
that I sent Peter.  Simple modification of the Makefile, assumes static
libcpml installed under /usr/local/lib/.

Enjoy.

------------------------------------------------------------------
--- pristine/Makefile   Sun Jul 12 17:56:03 1998
+++ mpg123-0.59o/Makefile       Sun Mar  7 10:30:20 1999
@@ -84,7 +84,7 @@
                CFLAGS='-DLINUX -DOSS -DREAL_IS_FLOAT -Wall -DREAD_MMAP \
                        -fomit-frame-pointer -funroll-loops \
                        -finline-functions -ffast-math \
-                       -Wall -O3' \
+                       -Wall -O3 -mieee' \
                mpg123-make

 linux-ppc:
@@ -269,7 +269,7 @@
        $(CC) $(CFLAGS) $(LDFLAGS)  mpg123.o tabinit.o common.o layer1.o \
                layer2.o layer3.o audio.o buffer.o decode_2to1.o equalizer.o \
                decode_4to1.o getlopt.o httpget.o xfermem.o decode_ntom.o \
-               $(OBJECTS) -o $(BINNAME) -lm $(AUDIO_LIB)
+               $(OBJECTS) -o $(BINNAME) /usr/local/lib/libcpml.a $(AUDIO_LIB)

 mpg123.exe: mpg123.o common.o $(OBJECTS) decode_2to1.o decode_4to1.o \
        tabinit.o audio.o layer1.o layer2.o layer3.o buffer.o \               
-- 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: mpg123 diff (Re: mpg123 rpms, need testing)
@ 1999-03-07 20:18 Bob Segrest
  0 siblings, 0 replies; 4+ messages in thread
From: Bob Segrest @ 1999-03-07 20:18 UTC (permalink / raw)
  To: axp-list

> Is it legal to distributed binaries compiled against a static library
whose
> license prevents redistribution?

In the general case, probably not.  For example the libraries distributed
with Digital Unix (now True64 Unix for the politically sensitive) can not be
redistributed.  A binary file statically linked (non_shared) to these
libraries may not be legally used anywhere except on a legally licensed
Digital Unix system.  

Just to head off the fire storm...  This is not a Digital or Compaq decision
point.  The libraries are encumbered through their OSF roots.

Bob Segrest


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: mpg123 diff (Re: mpg123 rpms, need testing)
  1999-03-07 19:55   ` mpg123 diff (Re: mpg123 rpms, need testing) Daniel J. Frasnelli
@ 1999-03-08  1:53     ` Michal Jaegermann
  1999-03-08  2:08       ` Daniel J. Frasnelli
  0 siblings, 1 reply; 4+ messages in thread
From: Michal Jaegermann @ 1999-03-08  1:53 UTC (permalink / raw)
  To: axp-list

> -               $(OBJECTS) -o $(BINNAME) -lm $(AUDIO_LIB)
> +               $(OBJECTS) -o $(BINNAME) /usr/local/lib/libcpml.a $(AUDIO_LIB)
                                             ^^^^^
Shudder!!!  Don't hardwire location of libraries that way in Makefiles.
This is **stupid**!  You will find yourself why in not so distant
future.

First of all your compiler, nearly certainly, searches /usr/local/lib
so -lcpml would be just great.  The second, if /usr/local/lib is
not searched by a compiler (not bloody likely) you can always ask
for that using -L option.

  Michal


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: mpg123 diff (Re: mpg123 rpms, need testing)
  1999-03-08  1:53     ` Michal Jaegermann
@ 1999-03-08  2:08       ` Daniel J. Frasnelli
  0 siblings, 0 replies; 4+ messages in thread
From: Daniel J. Frasnelli @ 1999-03-08  2:08 UTC (permalink / raw)
  To: axp-list; +Cc: Daniel J. Frasnelli

> Shudder!!!  Don't hardwire location of libraries that way in Makefiles.
> This is **stupid**!  You will find yourself why in not so distant
> future.
	Uhm... there are instances where you want to specify the absolute
path of a static library, as you will find out in the not so distant future.
> First of all your compiler, nearly certainly, searches /usr/local/lib
> so -lcpml would be just great.  The second, if /usr/local/lib is
> not searched by a compiler (not bloody likely) you can always ask
> for that using -L option.
	I have two versions of libcpml on my system, one static and one
shared.  Both are located in /usr/local/lib/.  Peter also has the
same situation.  The shared libcpml has some 'issues', as I'm sure you are 
aware.  As mentioned in my message, this patch was sent to Peter,
so he could compile mpg123 linked against a static libcpml.  There
are some cflags/ldopt(?) parameters I could set to get around this,
but my assumption is that Pete does not have the same setup on his end. 
	You need to read closely and consider before jumping all 
over someone.   I've only been hacking around with Un*x since 1992, so 
perhaps you may consider me a 'newbie' or something.
Regards,
Daniel
-- 


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1999-03-08  2:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-03-07 20:18 mpg123 diff (Re: mpg123 rpms, need testing) Bob Segrest
  -- strict thread matches above, loose matches on Subject: below --
1999-03-07 17:07 mpg123 rpms, need testing Peter Petrakis
1999-03-07 18:51 ` norvierk
1999-03-07 19:55   ` mpg123 diff (Re: mpg123 rpms, need testing) Daniel J. Frasnelli
1999-03-08  1:53     ` Michal Jaegermann
1999-03-08  2:08       ` Daniel J. Frasnelli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox