LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 04-16-2005, 07:09 PM   #1
sanmartin
Member
 
Registered: Sep 2004
Distribution: Kurumin 5 - KDE 3.3.2
Posts: 42

Rep: Reputation: 15
Troubles when compiling with IMLIB 1.9.14


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.

What shall I do?
 
Old 04-16-2005, 07:43 PM   #2
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
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
 
Old 04-17-2005, 08:41 AM   #3
sanmartin
Member
 
Registered: Sep 2004
Distribution: Kurumin 5 - KDE 3.3.2
Posts: 42

Original Poster
Rep: Reputation: 15
I'm sorry! It's imlib-config! Without .h...

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


Thank you
 
Old 04-17-2005, 10:14 AM   #4
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
show us the output from
imlib-config --version
 
Old 04-17-2005, 06:23 PM   #5
sanmartin
Member
 
Registered: Sep 2004
Distribution: Kurumin 5 - KDE 3.3.2
Posts: 42

Original Poster
Rep: Reputation: 15
imlib-config --version
1.9.14
 
Old 04-17-2005, 08:16 PM   #6
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
post the config.log from the source that wouldn't work ( if you can, just find the relevant portion where it has errors).
 
Old 04-18-2005, 06:10 PM   #7
sanmartin
Member
 
Registered: Sep 2004
Distribution: Kurumin 5 - KDE 3.3.2
Posts: 42

Original Poster
Rep: Reputation: 15
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by FULL-PACKAGE-NAME configure VERSION, which was
generated by GNU Autoconf 2.57. Invocation command line was

$ ./configure

## --------- ##
## Platform. ##
## --------- ##

hostname = coisa.localdomain
uname -m = i686
uname -r = 2.6.5-63077clsmp
uname -s = Linux
uname -v = #1 SMP Thu Jun 17 19:50:37 BRT 2004

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /usr/lib/kde3/bin
PATH: /sbin
PATH: /usr/sbin
PATH: /bin
PATH: /usr/bin
PATH: /usr/X11R6/bin
PATH: /usr/local/bin
PATH: /usr/bin/X11
PATH: /usr/games
PATH: /usr/lib/java2/bin
PATH: /usr/lib/java2/jre/bin
PATH: /usr/lib/qt3/bin


## ----------- ##
## Core tests. ##
## ----------- ##

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, &micro) != 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.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_c_compiler_gnu=yes
ac_cv_c_tclconfig=/usr/lib
ac_cv_c_tkconfig=/usr/lib
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_exeext=
ac_cv_objext=o
ac_cv_path_IMLIB_CONFIG=/usr/bin/imlib-config
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_stdc=

## ----------------- ##
## Output variables. ##
## ----------------- ##

CC='gcc -pipe'
CFLAGS='-fPIC'
CFLAGS_DEBUG=''
CFLAGS_OPTIMIZE=''
CPP=''
CPPFLAGS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
IMLIB_CFLAGS=''
IMLIB_CONFIG='/usr/bin/imlib-config'
IMLIB_LIBS=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
OBJEXT='o'
PACKAGE_BUGREPORT='BUG-REPORT-ADDRESS'
PACKAGE_NAME='FULL-PACKAGE-NAME'
PACKAGE_STRING='FULL-PACKAGE-NAME VERSION'
PACKAGE_TARNAME='full-package-name'
PACKAGE_VERSION='VERSION'
PATH_SEPARATOR=':'
SHELL='/bin/sh'
SHLIB_CFLAGS=''
SHLIB_LD='gcc -pipe -shared'
SHLIB_LDFLAGS=''
STLIB_LD=''
TCL_INCLUDE_SPEC=''
TCL_LIB_SPEC='-L/usr/lib -ltcl8.3${TCL_DBGX}'
TCL_SRC_DIR='/usr/src/rpm/BUILD/tcltk-8.3.4/tcl8.3.4'
TK_LIBS='-L/usr/X11R6/lib -lX11 -ldl -lieee -lm'
TK_LIB_SPEC='-L/usr/lib -ltk8.3'
TK_SRC_DIR='/usr/src/rpm/BUILD/tcltk-8.3.4/tk8.3.4'
XINCLUDES='-I/usr/X11R6/include'
ac_ct_CC='gcc'
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${prefix}/share'
exec_prefix='/usr/local'
host_alias=''
includedir='${prefix}/include'
infodir='${prefix}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
prefix='/usr/local'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_BUGREPORT "BUG-REPORT-ADDRESS"
#define PACKAGE_NAME "FULL-PACKAGE-NAME"
#define PACKAGE_STRING "FULL-PACKAGE-NAME VERSION"
#define PACKAGE_TARNAME "full-package-name"
#define PACKAGE_VERSION "VERSION"

configure: exit 1
 
Old 04-18-2005, 10:46 PM   #8
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
there you go
Quote:
/usr/bin/ld: cannot find -ltiff
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

hard to imagine you don't have libtiff
 
Old 04-20-2005, 06:47 PM   #9
sanmartin
Member
 
Registered: Sep 2004
Distribution: Kurumin 5 - KDE 3.3.2
Posts: 42

Original Poster
Rep: Reputation: 15
It is not working...
And so...

# ls -l | grep libtiff
lrwxrwxrwx 1 root root 14 2005-04-10 20:09 libtiff.so.3 -> libtiff.so.3.5
-rw-r--r-- 1 root root 277544 2005-01-07 12:30 libtiff.so.3.5
 
Old 04-21-2005, 04:21 AM   #10
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
Quote:
Originally posted by sanmartin
It is not working...
And so...

# ls -l | grep libtiff
lrwxrwxrwx 1 root root 14 2005-04-10 20:09 libtiff.so.3 -> libtiff.so.3.5
-rw-r--r-- 1 root root 277544 2005-01-07 12:30 libtiff.so.3.5
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?
 
Old 04-21-2005, 09:16 AM   #11
sanmartin
Member
 
Registered: Sep 2004
Distribution: Kurumin 5 - KDE 3.3.2
Posts: 42

Original Poster
Rep: Reputation: 15
Imlib.h is in /usr/include
The system installed it there.

1 - I don't know how I use ldconfig
2 - I don't know how I access enviornment variables.

Thank you
 
Old 04-21-2005, 11:56 AM   #12
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
ok i see

this is all you need to do as root of course
cd /usr/lib
ln -s libtiff.so.3.5 libtiff.so

now it should work
 
Old 04-21-2005, 07:40 PM   #13
sanmartin
Member
 
Registered: Sep 2004
Distribution: Kurumin 5 - KDE 3.3.2
Posts: 42

Original Poster
Rep: Reputation: 15
Not working...

Well?

What would you like to see?

Thanks
 
Old 04-21-2005, 10:42 PM   #14
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
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.
 
Old 04-22-2005, 09:58 AM   #15
sanmartin
Member
 
Registered: Sep 2004
Distribution: Kurumin 5 - KDE 3.3.2
Posts: 42

Original Poster
Rep: Reputation: 15
Now it is working, thank you.

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.

Obrigado e até.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Troubles compiling Cinelerra-1.2.1 Valhalla Linux - Software 11 01-17-2005 09:08 AM
Troubles compiling xfree86 4.4.0 Codegen Linux - Software 12 01-06-2005 10:29 AM
Troubles compiling 2.6.9 muppski Debian 8 11-11-2004 06:46 AM
compiling troubles Abe_the_Man Linux - Software 2 08-13-2004 02:29 PM
Compiling troubles garretwp Mandriva 18 04-13-2004 03:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration