Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to compile the TRAYDOC aMSN plugin.
It requires IMLIB. I've it, in a new version, but...
checking for imlib-config... /usr/bin/imlib-config
checking for IMLIB - version >= 1.8.2... no
*** Could not run IMLIB test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means IMLIB was incorrectly installed
*** or that you have moved IMLIB since it was installed. In the latter case, you
*** may want to edit the imlib-config script: /usr/bin/imlib-config
imlib.h is in /usr/include
imlib-config.h is in /usr/bin
I have imlib and imlib2 installed.
When I ask ./configure to ignore this test, "make" doesn't work, after.
All the other programs are working well, including aMSN.
imlib-config.h?? you should have a file called imlib-config in /usr/bin. also, post more info as what you have posted so far doesn't help much. imlib2 is a different library than imlib, so it doesn't apply here. if you are running an rpm distro, make sure you have the -devel package installed for imlib. if you still can't get it to work, post the relevant portion of config.log
Some clearer questions:
1 - Where is defined the path to imlib.h?
2 - How can I change it?
3 - How does ./configure find it?
More. In imlib-config, what does these lines mean?
1 - prefix=/usr
2 - exec_prefix=/usr
3 - exec_prefix_set=no
4 -
if test /usr/include != /usr/include ; then
includes=-I/usr/include
fi
echo $includes
;;
--cflags-gdk)
if test /usr/include != /usr/include ; then
includes=-I/usr/include
fi
configure:1305: checking for Tcl configuration
configure:1376: result: found /usr/lib/tclConfig.sh
configure:1403: checking for Tk configuration
configure:1471: result: found /usr/lib/tkConfig.sh
configure:1538: checking for gcc
configure:1554: found /usr/bin/gcc
configure:1564: result: gcc
configure:1808: checking for C compiler version
configure:1811: gcc --version </dev/null >&5
gcc (GCC) 3.3.3 (release)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:1814: $? = 0
configure:1816: gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/i386-conectiva-linux/3.3.3/specs
Configured with: ../configure --prefix=/usr --bindir=/usr/bin --libdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --enable-shared --disable-checking --enable-long-long --enable-__cxa_atexit --enable-threads=posix --disable-libunwind-exceptions --enable-libgcj --enable-languages=c,c++,f77,objc,java --with-system-zlib --host=i386-conectiva-linux --target=i386-conectiva-linux --with-gxx_include_dir=/usr/include/c++/3.3.3
Thread model: posix
gcc version 3.3.3 (release)
configure:1819: $? = 0
configure:1821: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:1824: $? = 1
configure:1848: checking for C compiler default output
configure:1851: gcc conftest.c >&5
configure:1854: $? = 0
configure:1900: result: a.out
configure:1905: checking whether the C compiler works
configure:1911: ./a.out
configure:1914: $? = 0
configure:1931: result: yes
configure:1938: checking whether we are cross compiling
configure:1940: result: no
configure:1943: checking for suffix of executables
configure:1945: gcc -o conftest conftest.c >&5
configure:1948: $? = 0
configure:1973: result:
configure:1979: checking for suffix of object files
configure:2001: gcc -c conftest.c >&5
configure:2004: $? = 0
configure:2026: result: o
configure:2030: checking whether we are using the GNU C compiler
configure:2055: gcc -c conftest.c >&5
configure:2058: $? = 0
configure:2061: test -s conftest.o
configure:2064: $? = 0
configure:2077: result: yes
configure:2083: checking whether gcc accepts -g
configure:2105: gcc -c -g conftest.c >&5
configure:2108: $? = 0
configure:2111: test -s conftest.o
configure:2114: $? = 0
configure:2125: result: yes
configure:2142: checking for gcc option to accept ANSI C
configure:2203: gcc -c -g -O2 conftest.c >&5
configure:2206: $? = 0
configure:2209: test -s conftest.o
configure:2212: $? = 0
configure:2230: result: none needed
configure:2248: gcc -c -g -O2 conftest.c >&5
conftest.c:2: error: parse error before "me"
configure:2251: $? = 1
configure: failed program was:
| #ifndef __cplusplus
| choke me
| #endif
configure:2438: checking for imlib-config
configure:2456: found /usr/bin/imlib-config
configure:2469: result: /usr/bin/imlib-config
configure:2477: checking for IMLIB - version >= 1.8.2
configure:2566: gcc -pipe -o conftest -fPIC conftest.c -L/usr/lib -lImlib -ljpeg -ltiff -lungif -lpng -lz -lm -lXext -L/usr/X11R6/lib -lSM -lICE -lXext -lX11 >&5
/usr/bin/ld: cannot find -ltiff
collect2: ld returned 1 exit status
configure:2569: $? = 1
configure: program exited with status 1
configure: failed program was:
| #line 2501 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME "FULL-PACKAGE-NAME"
| #define PACKAGE_TARNAME "full-package-name"
| #define PACKAGE_VERSION "VERSION"
| #define PACKAGE_STRING "FULL-PACKAGE-NAME VERSION"
| #define PACKAGE_BUGREPORT "BUG-REPORT-ADDRESS"
| /* end confdefs.h. */
|
| #include <stdio.h>
| #include <stdlib.h>
| #include <string.h>
| #include <Imlib.h>
|
| char*
| my_strdup (char *str)
| {
| char *new_str;
|
| if (str)
| {
| new_str = malloc ((strlen (str) + 1) * sizeof(char));
| strcpy (new_str, str);
| }
| else
| new_str = NULL;
|
| return new_str;
| }
|
| int main ()
| {
| int major, minor, micro;
| char *tmp_version;
|
| system ("touch conf.imlibtest");
|
| /* HP/UX 9 (%@#!) writes to sscanf strings */
| tmp_version = my_strdup("1.8.2");
| if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
| printf("%s, bad version string\n", "1.8.2");
| exit(1);
| }
|
| if ((1 > major) ||
| ((1 == major) && (9 > minor)) ||
| ((1 == major) && (9 == minor) &&
| (14 >= micro)))
| {
| return 0;
| }
| else
| {
| printf("\n*** 'imlib-config --version' returned %d.%d, but the minimum version\n", 1, 9);
| printf("*** of IMLIB required is %d.%d. If imlib-config is correct, then it is\n", major, minor);
| printf("*** best to upgrade to the required version.\n");
| printf("*** If imlib-config was wrong, set the environment variable IMLIB_CONFIG\n");
| printf("*** to point to the correct copy of imlib-config, and remove the file\n");
| printf("*** config.cache before re-running configure\n");
| return 1;
| }
| }
|
|
configure:2596: result: no
configure:2630: gcc -pipe -o conftest -fPIC conftest.c -L/usr/lib -lImlib -ljpeg -ltiff -lungif -lpng -lz -lm -lXext -L/usr/X11R6/lib -lSM -lICE -lXext -lX11 >&5
/usr/bin/ld: cannot find -ltiff
collect2: ld returned 1 exit status
configure:2633: $? = 1
configure: failed program was:
| #line 2610 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME "FULL-PACKAGE-NAME"
| #define PACKAGE_TARNAME "full-package-name"
| #define PACKAGE_VERSION "VERSION"
| #define PACKAGE_STRING "FULL-PACKAGE-NAME VERSION"
| #define PACKAGE_BUGREPORT "BUG-REPORT-ADDRESS"
| /* end confdefs.h. */
|
| #include <stdio.h>
| #include <Imlib.h>
|
| int
| main ()
| {
| return 0;
| ;
| return 0;
| }
configure:2672: error: Fatal Error: no Imlib detected.
so
imlib-config --libs
must be returning
-L/usr/lib -lImlib -ljpeg -ltiff -lungif -lpng -lz -lm -lXext -L/usr/X11R6/lib -lSM -lICE -lXext -lX11
first thing to do is as root run
ldconfig
then either make sure there is no like config.cache file or whatever or what i do is just delete the build directory and untar the package again to get a clean start and try the configure again
if that doesn't work show us
cd /usr/lib
ls -l | grep libtiff
and where is the library? just because it's on your filesystem doesn't mean the linker will find it. has the library been cached by ldconfig or in your LD_LIBRARY_PATH? is it a system installed library or did you install it yourself?
you don't give us any information
if you tried configure again from a clean build directory after running ldconfig as root check the log to see if it's the same error concerning libtiff if it is check the link you made in /usr/lib is it made correctly.
other than that no telling -- i notice the *la libtool archive file along with the link for libtiff is missing
so there might be a developement package for libtiff that's missing
sometimes there are just unexplained odd things with configure scripts due to version differences in the tool chain -- as a last resort sometimes if i can't get an older or newer version to work i just hack the configure script and make the test think it worked.
Thank you for your patience.
I have it working now (although the traydock icon is terribly ugly) and I must to say merci!
And here, (Resumo da Ópera), if you want to know, a synopsis of the problem:
Well, when I got this problem, I searched for imlib-devel and I had installed it.
Although, I didn't know I had to have libtiff-devel, too.
Then, you said about it and I installed libtiff-devel and other packs, like libungif-devel and libpng-devel.
./configure started to work. make, although, didn't.
make was asking some -ieee. Then, I installed glibc-devel-static and it worked.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.