och det går bra. Som ni ser så kör jag med gd (php:s egna) och anger dir:et för jpeg-biblioteket till /usr (det ligger i /usr/lib). Första gången jag körde make och upptäckte att det blev fel så kollade jag /etc/ld.so.conf och såg att /usr/lib inte fanns med där. Så jag la till det och körde ldconfig, men det blev ingen skillnad. Jag har även provat att installera om jpeg-biblioteket men utan resultat. Nu har jag slut på idéer...
Felmeddelandena som make spottade ur sig såg ut som såhär:
ext/gd/libgd/gd_jpeg.lo(.text+0x33): In function `fatal_jpeg_error':
/usr/local/php-4.3.4/ext/gd/libgd/gd_jpeg.c:61: undefined reference to `jpeg_destroy'
ext/gd/libgd/gd_jpeg.lo(.text+0x147): In function `gdImageJpegCtx':
/usr/local/php-4.3.4/ext/gd/libgd/gd_jpeg.c:117: undefined reference to `jpeg_std_error'
ext/gd/libgd/gd_jpeg.lo(.text+0x1b0):/usr/local/php-4.3.4/ext/gd/libgd/gd_jpeg.c:129: undefined reference to `jpeg_CreateCompress'
ext/gd/libgd/gd_jpeg.lo(.text+0x1e1):/usr/local/php-4.3.4/ext/gd/libgd/gd_jpeg.c:135: undefined reference to `jpeg_set_defaults'
ext/gd/libgd/gd_jpeg.lo(.text+0x1f7):/usr/local/php-4.3.4/ext/gd/libgd/gd_jpeg.c:137: undefined reference to `jpeg_set_quality'
ext/gd/libgd/gd_jpeg.lo(.text+0x26c):/usr/local/php-4.3.4/ext/gd/libgd/gd_jpeg.c:151: undefined reference to `jpeg_start_compress'
ext/gd/libgd/gd_jpeg.lo(.text+0x2cc):/usr/local/php-4.3.4/ext/gd/libgd/gd_jpeg.c:158: undefined reference to `jpeg_write_marker'
ext/gd/libgd/gd_jpeg.lo(.text+0x35e):/usr/local/php-4.3.4/ext/gd/libgd/gd_jpeg.c:175: undefined reference to `jpeg_write_scanlines'
ext/gd/libgd/gd_jpeg.lo(.text+0x3a0):/usr/local/php-4.3.4/ext/gd/libgd/gd_jpeg.c:209: undefined reference to `jpeg_finish_compress'
ext/gd/libgd/gd_jpeg.lo(.text+0x3a8):/usr/local/php-4.3.4/ext/gd/libgd/gd_jpeg.c:210: undefined reference to `jpeg_destroy_compress'
ext/gd/libgd/gd_jpeg.lo(.text+0x443):/usr/local/php-4.3.4/ext/gd/libgd/gd_jpeg.c:202: undefined reference to `jpeg_write_scanlines'
ext/gd/libgd/gd_jpeg.lo(.text+0x49b):/usr/local/php-4.3.4/ext/gd/libgd/gd_jpeg.c:142: undefined reference to `jpeg_simple_progression'
ext/gd/libgd/gd_jpeg.lo(.text+0x53d): In function `gdImageCreateFromJpegCtx':
/usr/local/php-4.3.4/ext/gd/libgd/gd_jpeg.c:246: undefined reference to `jpeg_std_error'
ext/gd/libgd/gd_jpeg.lo(.text+0x5c6):/usr/local/php-4.3.4/ext/gd/libgd/gd_jpeg.c:261: undefined reference to `jpeg_CreateDecompress'
ext/gd/libgd/gd_jpeg.lo(.text+0x5db):/usr/local/php-4.3.4/ext/gd/libgd/gd_jpeg.c:265: undefined reference to `jpeg_read_header'
ext/gd/libgd/gd_jpeg.lo(.text+0x657):/usr/local/php-4.3.4/ext/gd/libgd/gd_jpeg.c:341: undefined reference to `jpeg_destroy_decompress'
ext/gd/libgd/gd_jpeg.lo(.text+0x673):/usr/local/php-4.3.4/ext/gd/libgd/gd_jpeg.c:287: undefined reference to `jpeg_start_decompress'
ext/gd/libgd/gd_jpeg.lo(.text+0x735):/usr/local/php-4.3.4/ext/gd/libgd/gd_jpeg.c:321: undefined reference to `jpeg_read_scanlines'
ext/gd/libgd/gd_jpeg.lo(.text+0x799):/usr/local/php-4.3.4/ext/gd/libgd/gd_jpeg.c:331: undefined reference to `jpeg_finish_decompress'
ext/gd/libgd/gd_jpeg.lo(.text+0x7ba):/usr/local/php-4.3.4/ext/gd/libgd/gd_jpeg.c:335: undefined reference to `jpeg_destroy_decompress'
ext/gd/libgd/gd_jpeg.lo(.text+0x9a2): In function `jpeg_gdIOCtx_src':
/usr/local/php-4.3.4/ext/gd/libgd/gd_jpeg.c:569: undefined reference to `jpeg_resync_to_restart'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
The three most dangerous things in the world are a programmer with a soldering iron, a hardware type with a program patch and a user with an idea.
In theory, there is no difference between theory and practice. But, in practice, there is.
kanske de finns någon jpeglib-config som du inte har i din path ?
annars brukar man väll kunna "forca" configure att använda libs + headers från väl valt ställe ?
hoppas det hjälper /Anca
nva wrote:Jag provade att ange sökvägen med --with-jpeg-dir=/usr/lib/libjpeg.so om det var det du menade. Men det hjälpte inte.
Nej, --with-nånting-dir pekar inte på libbet utan på ett dir som innehåller de filer
som man söker alternativt ett bas-directory där man sedan finner lib/ och include/
för "nånting".
Kolla att du har jpeg-devel-paket installerat?
Och prova att köra "make -k" (kör vidare trots fel) och se om png, zlib osv tänker
säga samma sak.
Oh give me a clone, my very own clone,
with the Y chromosome changed to X!
And since she's my own, of my own flesh and bone,
she'll be thinking of nothing but sex!
nva wrote:Jag provade att ange sökvägen med --with-jpeg-dir=/usr/lib/libjpeg.so om det var det du menade. Men det hjälpte inte.
Nej, --with-nånting-dir pekar inte på libbet utan på ett dir som innehåller de filer
som man söker alternativt ett bas-directory där man sedan finner lib/ och include/
för "nånting".
Det var det jag hade från början och det gick inte.
IcePic wrote:Kolla att du har jpeg-devel-paket installerat?
Jag surfade lite på det och det verkar som om libjpeg-devel är inkluderat i vanliga libjpeg.
IcePic wrote:Och prova att köra "make -k" (kör vidare trots fel) och se om png, zlib osv tänker
säga samma sak.
Testade det men den stannade på samma ställe ändå.
Det här är verkligen märkligt, jag har letat massor på nätet efter det felmeddelandet men det enda jag får upp är att man måste tänka på att ha med --with-jpeg-dir, --with-png-dir och --with-zlib-dir... Vilket jag har.
The three most dangerous things in the world are a programmer with a soldering iron, a hardware type with a program patch and a user with an idea.
In theory, there is no difference between theory and practice. But, in practice, there is.