#27 2.0 doesn't compile on Slackware 8.1

closed-fixed
nobody
Plugin (92)
5
2004-02-13
2004-02-12
Thomas Zajic
No

2.0 doesn't compile on Slackware 8.1, gcc-2.95.3, MPlayer-1.0pre3 (self-compiled), Mozilla-1.6 (GTK2, self-compiled):

[zlatko@disclosure]:~/usrlocal/src/mplayerplug-in$ make
g++ -c -Wall -g -O2 -DXP_UNIX -DMOZ_X11 -I/usr/local/include/mozilla-1.6/java -I/usr/local/include/mozilla-1.6/plugin -I/usr/local/include/mozilla-1.6/xpcom -I/usr/local/include/mozilla-1.6/string -I/usr/local/include/mozilla-1.6/nspr -Iinclude -fPIC -I/usr/X11R6/include -g1 -O1 Source/plugin-list.cpp
Source/plugin-list.cpp: In function `void deleteList(Node *)':
Source/plugin-list.cpp:82: warning: int format, long int arg (arg 2)
Source/plugin-list.cpp: In function `void buildPlaylist(nsPluginInstance *, char *, Node *)':
Source/plugin-list.cpp:257: implicit declaration of function `int memmem(...)'
make: *** [plugin-list.o] Error 1

Adding the following lines on top of Source/plugin-list.cpp (as per 'man 3 memmem') fixes the problem:

#define _GNU_SOURCE
#include <string.h>

Discussion

  • Kevin DeKorte
    Kevin DeKorte
    2004-02-13

    Logged In: YES
    user_id=685413

    Fixed in CVS as of 2/13, should be available on anonymous
    CVS on 2/14

     
  • Kevin DeKorte
    Kevin DeKorte
    2004-02-13

    • status: open --> closed-fixed