pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/43978: chat/finch does not compile on linux

>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
>Originator:     Stefan
>Release:        Slackware 13.0

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/tmp/current/chat/finch/work/.buildlink/include/ -Wall  
-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 
/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 -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   ../ 
../../../libpurple/ -lutil -lpthread -lnsl -lresolv 
 cannot find -lgstinterfaces-0.10

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


Workaround: ?


Home | Main Index | Thread Index | Old Index