Gimp 0.99.8 compilation problem w/ jpeg stuff

Gimp 0.99.8 compilation problem w/ jpeg stuff

Post by Tod Liebec » Wed, 23 Apr 1997 04:00:00



I'm having trouble compiling Gimp 0.99.8, just wondering if anyone had
run into a problem similar to this.  I've never compiled Gimp before,
and think I am missing some libraries or have some that are out of
date.  If someone could let me know which ones I need I'd really
appreciate it.  Thank you.

Here's what I get:

Nothing to be done for `all'.
make[3]: Leaving directory `/archive/gimp-0.99.8/plug-ins/dgimp'
Making all in script-fu
make[3]: Entering directory `/archive/gimp-0.99.8/plug-ins/script-fu'
Making all in scripts
make[4]: Entering directory
`/archive/gimp-0.99.8/plug-ins/script-fu/scripts'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory
`/archive/gimp-0.99.8/plug-ins/script-fu/scripts'
make[3]: Leaving directory `/archive/gimp-0.99.8/plug-ins/script-fu'
../libtool --mode=link gcc  -o jpeg  jpeg.o -L/usr/local/lib
../libgimp/libgimp.la ../gtk+/gtk/libgtk.la ../gtk+/gdk/libgdk.la
../gtk+/glib/libglib.la -L/usr/X11R6/lib -lXext -lX11  -ljpeg -lc -lm
gcc -o .libs/jpeg jpeg.o -L/usr/local/lib -Wl,-rpath -Wl,/usr/local/lib
../libgimp/.libs/libgimp.so -Wl,-rpath -Wl,/usr/local/lib
../gtk+/gtk/.libs/libgtk.so -Wl,-rpath -Wl,/usr/local/lib
../gtk+/gdk/.libs/libgdk.so -Wl,-rpath -Wl,/usr/local/lib
../gtk+/glib/.libs/libglib.so -L/usr/X11R6/lib -lXext -lX11 -ljpeg -lc
-lm
jpeg.o: In function `load_image':
jpeg.o(.text+0x2b8): undefined reference to `jpeg_std_error'
jpeg.o(.text+0x356): undefined reference to `jpeg_destroy_decompress'
jpeg.o(.text+0x39a): undefined reference to `jpeg_create_decompress'
jpeg.o(.text+0x3a7): undefined reference to `jpeg_stdio_src'
jpeg.o(.text+0x3af): undefined reference to `jpeg_read_header'
jpeg.o(.text+0x3b5): undefined reference to `jpeg_start_decompress'
jpeg.o(.text+0x569): undefined reference to `jpeg_read_scanlines'
jpeg.o(.text+0x5ee): undefined reference to `jpeg_finish_decompress'
jpeg.o(.text+0x5f4): undefined reference to `jpeg_destroy_decompress'
jpeg.o: In function `save_image':
jpeg.o(.text+0x6d5): undefined reference to `jpeg_std_error'
jpeg.o(.text+0x712): undefined reference to `jpeg_destroy_compress'
jpeg.o(.text+0x750): undefined reference to `jpeg_create_compress'
jpeg.o(.text+0x795): undefined reference to `jpeg_stdio_dest'
jpeg.o(.text+0x846): undefined reference to `jpeg_set_defaults'
jpeg.o(.text+0x88f): undefined reference to `jpeg_set_quality'
jpeg.o(.text+0x8c9): undefined reference to `jpeg_start_compress'
jpeg.o(.text+0x9f0): undefined reference to `jpeg_write_scanlines'
jpeg.o(.text+0xa54): undefined reference to `jpeg_finish_compress'
jpeg.o(.text+0xa66): undefined reference to `jpeg_destroy_compress'
make[2]: *** [jpeg] Error 1
make[2]: Leaving directory `/archive/gimp-0.99.8/plug-ins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/archive/gimp-0.99.8'
make: *** [all-recursive-am] Error 2
mtb:/archive/gimp-0.99.8#

 
 
 

Gimp 0.99.8 compilation problem w/ jpeg stuff

Post by Wolfram Gloge » Thu, 24 Apr 1997 04:00:00



> Linux is particularly susceptible to this sort of problem,
> because (a) [...] (b) Linux's brain-damaged
> excuse for a linker looks first for libraries in /usr/lib,
> *even if you tell it to look somewhere else with a -L switch*.

Have you checked this, or is it just another rumour ?  It works just
fine for me (and probably for everyone else using the GNU `excuse for
a linker').  I just checked, both with static and shared libraries.

Regards,
Wolfram.

 
 
 

Gimp 0.99.8 compilation problem w/ jpeg stuff

Post by Tom La » Thu, 24 Apr 1997 04:00:00


At a guess, you're trying to link a new libjpeg-using program
against an old (pre-v5) version of libjpeg.

Linux is particularly susceptible to this sort of problem,
because (a) a lot of Linux distributions have shipped with
a v4-vintage libjpeg in /usr/lib; (b) Linux's brain-damaged
excuse for a linker looks first for libraries in /usr/lib,
*even if you tell it to look somewhere else with a -L switch*.
So it's very easy to compile against one version of libjpeg
and link against another.

Instead of -L/some/path -ljpeg, try using /exact/path/to/libjpeg.a,
naming the libjpeg that gimp ships with.

                        regards, tom lane
                        organizer, Independent JPEG Group

 
 
 

Gimp 0.99.8 compilation problem w/ jpeg stuff

Post by Tom La » Fri, 25 Apr 1997 04:00:00




>> Linux is particularly susceptible to this sort of problem,
>> because (a) [...] (b) Linux's brain-damaged
>> excuse for a linker looks first for libraries in /usr/lib,
>> *even if you tell it to look somewhere else with a -L switch*.
> Have you checked this, or is it just another rumour ?  It works just
> fine for me (and probably for everyone else using the GNU `excuse for
> a linker').  I just checked, both with static and shared libraries.

Perhaps it's been fixed; that'd be good news if so.  It was a serious
problem a year or so ago.  I verified it personally on a Linux box at
the time, and there were recurring complaints on the newsgroups that
could be traced to this bug.  (The ones I recall were from people
failing to build xfig on Linux, because the linker was picking up an
obsolete libjpeg from /usr/lib rather than the up-to-date one the xfig
makefile had just finished building :-(.)

The symptoms the previous poster complained of matched this problem
*exactly*.  Perhaps he wouldn't be seeing it on an up-to-date Linux
installation, but...

                        regards, tom lane
                        organizer, Independent JPEG Group

 
 
 

Gimp 0.99.8 compilation problem w/ jpeg stuff

Post by Matthew Cummin » Sat, 26 Apr 1997 04:00:00




Quote:> Perhaps it's been fixed; that'd be good news if so.  It was a serious
> problem a year or so ago.  I verified it personally on a Linux box at

You should know that in a year or so that things change greatly, it's a sad
fact that people base views on old outdated information.  It works great
now, and in fact I didn't have problems a year ago either, maybe it was
something else.
--
Legal Warning: Do NOT send unsolicited commercial email to me - consider this
an official notice.

"By US Code Title 47, Sec.227(a)(2)(B), a computer/modem/printer meets the
 definition of a telephone fax machine.  By Sec.227(b)(1)(C), it is unlawful
 to send any unsolicited adverti*t to such equipment.  By Sec.227(b)(3)(C),
 a violation of the aforementioned Section is punishable by action to recover
 actual monetary loss, or $500, whichever is greater, for each violation."


 
 
 

1. gimp compilation broken,undefined reference to 'jpeg..'

[ gimp.error 1K ]

First of all I would like to thank all people who has tried to help me
compiling 'gimp'. Thanks to them I've moved on a little bit
but I have still new problem to compile gimp-0.9.99 from sources.

I have put all things from '.libs' into /usr/local/lib/
and I have installed 'jpeg-6a'.
I've type 'ldconfig' , then
cd /usr/local/gimp-0.9.99
change the three files 'Makefiles.in' from gtk+/gtk/, gtk+/gdk/, libgimp/
according the 'patch' I've received from somebody from the 'gimp mailing list'
then:
1 ../configure
2. make
(and I have got rid of the problem with -lglib, -lgtk, -lgdk
library: before the compilation was broken and I've got:
' -lglib no such file or directory')
but finally the compilation was broken again but much much later and
I've got the following message:
------
l/lib../gtk+/glib/.libs/lglib.so -L/X11R6/lib -lXext -lX11 -ljep -lc -lm
jpeg.o: In function 'load_image':
/usr/local/gimp-0.99.9/plug-ins/jpeg.c:281: undefined reference to 'jpeg_std_err
or'
/usr/local/gimp-0.99.9/plug-ins/jpeg.c:302: .......................'jpeg_destroy_
decompress
and similarly: ...jpeg.c:310:................jpeg_CreateDecompress
                  jpeg.c:314
                         ..
                         618.. (about in 20 lines were  errors)
make[2]: ***[jpeg] Error 1
make[2]: Leaving directory '/usr/local/gimp-0.99.9/plug-ins'
make[1]: *** [all-recursive] Error 1
make[1] leaving directory '/usr/local/gimp-0.99.9'

Could someone please suggest how to avoid this problem?

Jan Krupa

2. How to get filename in one command ?

3. gimp compilation broken, undefined reference to 'jpeg..'

4. rlogin & disconnect

5. (GIMP 0.99.19) building problems

6. Linux hangs when starting X

7. Gimp 0.99.12 Problem

8. "NT IS NOT AN ENTERPRISE ENVIRONMENT" but OS/2 Warp Server is (was :Re: "NT IS NOT AN ENTERPRISE ENVIRONMENT"- Microsoft and HP: Beyond the Hype)

9. L 99 99 99 error while booting

10. Compiling Gimp 0.9.99

11. GIMP 0.99.15 Crashes in RH 5.0?

12. gimp 0.99.0

13. gimp 0.99.15