NetBSD Problem Report #43978

From www@NetBSD.org  Sat Oct 16 15:45:27 2010
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id B1FA763BC83
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 16 Oct 2010 15:45:26 +0000 (UTC)
Message-Id: <20101016154526.5E8DC63BC1C@www.NetBSD.org>
Date: Sat, 16 Oct 2010 15:45:26 +0000 (UTC)
From: schaecsn@gmx.net
Reply-To: schaecsn@gmx.net
To: gnats-bugs@NetBSD.org
Subject: chat/finch does not compile on linux
X-Send-Pr-Version: www-1.0

>Number:         43978
>Category:       pkg
>Synopsis:       chat/finch does not compile on linux
>Confidential:   no
>Severity:       critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Oct 16 15:50:01 +0000 2010
>Last-Modified:  Sun Mar 27 18:51:16 +0000 2011
>Originator:     Stefan
>Release:        Slackware 13.0
>Organization:
>Environment:
Slackware Linux 13.0
>Description:
chat/finch

problem #1:

gntentry.c: In function 'gnt_entry_set_text_internal':
gntentry.c:1131: error: implicit declaration of function 'snprintf'
gntentry.c:1131: warning: incompatible implicit declaration of built-in function 'snprintf'


from man-page

       #include <stdio.h>
       int snprintf(char *str, size_t size, const char *format, ...);

       snprintf(), vsnprintf(): _BSD_SOURCE || _XOPEN_SOURCE >= 500 ||
       _ISOC99_SOURCE; or cc -std=c99


-std=c99 would solve it (quick workaround configure with "CC=gcc -std=c99")


problem #2:

if /bin/sh ../../libtool --silent --tag=CC --mode=compile gcc -std=c99 -DHAVE_CONFIG_H -I. -I. -I../..  -pthread -I/usr/current/include/glib/glib-2.0 -I/usr/current/lib/glib-2.0/include   -I/tmp/current/chat/finch/work/.buildlink/include/ -Wall  -DPURPLE_DISABLE_DEPRECATED -DPIDGIN_DISABLE_DEPRECATED -DFINCH_DISABLE_DEPRECATED -DGNT_DISABLE_DEPRECATED -Waggregate-return -Wcast-align -Wdeclaration-after-statement -Wendif-labels -Werror-implicit-function-declaration -Wextra -Wno-sign-compare -Wno-unused-parameter -Wformat-security -Winit-self -Wmissing-declarations -Wmissing-noreturn -Wmissing-prototypes -Wpointer-arith -Wundef -Wp,-D_FORTIFY_SOURCE=2 -I/usr/current/include/libxml2   -I/usr/local/include/python2.6 -I/usr/current/include -I/usr/include -D_XOPEN_SOURCE_EXTENDED=1 -I/usr/include/ncurses  -g -Wno-error -O2 -march=pentium4 -pipe -I/usr/current/include -I/usr/include -D_XOPEN_SOURCE_EXTENDED=1 -I/usr/include/ncurses -MT gntwm.lo -MD -MP -MF ".deps/gntwm.Tpo" -c -o gn
 twm.lo gntwm.c; \
        then mv -f ".deps/gntwm.Tpo" ".deps/gntwm.Plo"; else rm -f ".deps/gntwm.Tpo"; exit 1; fi
gntwm.c:26:20: error: Python.h: No such file or directory

This was already reported (and fixed???) in PR 39716.

The call to the compiler adds -I/usr/local/include/python2.6, but pkgsrc (and thus python) is installed under /usr/current. Quick workaround: do what was suggested in PR 39716 by original poster.


problem #3 (linking):

make[3]: Entering directory `/tmp/current/chat/finch/work/pidgin-2.7.3/finch/libgnt/wms'
/bin/sh ../../../libtool --silent --tag=CC --mode=link gcc -std=c99  -g -Wno-error -O2 -march=pentium4 -pipe -I/usr/current/include -I/usr/include -D_XOPEN_SOURCE_EXTENDED=1 -I/usr/include/ncurses -I/usr/current/include/python2.6  -L/usr/current/lib -Wl,-R/usr/current/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/current/lib/python2.6/config -Wl,-R/usr/current/lib/python2.6/config -o s.la -rpath /usr/current/lib/gnt -module -avoid-version s.lo -Wl,-R/usr/current/lib -pthread -Wl,--export-dynamic -L/usr/current/lib -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lpthread -lrt -lglib-2.0 -lintl   ../libgnt.la ../../../libpurple/libpurple.la -lutil -lpthread -lnsl -lresolv 
/usr/lib/gcc/i486-slackware-linux/4.3.3/../../../../i486-slackware-linux/bin/ld: cannot find -lgstinterfaces-0.10

This puzzles me, because 1) -lgstinterfaces-0.10 is not on the link command line and b) I have:

/usr/current/lib/libgstinterfaces-0.10.la
/usr/current/lib/libgstinterfaces-0.10.so.0.21.0
/usr/current/lib/libgstinterfaces-0.10.so
/usr/current/lib/libgstinterfaces-0.10.a
/usr/current/lib/libgstinterfaces-0.10.so.0

Workaround: ?
>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:
[20110327 shattered] edited Environment: field
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.