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
>Organization:
>Environment:
>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:



Home | Main Index | Thread Index | Old Index