Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compilation issue due on debian 9 stretch #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tpabst
Copy link

@tpabst tpabst commented Jul 12, 2018

% make
make  all-recursive
make[1]: Entering directory '/home/thomas/workspace/Nife'
Making all in src
make[2]: Entering directory '/home/thomas/workspace/Nife/src'
gcc -DHAVE_CONFIG_H -I. -I..     -g -O2 -MT libmath.o -MD -MP -MF .deps/libmath.Tpo -c -o libmath.o libmath.c
libmath.c: In function ‘inv’:
libmath.c:28:18: error: ‘HUGE’ undeclared (first use in this function)
    if (a==0.0) v=HUGE;
                  ^~~~
libmath.c:28:18: note: each undeclared identifier is reported only once for each function it appears in
Makefile:312: recipe for target 'libmath.o' failed
make[2]: *** [libmath.o] Error 1
make[2]: Leaving directory '/home/thomas/workspace/Nife/src'
Makefile:282: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/thomas/workspace/Nife'
Makefile:222: recipe for target 'all' failed
make: *** [all] Error 2

kounkou added a commit to kounkou/Nife that referenced this pull request Jan 3, 2022
Bonjour Patrick,

en faisant un test d'installation de Nife sur un container Docker dérivé d'une image `Debian` 
https://hub.docker.com/_/debian, dont voici les charactéristiques : 

```
$ uname -ar
Linux 1d76aa65fea8 5.10.76-linuxkit pfoubet#1 SMP Mon Nov 8 10:21:19 UTC 2021 x86_64 GNU/Linux
```

 j'ai remarqué l'erreur suivante : 

```
source='libmath.c' object='libmath.o' libtool=no \
DEPDIR=.deps depmode=none /bin/bash ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I..     -g -O2 -c libmath.c
libmath.c: In function 'inv':
libmath.c:30:18: error: 'HUGE' undeclared (first use in this function)
   30 |    if (a==0.0) v=HUGE;
      |                  ^~~~
libmath.c:30:18: note: each undeclared identifier is reported only once for each function it appears in
make: *** [Makefile:314: libmath.o] Error 1
```

J'ai alors remplacé `HUGE` avec `DBL_MAX`
puis compilé Nife avec succès,
puis, j'ai lancé `./test.sh`

```
.nife (Networking Industrial Forth-like Environment) - version 0.60-64/64
	 (c) S.E.R.I.A.N.E. 2009-2015
..........
Result =0.028166 secs
.Bye !
Linux 1d76aa65fea8 5.10.76-linuxkit pfoubet#1 SMP Mon Nov 8 10:21:19 UTC 2021 x86_64 GNU/Linux
If your system is not present in the NEWS file, and if you have some time
Take a screen-shot and send your test at [email protected]
Thank you helping us in this challenge !
The Nife Team.
```

Cette Pull Request contient les changements nécessaires pour fixer le problème. Dis mois ce que tu en penses.

Bien à toi et excellente année 2022 !
@kounkou
Copy link

kounkou commented Jan 3, 2022

Hey, @tpabst, I just realized I solved the problem 😄
Please let me know if any questions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants