[ZBX-1731] Unable to compile rev 9221 Created: 2010 Jan 11  Updated: 2019 Jul 23  Resolved: 2010 Jan 11

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 1.8.1
Fix Version/s: None

Type: Incident report Priority: Critical
Reporter: Greg McCarthy Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OpenSuse 11.2



 Description   

I've got the source and then I try and compile it using:
./configure --enable-server --with-mysql --with-net-snmp --with-libcurl

i get the following error:

./configure: line 10516: syntax error near unexpected token `IKSEMEL,iksemel,'
./configure: line 10516: ` PKG_CHECK_MODULES(IKSEMEL,iksemel,'

Since I'm not compiling using the with-jabber option I've edited the configure file and changed to :

if test "x$_libiksemel_with" != x"no"; then
if test "$_libiksemel_with" = "yes"; then
PKG_CHECK_MODULES(IKSEMEL,iksemel,

found_iksemel="no"
found_jabber="no"
else

Which seems to have fixed the problem and i've compiled the source successfully.



 Comments   
Comment by Greg McCarthy [ 2010 Jan 11 ]

Forgot to delete extra junk before posting. Please delete the last few lines from:

if test "x$_libiksemel_with" != x"no"; then
if test "$_libiksemel_with" = "yes"; then
PKG_CHECK_MODULES(IKSEMEL,iksemel,

JABBER_INCDIR=$IKSEMEL_CPPFLAGS
JABBER_LIBDIR=$IKSEMEL_LIBS
JABBER_LIBS="-liksemel"
,
found_iksemel="no"
found_jabber="no"
)
else

Since I'm not using

Comment by richlv [ 2010 Jan 11 ]

current trunk compiles fine for me. do you have pkg-config installed ? (as suggested in the bugreport below)

related resources :
https://support.zabbix.com/browse/ZBX-148
www.zabbix.org/forum/showthread.php?p=21010

Comment by Greg McCarthy [ 2010 Jan 11 ]

Thanks - that did the trick. Compiles fine now

Comment by Greg McCarthy [ 2010 Jan 11 ]

Installed pkg-config package.

Comment by Laszlo Szabo [ 2010 Sep 07 ]

Hi guys,

I was facing with this problem, it seems it does still exist in the latest version. (I used the latest svn version today.)

Regards,

Laca

Comment by richlv [ 2010 Sep 08 ]

...but did you have pkg-config installed ?

Comment by Chris Christensen [ 2015 Jan 11 ]

Note: for FreeBSD (~10.1) use pkgconf

e.g.

pkg install pkgconf
Comment by dimir [ 2019 Jul 23 ]

To summarize, in order to fix the issue:

$ sudo apt install pkg-config
$ ./bootstrap.sh

Yes, you need to run ./bootstrap.sh once again after installing pkg-config.

Generated at Tue Apr 16 20:10:44 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.