On Sun, Jan 11, 2015 at 11:10:38PM +0000, ScrumpyJack wrote:
> hi folks
> I'm attempting to make a package of opensmtpd for the Alpine Linux 
> distribution using the musl c library.
> 
> Here is the output of make
> 
>               Host: x86_64-unknown-linux-gnu                                  
>                                                                               
>     
>           Compiler: gcc
>     Compiler flags: -Os -fomit-frame-pointer  -fPIC -DPIC -Wall 
> -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security 
> -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-result 
> -fno-strict-aliasing -fno-builtin-memset -fPIE 
> Preprocessor flags: -Os -fomit-frame-pointer
>       Linker flags: -Wl,--as-needed -pie
>          Libraries: -levent -lcrypto -lssl -lz  -lcrypt 
>       DB Libraries: -ldb
> 
> make  all-recursive
> make[1]: Entering directory 
> '/home/scrumpyjack/opensmtpd/src/opensmtpd-5.4.4p1'
> Making all in openbsd-compat
> make[2]: Entering directory 
> '/home/scrumpyjack/opensmtpd/src/opensmtpd-5.4.4p1/openbsd-compat'
> gcc -DHAVE_CONFIG_H -I. -I..  -I../smtpd -I../openbsd-compat -Os 
> -fomit-frame-pointer  -Os -fomit-frame-pointer  -fPIC -DPIC -Wall 
> -Wpointer-arith -Wuninitialized -Wsign-
> compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign 
> -Wno-unused-result -fno-strict-aliasing -fno-builtin-memset -fPIE  -MT 
> arc4random.o -MD -MP -MF .de
> ps/arc4random.Tpo -c -o arc4random.o arc4random.c
> gcc -DHAVE_CONFIG_H -I. -I..  -I../smtpd -I../openbsd-compat -Os 
> -fomit-frame-pointer  -Os -fomit-frame-pointer  -fPIC -DPIC -Wall 
> -Wpointer-arith -Wuninitialized -Wsign-
> compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign 
> -Wno-unused-result -fno-strict-aliasing -fno-builtin-memset -fPIE  -MT 
> base64.o -MD -MP -MF .deps/b
> ase64.Tpo -c -o base64.o base64.c
>    file included from includes.h:77:0,
> b=                from base64.c:47:
> openbsd-compat.h:196:17: error: unknown type name 'FILE'
>  char * fparseln(FILE *fp, size_t *size, size_t *lineno, const char 
> str[3], int flags);
>                  ^
> In file included from includes.h:77:0,
>                  from arc4random.c:27:
> openbsd-compat.h:196:17: error: unknown type name 'FILE'
>  char * fparseln(FILE *fp, size_t *size, size_t *lineno, const char 
> str[3], int flags);
>                  ^
> Makefile:419: recipe for target 'base64.o' failed
> make[2]: *** [base64.o] Error 1
> make[2]: *** Waiting for unfinished jobs....
> Makefile:419: recipe for target 'arc4random.o' failed
> make[2]: *** [arc4random.o] Error 1
> make[2]: Leaving directory 
> '/home/scrumpyjack/opensmtpd/src/opensmtpd-5.4.4p1/openbsd-compat'
> Makefile:407: recipe for target 'all-recursive' failed
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory 
> '/home/scrumpyjack/opensmtpd/src/opensmtpd-5.4.4p1'
> Makefile:338: recipe for target 'all' failed
> make: *** [all] Error 2
> 
> 
> Am i missing something in musl c?

The openbsd-compat.h file was missing an include for fparseln().
This is now fixed in git, please pull new code and tell me if it fixes.

-- 
Gilles Chehade

https://www.poolp.org                                          @poolpOrg

--
You received this mail because you are subscribed to [email protected]
To unsubscribe, send a mail to: [email protected]

Reply via email to