babelouest / ulfius

Web Framework to build REST APIs, Webservices or any HTTP endpoint in C language. Can stream large amount of data, integrate JSON data with Jansson, and create websocket services
https://babelouest.github.io/ulfius
GNU Lesser General Public License v2.1
1.08k stars 182 forks source link

YDERFLAG=1 doesn't work #180

Closed avrhack closed 3 years ago

avrhack commented 3 years ago

Building with "make YDERFLAG=1" fails - still looking for yder.h in include/ulfius.h

MMMini:ulfius mark$ make YDERFLAG=1

cd ./src && /Applications/Xcode.app/Contents/Developer/usr/bin/make
gcc -c -pedantic -std=gnu99 -fPIC -Wall -Werror -Wextra -D_REENTRANT -I../include -O3  ulfius.c
In file included from ulfius.c:30:
In file included from ../include/u_private.h:29:
../include/ulfius.h:71:12: fatal error: 'yder.h' file not found
  #include <yder.h>
           ^~~~~~~~
1 error generated.
make[1]: *** [ulfius.o] Error 1
make: *** [all] Error 2

On macOS Big Sur (11.1), Ulfius 2.7.1 cloned from github

babelouest commented 3 years ago

Hello @avrhack ,

I can't reproduce your problem, but it looks like your make command calls another command: cd ./src && /Applications/Xcode.app/Contents/Developer/usr/bin/make, and this subcommand doesn't pass the YDERFLAG=1.

you can try to run your real make command yourself:

MMMini:ulfius mark$ cd ./src && /Applications/Xcode.app/Contents/Developer/usr/bin/make YDERFLAG=1
babelouest commented 3 years ago

Hello @avrhack , any update on this issue?

babelouest commented 3 years ago

I'm choosing this issue due to its inactivity, feel free to reopen it with new information if needed