#58 X libs not found

closed
nobody
Plugin (92)
5
2004-11-28
2004-10-03
Anonymous
No

Configure doesn't appear to find various xlibs (though
it prints out the line "checking for X... libraries
/usr/X11R6/lib, headers /usr/X11R6/include" at some
point). Then when I run make, I get "#error libXpm has
not been found" and the compilation aborts. If I set
CPPFLAGS to -I/usr/X11R6/include and LDFLAGS to
-L/usr/X11R6/lib before configuring, everything works
fine. This is with version 2.70, but I had the same
issue with 2.66.

I have a standard install of XFree86 4.2.0. I'm
configuring with the options --enable-gtk1
--with-gecko-sdk=/usr/local/mozilla/src/gecko-sdk.

My e-mail is tril@igs.net. Let me know if you need more
information.

Discussion

  • Kevin DeKorte

    Kevin DeKorte - 2004-10-05

    Logged In: YES
    user_id=685413

    Please rerun configure without any variables set and attach
    config.log and config.h here.

     
  • Barbara Post

    Barbara Post - 2004-11-27

    Logged In: YES
    user_id=749675

    I first got the same problem when configuring with options
    (on debian sid).

    Then I configured without options, and it compiled fine !

    This bug was then due to ./configure options that aren't
    needed at all and produced a wrong Makefile !

    Makefile uses only mozilla and xlibs development files and
    doesn't need the --with-gecko-sdk parameter anymore nor the
    gecko-sdk extra package I downloaded (if not already
    included in mozilla-dev ?)

    This is funny since I remember compiling fine 2.66 version
    with --with-gecko-sdk parameter (now I use 2.70 version)
    with this option :)

     
  • Kevin DeKorte

    Kevin DeKorte - 2004-11-28

    Logged In: YES
    user_id=685413

    The information you have provided in the report does not make any
    sense. Perhaps you could send me the Makefile generated with the
    flags set and without the flags set.

     
  • Barbara Post

    Barbara Post - 2004-11-28

    Logged In: YES
    user_id=749675

    I apologize, since compiling with or without
    --with-gecko-sdk=/some/path --enable-gtk2 works...

    I attach the diff for reference.

    diff of :
    1. Makefile generated with ./configure
    2. Makefile generated with ./configure
    --with-gecko-sdk=/data2/compil/gecko-sdk --enable-gtk2

    In my case I reproduced the original xlibs not found bug
    because I first had the gecko-sdk source but not the mozilla
    source.

    Then the configuration failed a couple of times with the
    flags, so I removed them, and now I can compile with flags
    again...

    Apologies again for the confusion.

     
  • Barbara Post

    Barbara Post - 2004-11-28

    Logged In: YES
    user_id=749675

    Well, I don't find a way to attach a file :(

    So here is the diff I told about above.

    15,16c15,16
    < CFLAGS= -Wall -g -O2 -I/usr/X11R6/include -g -O2
    -DXP_UNIX -DMOZ_X11 -I/usr/include/mozilla
    -I/usr/include/mozilla/java -I/usr/include/mozilla/plugin
    -I/usr/include/mozilla/xpcom -I/usr/include/mozilla/string
    -I/usr/include/mozilla/nspr -Iinclude -fPIC
    -I/usr/X11R6/include -DXTHREADS -I/usr/include/gtk-2.0
    -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include
    -I/usr/include/atk-1.0 -I/usr/include/pango-1.0
    -I/usr/include/freetype2 -I/usr/include/glib-2.0
    -I/usr/lib/glib-2.0/include -pthread
    -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
    -DGTK2_ENABLED -DGTK_ENABLED
    < LDFLAGS= -lSM -lICE -L/usr/X11R6/lib -lXext -lX11
    -lXpm -lXt -L/usr/lib/mozilla -lxpcom -lplds4 -lplc4 -lnspr4
    -ldl -lc -lpthread -Wl,--export-dynamic -lgtk-x11-2.0
    -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0
    -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl
    -lglib-2.0 -pthread -lgthread-2.0 -lglib-2.0
    ---
    > CFLAGS= -Wall -g -O2 -I/usr/X11R6/include -g -O2
    -DXP_UNIX -DMOZ_X11 -I/data2/compil/gecko-sdk
    -I/data2/compil/gecko-sdk/include -Iinclude -fPIC
    -I/usr/X11R6/include -DXPCOM_GLUE -DMOZILLA_STRICT_API
    -DXTHREADS -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
    -I/usr/X11R6/include -I/usr/include/atk-1.0
    -I/usr/include/pango-1.0 -I/usr/include/freetype2
    -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread
    -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
    -I/usr/include/mozilla -DGTK2_ENABLED -DGTK_ENABLED
    > LDFLAGS= -lSM -lICE -L/usr/X11R6/lib -lXext -lX11
    -lXpm -lXt -L /data2/compil/gecko-sdk/lib -lxpcomglue -L
    /data2/compil/gecko-sdk/bin -lnspr4 -lplds4
    -Wl,--export-dynamic -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0
    -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0
    -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -pthread
    -lgthread-2.0 -lglib-2.0

     
  • Kevin DeKorte

    Kevin DeKorte - 2004-11-28
    • status: open --> closed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks