Summary:ASTERISK-12797: Asterisk wont compile if gmime-devel lib is not installed
Reporter:Dmytro Mishchenko (arkadia)Labels:
Date Opened:2008-09-29 08:50:09Date Closed:2009-02-17 18:46:38.000-0600
Versions:Frequency of
Description:My system didn't have gmime headers installed and because of that I wasn't able to build Asterisk. SuSe 10.3

configure didn't recognize this issue.


  [CC] http.c -> http.o
http.c:44:25: error: gmime/gmime.h: No such file or directory
http.c:376: error: expected ‘)’ before ‘*’ token
http.c:402: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
http.c:422: error: expected ‘)’ before ‘*’ token
http.c:459: error: expected ‘)’ before ‘*’ token
http.c: In function ‘handle_post’:
Comments:By: Sean Bright (seanbright) 2008-09-29 09:23:22

configure uses gmime-config to determine the location of the header files.  Can you verify that without gmime-devel installed that you have gmime-config installed?  And if so, determine which package installed it?

By: Dmytro Mishchenko (arkadia) 2008-09-30 03:15:40

gmime-config is a part of gmime-2.2.10-35.2.

dima@ast:~> rpm -qa |grep gmime

dima@ast:~> rpm -ql gmime-2.2.10-35.2

By: Russell Bryant (russell) 2008-10-01 15:34:29

Can you provide the contents of your menuselect.makeopts and include/asterisk/buildopts.h files?

By: Russell Bryant (russell) 2008-10-01 15:34:44

And also the makeopts file ...

By: Digium Subversion (svnbot) 2008-10-01 18:38:15

Repository: asterisk
Revision: 145692

U   trunk/configure
U   trunk/configure.ac

r145692 | seanbright | 2008-10-01 18:38:14 -0500 (Wed, 01 Oct 2008) | 7 lines

Try a test compile using the GMime library.  Some distros install gmime-config
in the base package instead of the -devel package.  Now we print a notice and
disable GMime support instead of bombing during the main compilation.

(closes issue ASTERISK-12797)
Reported by: arkadia



By: Sean Bright (seanbright) 2008-10-01 18:45:29

We missed the window for inclusion in 1.6.0 but it will be in 1.6.1 when it is released.  Thanks for your report!

By: Sean Bright (seanbright) 2008-10-01 19:12:18

I lied.  It is getting merged with 1.6.0 as I type. So it should be in the release (I... think).

By: Steve Murphy (murf) 2009-02-17 18:46:38.000-0600

Sorry, got 11583 and 13583 confused. Reclosing this bug.