Opened 17 years ago

Closed 16 years ago

Last modified 15 years ago

#12320 closed defect (fixed)

BUG: jpeg universal variant does not build

Reported by: ryan@… Owned by: waqar@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: ryan@…, waqar@…, ryandesign (Ryan Carsten Schmidt), gtoso@…
Port:

Description

With "+universal" in /opt/local/etc/macports/variants.conf, jpeg fails to build on i386 with the error:

./libtool --mode=link gcc -L/opt/local/lib -arch i386 -arch ppc -o cjpeg cjpeg.lo rdppm.lo rdgif.lo rdtarga.lo rdrle.lo rdbmp.lo rdswitch.lo cdjpeg.lo libjpeg.la<br> gcc -L/opt/local/lib -arch i386 -arch ppc -o .libs/cjpeg cjpeg.o rdppm.o rdgif.o rdtarga.o rdrle.o rdbmp.o rdswitch.o cdjpeg.o -L.libs -ljpeg

/usr/bin/ld: for architecture ppc

/usr/bin/ld: warning .libs/libjpeg.dylib cputype (7, architecture i386) does not match cputype (18) for specified -arch flag: ppc (file not loaded)

/usr/bin/ld: warning prebinding disabled because of undefined symbols

/usr/bin/ld: Undefined symbols:

_jpeg_CreateCompress

_jpeg_default_colorspace

_jpeg_destroy_compress

_jpeg_finish_compress

_jpeg_quality_scaling

_jpeg_set_colorspace

_jpeg_set_defaults

_jpeg_set_quality

_jpeg_simple_progression

_jpeg_start_compress

_jpeg_std_error

_jpeg_stdio_dest

_jpeg_write_scanlines

_jpeg_add_quant_table

collect2: ld returned 1 exit status

lipo: can't open input file: /var/tmpccCvk3gw.out (No such file or directory)

make: * [cjpeg] Error 1

Warning: the following items did not execute (for jpeg): org.macports.activate org.macports.build org.macports.destroot org.macports.archive org.macports.install

Error: Status 1 encountered during processing.

Change History (7)

comment:1 Changed 17 years ago by nox@…

Milestone: Port Bugs
Priority: ExpectedNormal
Summary: jpeg universal variant does not buildBUG: jpeg universal variant does not build
Version: 1.5.0

comment:2 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryan@… waqar@… ryandesign@… added
Owner: changed from macports-dev@… to waqar@…

comment:3 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

See also #12504 which proposes a possible solution using lipo.

comment:4 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: gtoso@… added

See also a mailing list thread with a different potential solution.

comment:5 Changed 16 years ago by waqar@…

Status: newassigned

comment:6 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

I applied mww's patch recently added to #12504. The universal variant should now work.

comment:7 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.