From owner-freebsd-questions@FreeBSD.ORG Mon Nov 24 17:06:30 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2EA4A5A0 for ; Mon, 24 Nov 2014 17:06:30 +0000 (UTC) Received: from navy.spectrumcs.net (navy.spectrumcs.net [109.169.26.118]) by mx1.freebsd.org (Postfix) with ESMTP id D49C77F for ; Mon, 24 Nov 2014 17:06:29 +0000 (UTC) Received: from localhost (maroon.spectrumcs.net [10.8.0.9]) by navy.spectrumcs.net (Postfix) with ESMTP id 3jmZV65r0gz1m2Q for ; Mon, 24 Nov 2014 17:04:46 +0000 (GMT) X-Virus-Scanned: amavisd-new at spectrumcs.net Received-SPF: pass (maroon.spectrumcs.net: domain of spectrumcs.net designates 81.133.126.70 as permitted sender) client-ip=81.133.126.70; envelope-from=freebsd-questions@spectrumcs.net; helo=rainbow.spectrumcs.net; Received: from rainbow.spectrumcs.net (rainbow.spectrumcs.net [81.133.126.70]) by maroon.spectrumcs.net (Postfix) with ESMTPS id 3jmZTv3JDZz6lx8 for ; Mon, 24 Nov 2014 17:04:35 +0000 (GMT) From: "steve" Subject: Re: Problem building sysutils/syslog-ng v3.6.1_1 To: Date: Mon, 24 Nov 2014 17:04:35 +0000 Priority: normal X-Priority: 3 (Normal) Importance: normal X-Mailer: David.fx by Tobit.Software, Germany (0397.464448464547484D524D), Mime Converter 101.20 X-David-Sym: 0 X-David-Flags: 0 Message-ID: <0000C803.54736523@rainbow.spectrumcs.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Nov 2014 17:06:30 -0000 Update. I've tracked the issue down to the use of the SQL option. If I disable the = SQL option syslog-ng compiles fine, as soon as I enable it syslog-ng fails = to complile with the error previous described. The SQL option has always been enabled on these boxes and have only had = problems since the port changes to 3.6.1 from 3.5.6. The SQL option is = required on these boxes. I can confirm libdbi and libdbi-drivers are installed and up to date... # /usr/sbin/pkg version -v | /usr/bin/grep libdbi libdbi-0.9.0_2 =3D up-to-date with index libdbi-drivers-0.9.0_3 =3D up-to-date with index I have however done a "make deinstall clean install" just in case but it's = made no difference. Does anyone have any idea how I might resolve this issue? Many thanks Steve -------- Original Message -------- Subject: Problem building sysutils/syslog-ng v3.6.1_1 (11-Nov-2014 20:37) From: steve To: freebsd-questions@spectrumcs.net >=20 >=20 > Hi, >=20 > I'm not 100% sure I'm posting this to the correct mailing list. Forgive = me=20 > if I have, and I'd be very grateful if you could point me in the right=20 > direction. >=20 > If I have posted to the correct location, here is my problem... >=20 > #uname -a > FreeBSD XYZ 9.2-RELEASE-p12 FreeBSD 9.2-RELEASE-p12 #0: Mon Sep 15 = 18:46:46=20 > UTC 2014 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/ > GENERIC amd64 >=20 > # /usr/sbin/pkg version -vIL=3D > syslog-ng-3.5.6_4 < needs updating (index has 3.6.1_1) >=20 > I have three servers which where installed with FreeBSD 9.0 back in Feb = > 2014. As a matter of course I keep these servers as up to date as = possible=20 > though the ports tree. I also periodocally upgrade them to latest stable = > version of FreeBSD via freebsd-update. Obviously I've let that slip a = bit! >=20 > Towards the end of October a update for syslog-ng appeared in the ports = > tree, but I've been unable to compile it on any of my three servers, via = a=20 > portmaster -DaG or a cd /usr/ports/sysutils/syslog-ng/ && make install=20 > clean. It fails with undefined reference to = `get_installation_path_for'. >=20 > --------------------------------------- > CC lib/tests/lib_tests_test_host_resolve-test_host_resolve.o > lib/tests/test_host_resolve.c: In function 'test_resolve_sockaddr_to_ > hostname': > lib/tests/test_host_resolve.c:238: warning: implicit declaration of=20 > function 'basename' > lib/tests/test_host_resolve.c:238: warning: assignment makes pointer = from=20 > integer without a cast > lib/tests/test_host_resolve.c:239: warning: assignment makes pointer = from=20 > integer without a cast > lib/tests/test_host_resolve.c:240: warning: assignment makes pointer = from=20 > integer without a cast > lib/tests/test_host_resolve.c:241: warning: assignment makes pointer = from=20 > integer without a cast > lib/tests/test_host_resolve.c: In function 'test_resolve_hostname_to_ > sockaddr': > lib/tests/test_host_resolve.c:264: warning: assignment makes pointer = from=20 > integer without a cast > lib/tests/test_host_resolve.c:265: warning: assignment makes pointer = from=20 > integer without a cast > lib/tests/test_host_resolve.c: In function 'test_resolve_hostname_to_ > hostname': > lib/tests/test_host_resolve.c:300: warning: assignment makes pointer = from=20 > integer without a cast > lib/tests/test_host_resolve.c:301: warning: assignment makes pointer = from=20 > integer without a cast > lib/tests/test_host_resolve.c:302: warning: assignment makes pointer = from=20 > integer without a cast > CCLD lib/tests/test_host_resolve > CC syslog-ng/main.o > GEN syslog-ng/syslog-ng > syslog-ng/main.o: In function `get_installer_version': > /usr/ports/sysutils/syslog-ng/work/syslog-ng-3.6.1/syslog-ng/main.c:98: = > undefined reference to `get_installation_path_for' > syslog-ng/main.o: In function `main': > /usr/ports/sysutils/syslog-ng/work/syslog-ng-3.6.1/syslog-ng/main.c:198: = > undefined reference to `main_loop_global_init' > /usr/ports/sysutils/syslog-ng/work/syslog-ng-3.6.1/syslog-ng/main.c:248: = > undefined reference to `main_loop_read_and_init_config' > /usr/ports/sysutils/syslog-ng/work/syslog-ng-3.6.1/syslog-ng/main.c:271: = > undefined reference to `main_loop_deinit' > Makefile:5911: recipe for target 'syslog-ng/syslog-ng' failed > gmake[2]: *** [syslog-ng/syslog-ng] Error 1 > Makefile:9846: recipe for target 'all-recursive' failed > gmake[1]: *** [all-recursive] Error 1 > Makefile:4042: recipe for target 'all' failed > gmake: *** [all] Error 2 > *** [do-build] Error code 1 >=20 > Stop in /usr/ports/sysutils/syslog-ng. > *** [stage] Error code 1 >=20 > Stop in /usr/ports/sysutils/syslog-ng. > Exit 1 > --------------------------------------- >=20 > Googling for get_installation_path_for has found nothing. Grepping for = get_ > installation_path_for in the work dir seems to indicate that that = function=20 > is defined in ./work/syslog-ng-3.6.1/lib/reloc.c >=20 > As a test I've tried to compile this port on two other FreeBSD boxes. = One a=20 > FreeBSD 10 and then a FreeBSD 9.2 (in VM) and both complete = successfully,=20 > however neither of these boxes had had syslog-ng installed or compiled = on=20 > them before. To be sure my ports tree wasn't broken somehow I deleted = /usr/ > ports/ and preformed a "portsnap fetch extract" >=20 > This feels like a upgrade problem to me, but I'm unsure what to do next = to=20 > try and get this port to compile. >=20 > Any help will be gratefully received. >=20 > Kind regards > Stephen Scotter >=20 > DISCLAIMER > This email is for the use of the intended recipient(s) only. If you have = > received this email in error, please notify the sender immediately and = then=20 > delete it. If you are not the intended recipient, you must not keep, = use,=20 > disclose, copy or distribute this email without the author=92s prior=20 > permission. We have taken precautions to minimise the risk of = transmitting=20 > software viruses, but we advise you to carry out your own virus checks = on=20 > any attachment to this message. > We cannot accept liability for any loss or damage caused by software=20 > viruses. > The information contained in this communication may be confidential and = may=20 > be subject to the attorney-client privilege. If you are the intended=20 > recipient and you do not wish to receive similar electronic messages = from=20 > us in future then please respond to the sender to this effect. >=20 >=20 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to = "freebsd-questions-unsubscribe@freebsd.org" >=20 >=20 > To: freebsd-questions@freebsd.org DISCLAIMER This email is for the use of the intended recipient(s) only. If you have = received this email in error, please notify the sender immediately and = then delete it.=20 If you are not the intended recipient, you must not keep, use, disclose, = copy or distribute this email without the author=92s prior permission.=20 We have taken precautions to minimise the risk of transmitting software = viruses, but we advise you to carry out your own virus checks on any = attachment to this message. We cannot accept liability for any loss or damage caused by software = viruses. The information contained in this communication may be confidential and = may be subject to the attorney-client privilege.=20 If you are the intended recipient and you do not wish to receive similar = electronic messages from us in future then please respond to the sender to = this effect.