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:    cjep
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Oct 16 15:50:01 +0000 2010
>Closed-Date:    Sat Feb 13 08:08:37 +0000 2021
>Last-Modified:  Sat Feb 13 08:08:37 +0000 2021
>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
Responsible-Changed-From-To: pkg-manager->cjep
Responsible-Changed-By: cjep@NetBSD.org
Responsible-Changed-When: Sat, 13 Feb 2021 08:08:37 +0000
Responsible-Changed-Why:
Looking at old PRs.


State-Changed-From-To: open->closed
State-Changed-By: cjep@NetBSD.org
State-Changed-When: Sat, 13 Feb 2021 08:08:37 +0000
State-Changed-Why:
Hi - apologies this PR has been open for 10 years. I've managed to build
chat/finch on Debian overnight, so the package is working on Linux.
I'm going to close this PR because I suspect the circumstances around
building the package on Slackware are now moot. If you have any problems,
please ping me direct or open a new PR. All the best, Chris


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: gnats-precook-prs,v 1.4 2018/12/21 14:20:20 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.