On Fri, 11 Jul 2014 19:07:27 +0200 (CEST), <[email protected]> said:
| A first libasr snapshot is available at:

|         http://www.opensmtpd.org/archives/libasr-201407111828.tar.gz

| Checksum:

|   SHA256 (libasr-201407111828.tar.gz) =
|   e3a524ff24ad2352197638d1522b7cd4ca38f8865700145c503480cb59e9f005

| Please test and let us know if it breaks something!

| If this snapshot doesn't work, please also test with a previous one,
| to help us spot where the issue is coming from. You can access all
| previous snapshots here:

|         http://www.opensmtpd.org/archives/

| The OpenSMTPD team ;-)


| Note
| ----

| Libasr is an asynchronous resolver library.  It has been developped as part
| of the OpenBSD project and it was built in OpenSMTPD so far. It is now made
| available separately as a library for conveniency.

| OpenSMTPD portable snapshots and releases will depend on it from now on. So
| if you are packaging portable OpenSMTPD for any platform please have a look
| at libasr and report build issues.  It definitely needs lots of polishing.

| Note that this only concerns portable OpenSMTPD.  The libasr API has been
| integrated into OpenBSD libc, so it is always available on this platform.
| Therefore, there is no notion of master vs. portable version of libasr.

Hi,

This snapshot fails to build on FreeBSD:

--8<---------------cut here---------------start------------->8---
/usr/bin/make  all-recursive
Making all in src
/bin/sh ../libtool  --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I..  
-I../src -I../openbsd-compat -I/usr/local/include -DASR_OPT_THREADSAFE=0 -O2 -g 
-march=corei7 -I/usr/local/include -fstack-protector -fno-strict-aliasing  
-fPIC -DPIC -Qunused-arguments -Wunknown-warning-option -Wall -Wpointer-arith 
-Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess 
-Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing -fno-builtin-memset 
-MT libasr_la-asr.lo -MD -MP -MF .deps/libasr_la-asr.Tpo -c -o libasr_la-asr.lo 
`test -f 'asr.c' || echo './'`asr.c
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../src -I../openbsd-compat 
-I/usr/local/include -DASR_OPT_THREADSAFE=0 -O2 -g -march=corei7 
-I/usr/local/include -fstack-protector -fno-strict-aliasing -fPIC -DPIC 
-Qunused-arguments -Wunknown-warning-option -Wall -Wpointer-arith 
-Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess 
-Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing -fno-builtin-memset 
-MT libasr_la-asr.lo -MD -MP -MF .deps/libasr_la-asr.Tpo -c asr.c  -fPIC -DPIC 
-o .libs/libasr_la-asr.o
In file included from asr.c:18:
In file included from ../openbsd-compat/includes.h:77:
../openbsd-compat/openbsd-compat.h:178:17: error: unknown type name 'FILE'
char * fparseln(FILE *fp, size_t *size, size_t *lineno, const char str[3], int 
flags);
                ^
1 error generated.
*** [libasr_la-asr.lo] Error code 1
--8<---------------cut here---------------end--------------->8---

Following is a possible fix:

--8<---------------cut here---------------start------------->8---
--- openbsd-compat/openbsd-compat.h.orig
+++ openbsd-compat/openbsd-compat.h
@@ -172,6 +172,8 @@
 #include <stdio.h>
 #include <string.h>
 char * fgetln(FILE *stream, size_t *len);
+#else
+#include <stdio.h>
 #endif
 
 #ifndef HAVE_FPARSELN
--8<---------------cut here---------------end--------------->8---


Also a question, are you guys planning to do releases (major.minor), or just
snapshots ? Context: Should I be creating two FreeBSD ports, or just one ?

Thanks
-- 
Ashish SHUKLA

“If builders built buildings the way programmers wrote programs, then the first
woodpecker that came along would destroy civilization.” (Weinberg's Second Law)

Sent from my Emacs

Attachment: signature.asc
Description: PGP signature

Reply via email to