This is the mail archive of the gsl-discuss@sourceware.cygnus.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

FIXED BUG: gsl-0.4.1/randist/discrete.c typename stack_t conflict on HP


Hello again,

I just sent the bug report that is below.  Now I have a simple fix for
the problem.  gsl compiles fine on my hpux system after replacing
stack_t with gsl_stack_t in randist/discrete.c.  I used the following
ed command to make the change.

ed randist/discrete.c <<EOF
,s%stack_t%gsl_stack_t%g
wq
EOF

After making this change I also successfully compiled gsl on a
sparc-sun-solaris2.6.

-Fred Wheeler

Frederick W. Wheeler writes:
> Hello,
> 
> I don't subscribe to gsl-discuss@sourceware.cygnus.com, so please
> contact me directly if there are any questions of comments regarding
> this report.
> 
> % uname -a
> HP-UX hpw5 B.10.20 A 9000/780 unknown
> % gcc --version
> egcs-2.91.66
> 
> I just tried to compile gsl-0.4.1 on this machine using:
> 
> configure \
>   --prefix=/home/wheeler/usr/stow//gsl-0.4.1 \
>   --exec-prefix=/home/wheeler/usr/stow//gsl-0.4.1/hppa1.1-hp-hpux10.20
> make
> 
> I got this compilation error:
> 
> Making all in randist
> make[2]: Entering directory `/tmp/build-hppa1.1-hp-hpux10.20-gsl-0.4.1/gsl-0.4.1/randist'
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./../rng -I./../specfunc -I./../err -I..  -g -O2 -c bernoulli.c
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./../rng -I./../specfunc -I./../err -I..  -g -O2 -c beta.c
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./../rng -I./../specfunc -I./../err -I..  -g -O2 -c binomial.c
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./../rng -I./../specfunc -I./../err -I..  -g -O2 -c cauchy.c
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./../rng -I./../specfunc -I./../err -I..  -g -O2 -c chisq.c
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./../rng -I./../specfunc -I./../err -I..  -g -O2 -c discrete.c
> discrete.c:141: conflicting types for `stack_t'
> /usr/include/sys/newsig.h:50: previous declaration of `stack_t'
> 
> Perhaps stack_t should be changed to gsl_stack_t in discrete.c?
> 
> I was not able to figure out the sequence of includes that led to
> sys/newsig.h.
> 
> gsl compiled perfectly for me on a Solaris 2.6 machine.
> 
> Thanks,
> Fred Wheeler
> 
> --
> Fred Wheeler
> wheeler@cipr.rpi.edu
> www.cipr.rpi.edu/wheeler


--
Fred Wheeler
wheeler@cipr.rpi.edu
www.cipr.rpi.edu/wheeler
518-276-6528

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]