Subject: Re: package conflicts
To: None <mcmahill@mtl.mit.edu>
From: Zdenek Salvet <salvet@ics.muni.cz>
List: tech-pkg
Date: 08/19/1998 18:04:33
> > /usr/pkg/lib/libf2c.a ->
> > /usr/pkg/lib/gcc-lib/i386--netbsd/egcs-2.91.40/libf2c.a for egcs-19980516
> > /usr/pkg/include/f2c.h -> /usr/pkg/lib/gcc-lib/include/f2c.h for egcs-19980516
> I won't comment on this not being the egcs maintainer (or even a casual
> egcs user). Is there a reason that egcs has f2c.h and libf2c.a? Does
> this mean it also installs f2c?
No, it uses parts of f2c code (version to me), but f2c.h and libf2c.a
may be different from the ones in f2c-current package.
> > PS. Please add -fPIC support to f2c-f77 of lang/f2c package,
> ok. Unless I get an email in the next few days saying why I shouldn't do
> this when I update the f2c package, then I'll add it.
> Not to ask a stupid question, but what exactly does that do?
> "-fPIC If supported for the target machine, emit position-
> independent code, suitable for dynamic linking,
> even if branches need large displacements."
> I'm not sure I understand....
Position-independent code is used for dynamic linking,
e.g. addinter() in scilab ;-) Unfortunately, f77 from f2c package
handles -o option at the end of command line poorly too and scilab won't pass
(cd examples;make tests) without Makefile modifications.
OTOH, with egcs instead of f2c, scilab passes all tests
if you add the following patch
# cat patches/patch-ce
--- configure.bad Wed Aug 19 12:59:46 1998
+++ configure Wed Aug 19 12:59:49 1998
@@ -1827,6 +1827,7 @@
CC=cc
CC_OPTIONS='-O2 -Dnetbsd'
CC_LDFLAGS=
+ CC_PICFLAGS=-fPIC
if test "$G77" != yes; then
# Extract the first word of "f77", so it can be a program name with args.
set dummy f77; ac_word=$2
@@ -1864,6 +1865,7 @@
FC=f77
FC_OPTIONS='-O2'
FC_LDFLAGS=
+ FC_PICFLAGS=-fPIC
LD=ld
LD_LDFLAGS=
if test "$enable_debug" = yes; then
Your bug#2 in scilab shows on my
1.3.2/i386 too, I'm just investigating it.
--
Zdenek Salvet salvet@ics.muni.cz
----------------------------------------------------------------------------
If God had meant for us to be in the Army,
we would have been born with green, baggy skin.