Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 283231 - net-misc/asterisk-1.6.1.5 fails to compile (lua related)
Summary: net-misc/asterisk-1.6.1.5 fails to compile (lua related)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Tony Vroon (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-30 10:08 UTC by Thomas Stein
Modified: 2009-09-04 11:50 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
A patch fixing the party pooper with incorrect location of lua headers on Gentoo (asterisk-1.6.1.5-fix-lua.patch,449 bytes, patch)
2009-09-03 23:18 UTC, Oskar Ellström
Details | Diff
... and the revised ebuild applying the patch... (asterisk-1.6.1.5-r1.ebuild,11.42 KB, text/plain)
2009-09-03 23:18 UTC, Oskar Ellström
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Stein 2009-08-30 10:08:16 UTC
Hello.

I have a problem compiling asterisk 1.6.1.5. Here is what i get:

   [CC] pbx_dundi.c -> pbx_dundi.o                                                                                                         
   [CC] dundi-parser.c -> dundi-parser.o                                                                                                   
   [LD] pbx_dundi.o dundi-parser.o -> pbx_dundi.so                                                                                         
   [CC] pbx_loopback.c -> pbx_loopback.o                                                                                                   
   [LD] pbx_loopback.o -> pbx_loopback.so                                                                                                  
   [CC] pbx_lua.c -> pbx_lua.o                                                                                                             
pbx_lua.c:45:24: error: lua5.1/lua.h: No such file or directory                                                                            
pbx_lua.c:46:28: error: lua5.1/lauxlib.h: No such file or directory                                                                        
pbx_lua.c:47:27: error: lua5.1/lualib.h: No such file or directory                                                                         
pbx_lua.c:55: error: expected ')' before '*' token

lua.h is installed in /usr/include. There is no lua5.1 subdirectory on my system.

best regards
t.

Reproducible: Always
Comment 1 Oskar Ellström 2009-09-03 22:23:16 UTC
(In reply to comment #0)

Hi!

Having some trouble compiling this version myself.

What version of lua is installed on your system?

Regards
Oskar
Comment 2 Oskar Ellström 2009-09-03 23:15:40 UTC
(In reply to comment #0)

I found that i had the exact same problem as You were having so i made this little patch and revised the ebuild.

It solved the problem for me and it compiled like a charm!
Comment 3 Oskar Ellström 2009-09-03 23:18:08 UTC
Created attachment 203093 [details, diff]
A patch fixing the party pooper with incorrect location of lua headers on Gentoo
Comment 4 Oskar Ellström 2009-09-03 23:18:47 UTC
Created attachment 203094 [details]
... and the revised ebuild applying the patch...
Comment 5 Tony Vroon (RETIRED) gentoo-dev 2009-09-04 11:50:51 UTC
+*asterisk-1.6.1.6 (04 Sep 2009)
+
+  04 Sep 2009; <chainsaw@gentoo.org> -asterisk-1.6.1.0.ebuild,
+  -asterisk-1.6.1.1.ebuild, -asterisk-1.6.1.1-r1.ebuild,
+  -asterisk-1.6.1.4.ebuild, -asterisk-1.6.1.5.ebuild,
+  +asterisk-1.6.1.6.ebuild,
+  +files/1.6.1/asterisk-1.6.1.6-lua-includes.patch:
+  Version bump, security fix for IAX2 denial of service (AST-2009-006).
+  Patch by Oskar Ellström to cope with non-standard LUA header location
+  closes bug #283231 by Thomas Stein. Removing vulnerable 1.6 series
+  ebuilds.