A NOTE has been added to this issue. 
====================================================================== 
http://dbmail.org/mantis/view.php?id=916 
====================================================================== 
Reported By:                NetServices
Assigned To:                
====================================================================== 
Project:                    DBMail
Issue ID:                   916
Category:                   General
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
target:                      
====================================================================== 
Date Submitted:             20-Aug-11 10:39 CEST
Last Modified:              10-Sep-11 20:53 CEST
====================================================================== 
Summary:                    Unable to build on FreeBSD
Description: 
Unable to build dbmail on FreeBSD 8.1 / 64

Environment is :
autoconf : 2.6.2
automake : 1.9

../configure doesnt work until you add the --with-zdb=/usr switch then all
seems to be ok.

However, the resulting Makefile is broken.

Any attempt to build results in the following cryptic message :

"Makefile", line 1172: Need an operator
make: fatal errors encountered -- cannot continue

Attached config.log
====================================================================== 

---------------------------------------------------------------------- 
 (0003234) paul (administrator) - 20-Aug-11 11:20
 http://dbmail.org/mantis/view.php?id=916#c3234 
---------------------------------------------------------------------- 
Have you tried rebuilding 'configure' using 'autoreconf -i'?
Are you using gnu make? 

---------------------------------------------------------------------- 
 (0003235) NetServices (reporter) - 20-Aug-11 11:32
 http://dbmail.org/mantis/view.php?id=916#c3235 
---------------------------------------------------------------------- 
Yes to both questions.
Attached is the broken Makefile if it can help. 

---------------------------------------------------------------------- 
 (0003236) paul (administrator) - 20-Aug-11 14:03
 http://dbmail.org/mantis/view.php?id=916#c3236 
---------------------------------------------------------------------- 
Hi there,

could you plz test

http://git.dbmail.eu/paul/dbmail/patch/?id=cd5cc297ab1c05103c45f6ee903298eca5357a19

which I believe may fix this problem. 

---------------------------------------------------------------------- 
 (0003237) NetServices (reporter) - 20-Aug-11 14:25
 http://dbmail.org/mantis/view.php?id=916#c3237 
---------------------------------------------------------------------- 
Hi,

Should I just apply this as a patch in the dbmail-3.0.0-rc3 directory ? 

---------------------------------------------------------------------- 
 (0003238) NetServices (reporter) - 20-Aug-11 14:45
 http://dbmail.org/mantis/view.php?id=916#c3238 
---------------------------------------------------------------------- 
Hi,

1. Applied the patch on a fresh dmail source untar.
2. Ran configure, first without the --wth-zdb thing ==> no luck
3. Ran configure again with the --with-zdb=/usr ===> goes to completion
4. "make all" still gives :

[root@ws1 ~/dbmail-3.0.0-rc3]# make all
"Makefile", line 1171: Need an operator
make: fatal errors encountered -- cannot continue

Attached config.log and Makefile inside the files.zip 

---------------------------------------------------------------------- 
 (0003239) paul (administrator) - 20-Aug-11 17:40
 http://dbmail.org/mantis/view.php?id=916#c3239 
---------------------------------------------------------------------- 
what is your make version?

make --version 

---------------------------------------------------------------------- 
 (0003240) NetServices (reporter) - 20-Aug-11 17:44
 http://dbmail.org/mantis/view.php?id=916#c3240 
---------------------------------------------------------------------- 
MAKE_VERSION 5200408120 

---------------------------------------------------------------------- 
 (0003241) NetServices (reporter) - 20-Aug-11 17:48
 http://dbmail.org/mantis/view.php?id=916#c3241 
---------------------------------------------------------------------- 
FYI, if it's of any help, I've tried to build it on Freebsd 7.4 32bits as
well, it ends up exactly in the same (bad) way. 

---------------------------------------------------------------------- 
 (0003242) paul (administrator) - 20-Aug-11 18:56
 http://dbmail.org/mantis/view.php?id=916#c3242 
---------------------------------------------------------------------- 
I'm sorry but that is *not* output from gnu make.

I think on bsd you need to run 'gmake'. 

---------------------------------------------------------------------- 
 (0003243) paul (administrator) - 20-Aug-11 18:58
 http://dbmail.org/mantis/view.php?id=916#c3243 
---------------------------------------------------------------------- 
for example:

paul@myhost:~$ make --version
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for x86_64-pc-linux-gnu 

---------------------------------------------------------------------- 
 (0003244) NetServices (reporter) - 20-Aug-11 19:00
 http://dbmail.org/mantis/view.php?id=916#c3244 
---------------------------------------------------------------------- 
Here we are, sorry about that.
gmake --version
GNU Make 3.82
Built for amd64-portbld-freebsd8.1 

---------------------------------------------------------------------- 
 (0003245) NetServices (reporter) - 20-Aug-11 19:02
 http://dbmail.org/mantis/view.php?id=916#c3245 
---------------------------------------------------------------------- 
Now, using gmake explicitly, brings another load of errors :-)

=================
gmake  all-recursive
gmake[1]: Entering directory `/root/dbmail-3.0.0-rc3'
Making all in src
gmake[2]: Entering directory `/root/dbmail-3.0.0-rc3/src'
Making all in modules
gmake[3]: Entering directory `/root/dbmail-3.0.0-rc3/src/modules'
/bin/sh ../../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-I../.. -I../../src    -g -O2 -I/usr/local/include/glib-2.0   -D_REENTRANT
-I/usr/local/include/gmime-2.4 -I/usr/local/include/glib-2.0  
-I/usr/include/zdb -W -Wall -Wpointer-arith -Wstrict-prototypes -MT
sortnull.lo -MD -MP -MF .deps/sortnull.Tpo -c -o sortnull.lo sortnull.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -g -O2
-I/usr/local/include/glib-2.0 -D_REENTRANT -I/usr/local/include/gmime-2.4
-I/usr/local/include/glib-2.0 -I/usr/include/zdb -W -Wall -Wpointer-arith
-Wstrict-prototypes -MT sortnull.lo -MD -MP -MF .deps/sortnull.Tpo -c
sortnull.c  -fPIC -DPIC -o .libs/sortnull.o
In file included from /usr/local/include/gmime-2.4/gmime/gmime.h:28,
                 from ../../src/dbmail.h:53,
                 from sortnull.c:28:
/usr/local/include/gmime-2.4/gmime/gmime-iconv.h:26:19: error: iconv.h: No
such file or directory
In file included from /usr/local/include/gmime-2.4/gmime/gmime.h:28,
                 from ../../src/dbmail.h:53,
                 from sortnull.c:28:
/usr/local/include/gmime-2.4/gmime/gmime-iconv.h:33: error: expected '=',
',', ';', 'asm' or '__attribute__' before 'g_mime_iconv_open'
/usr/local/include/gmime-2.4/gmime/gmime-iconv.h:101: error: expected ')'
before 'cd'
In file included from /usr/local/include/gmime-2.4/gmime/gmime.h:29,
                 from ../../src/dbmail.h:53,
                 from sortnull.c:28:
/usr/local/include/gmime-2.4/gmime/gmime-iconv-utils.h:32: error: expected
')' before 'cd'
/usr/local/include/gmime-2.4/gmime/gmime-iconv-utils.h:33: error: expected
')' before 'cd'
In file included from /usr/local/include/gmime-2.4/gmime/gmime.h:58,
                 from ../../src/dbmail.h:53,
                 from sortnull.c:28:
/usr/local/include/gmime-2.4/gmime/gmime-filter-charset.h:54: error:
expected specifier-qualifier-list before 'iconv_t'
In file included from sortnull.c:28:
.../../src/dbmail.h:84:20: error: evhttp.h: No such file or directory
In file included from ../../src/dbmail.h:102,
                 from sortnull.c:28:
.../../src/dbmailtypes.h:434: warning: 'struct evhttp_request' declared
inside parameter list
.../../src/dbmailtypes.h:434: warning: its scope is only this definition or
declaration, which is probably not what you want
In file included from ../../src/dbmail.h:134,
                 from sortnull.c:28:
.../../src/dm_iconv.h:29: error: expected specifier-qualifier-list before
'iconv_t'
gmake[3]: *** [sortnull.lo] Error 1
gmake[3]: Leaving directory `/root/dbmail-3.0.0-rc3/src/modules'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/root/dbmail-3.0.0-rc3/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/root/dbmail-3.0.0-rc3'
gmake: *** [all] Error 2
========================= 

---------------------------------------------------------------------- 
 (0003246) paul (administrator) - 20-Aug-11 19:15
 http://dbmail.org/mantis/view.php?id=916#c3246 
---------------------------------------------------------------------- 
Ok, looking at these errors:

There is no iconv.h on you system. It's required. On linux systems this is
part of libc6 development packages. I don't know what provides that on BSD.
It must be there because people *are* running dbmail-3 on bsd systems.

There is also no evhttp.h. Also required. Kind of weird because evhttp.h
should be installed together with event.h. There is something wrong with
your libevent development package: For one: don't try to build using libev
with the libevent compatibility layer.

Let's please continue this on the dbmail-dev list if you can. We can later
summarize in this bug report when we figure things out. 

---------------------------------------------------------------------- 
 (0003247) NetServices (reporter) - 20-Aug-11 19:17
 http://dbmail.org/mantis/view.php?id=916#c3247 
---------------------------------------------------------------------- 
Sure; I'll try to find those missing headers.

How can I access the dbmail-dev list, if I may ask ? 

---------------------------------------------------------------------- 
 (0003248) paul (administrator) - 20-Aug-11 19:50
 http://dbmail.org/mantis/view.php?id=916#c3248 
---------------------------------------------------------------------- 
check the 'forum' link on the site, or visit

http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail-dev

for the mailman interface. 

---------------------------------------------------------------------- 
 (0003263) alan (reporter) - 08-Sep-11 18:00
 http://dbmail.org/mantis/view.php?id=916#c3263 
---------------------------------------------------------------------- 
Can you test using the FreeBSD Ports file dbmail-devel.tar.bz2

All appears well on my i386 8.2-RELEASE boxes except for the version
identifying itself as 0.9.9.  The make output is dbmail-make-20110808. 

---------------------------------------------------------------------- 
 (0003264) NetServices (reporter) - 08-Sep-11 19:39
 http://dbmail.org/mantis/view.php?id=916#c3264 
---------------------------------------------------------------------- 
This port build perfectly on FreeBSD 8.1

Thank you. 

---------------------------------------------------------------------- 
 (0003265) alan (reporter) - 09-Sep-11 09:39
 http://dbmail.org/mantis/view.php?id=916#c3265 
---------------------------------------------------------------------- 
Thanks for testing and great to hear all is well.  I've opened up a pr
160566 to add this as a new port so the wider FreeBSD community can prepare
for what looks set to be a good upgrade. 

---------------------------------------------------------------------- 
 (0003266) NetServices (reporter) - 09-Sep-11 09:41
 http://dbmail.org/mantis/view.php?id=916#c3266 
---------------------------------------------------------------------- 
Sounds like a good plan. We will test this release shortly. Thank you
again. 

---------------------------------------------------------------------- 
 (0003267) NetServices (reporter) - 10-Sep-11 20:53
 http://dbmail.org/mantis/view.php?id=916#c3267 
---------------------------------------------------------------------- 
Actually, the port work well on a machine where dbmail is already
installed, however, on a newly installed server, the port doesn't pull
several required components, like libevent, xslt, etc ... and thus fails.

Building all required missing components by hand ultimately allow to
succeed building the port. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
20-Aug-11 10:39  NetServices    New Issue                                    
20-Aug-11 10:39  NetServices    File Added: config.log.zip                    
20-Aug-11 11:20  paul           Note Added: 0003234                          
20-Aug-11 11:32  NetServices    File Added: Makefile.zip                     
20-Aug-11 11:32  NetServices    Note Added: 0003235                          
20-Aug-11 14:03  paul           Note Added: 0003236                          
20-Aug-11 14:25  NetServices    Note Added: 0003237                          
20-Aug-11 14:45  NetServices    Note Added: 0003238                          
20-Aug-11 14:45  NetServices    File Added: files.zip                        
20-Aug-11 17:40  paul           Note Added: 0003239                          
20-Aug-11 17:44  NetServices    Note Added: 0003240                          
20-Aug-11 17:48  NetServices    Note Added: 0003241                          
20-Aug-11 18:56  paul           Note Added: 0003242                          
20-Aug-11 18:58  paul           Note Added: 0003243                          
20-Aug-11 19:00  NetServices    Note Added: 0003244                          
20-Aug-11 19:02  NetServices    Note Added: 0003245                          
20-Aug-11 19:15  paul           Note Added: 0003246                          
20-Aug-11 19:17  NetServices    Note Added: 0003247                          
20-Aug-11 19:50  paul           Note Added: 0003248                          
08-Sep-11 17:55  alan           File Added: dbmail-devel.tar.bz2                
   
08-Sep-11 18:00  alan           Note Added: 0003263                          
08-Sep-11 18:00  alan           File Added: dbmail-make-20110808.bz2            
       
08-Sep-11 19:39  NetServices    Note Added: 0003264                          
09-Sep-11 09:39  alan           Note Added: 0003265                          
09-Sep-11 09:41  NetServices    Note Added: 0003266                          
10-Sep-11 20:53  NetServices    Note Added: 0003267                          
======================================================================

_______________________________________________
Dbmail-dev mailing list
Dbmail-dev@dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail-dev

Reply via email to