[MacPorts] #16411: jpeg-6b_2 fails to build universal on Tiger/PPC- linking error
#16411: jpeg-6b_2 fails to build universal on Tiger/PPC- linking error ----------------------------------+----------------------------------------- Reporter: cgtobi@gmail.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Keywords: jpeg, universal, PPC | ----------------------------------+----------------------------------------- Building jpeg on Tiger (PPC) fails with a linking error {{{ $ sudo port install -v jpeg +universal ---> Fetching jpeg ---> Verifying checksum(s) for jpeg ---> Extracting jpeg ---> Applying patches to jpeg ---> Configuring jpeg ---> Building jpeg with target all Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_jpeg/work /jpeg-6b" && make all " returned error 2 Command output: _mach_init_routine ___sF _fclose _fopen _fprintf _fwrite _getc _sscanf _ungetc _fread __DefaultRuneLocale ___maskrune _memcpy ___tolower _memset referenced from libjpeg.62 expected to be defined in /usr/lib/libSystem.B.dylib _memcpy referenced from libjpeg.62 expected to be defined in /usr/lib/libSystem.B.dylib ___sF referenced from libjpeg.62 expected to be defined in /usr/lib/libSystem.B.dylib _exit referenced from libjpeg.62 expected to be defined in /usr/lib/libSystem.B.dylib _fprintf referenced from libjpeg.62 expected to be defined in /usr/lib/libSystem.B.dylib _sprintf referenced from libjpeg.62 expected to be defined in /usr/lib/libSystem.B.dylib _ferror referenced from libjpeg.62 expected to be defined in /usr/lib/libSystem.B.dylib _fflush referenced from libjpeg.62 expected to be defined in /usr/lib/libSystem.B.dylib _fwrite referenced from libjpeg.62 expected to be defined in /usr/lib/libSystem.B.dylib _getenv referenced from libjpeg.62 expected to be defined in /usr/lib/libSystem.B.dylib _sscanf referenced from libjpeg.62 expected to be defined in /usr/lib/libSystem.B.dylib _free referenced from libjpeg.62 expected to be defined in /usr/lib/libSystem.B.dylib _malloc referenced from libjpeg.62 expected to be defined in /usr/lib/libSystem.B.dylib collect2: ld returned 1 exit status lipo: can't open input file: /var/tmp//ccvrvWdd.out (No such file or directory) make: *** [cjpeg] Error 1 }}} -- Ticket URL: <http://trac.macports.org/ticket/16411> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16411: jpeg-6b_2 fails to build universal on Tiger/PPC- linking error -------------------------------+-------------------------------------------- Reporter: cgtobi@gmail.com | Owner: waqar@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: jpeg, universal, PPC -------------------------------+-------------------------------------------- Changes (by jmr@macports.org): * owner: macports-tickets@lists.macosforge.org => waqar@macports.org Comment: Assigning to maintainer. -- Ticket URL: <http://trac.macports.org/ticket/16411#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16411: jpeg-6b_2 fails to build universal on Tiger/PPC- linking error -------------------------------+-------------------------------------------- Reporter: cgtobi@gmail.com | Owner: waqar@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: jpeg, universal, PPC -------------------------------+-------------------------------------------- Changes (by ryandesign@macports.org): * cc: ryandesign@macports.org, mpeters@mapsoft.com (added) Comment: Has duplicate #16445. -- Ticket URL: <http://trac.macports.org/ticket/16411#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16411: jpeg-6b_2 fails to build universal on Tiger/PPC- linking error ----------------------------------+----------------------------------------- Reporter: cgtobi@… | Owner: waqar@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Keywords: jpeg, universal, PPC | Port: jpeg ----------------------------------+----------------------------------------- Changes (by ryandesign@…): * port: => jpeg Comment: I can't reproduce this issue. I can successfully build jpeg universal, for all four architectures (i386 ppc x86_64 ppc64), on all four supported OSes (Tiger and Leopard, on Intel and PowerPC). Please make sure you have the current versions of everything (Mac OS X 10.5.6 and Xcode 3.1.2, or Mac OS X 10.4.11 and Xcode 2.5, and also MacPorts 1.7.0 or later -- use `sudo port selfupdate` to get that). Then clean jpeg (`sudo port clean jpeg`) and try installing or upgrading jpeg again. -- Ticket URL: <http://trac.macports.org/ticket/16411#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16411: jpeg-6b_2 fails to build universal on Tiger/PPC- linking error ----------------------------------+----------------------------------------- Reporter: cgtobi@… | Owner: waqar@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Keywords: jpeg, universal, PPC | Port: jpeg ----------------------------------+----------------------------------------- Comment(by mcalhoun@…): I just ran into this problem.[[BR]] I tried to upgrade jpeg to get a universal build (so while jpeg was building, a non-universal /opt/local/lib/libjpeg.dylib existed).[[BR]] At one point in the build process, there is the command: {{{ /usr/bin/gcc-4.0 -L/opt/local/lib -arch ppc -arch i386 -arch ppc64 -arch x86_64 -mmacosx-version-min=10.5 -o .libs/cjpeg cjpeg.o rdppm.o rdgif.o rdtarga.o rdrle.o rdbmp.o rdswitch.o cdjpeg.o -L.libs -ljpeg }}} Since -L/opt/local/lib is before -L.libs, the linker finds /opt/local/lib/libjpeg.dylib (not universal) instead of .libs/libjpeg.dylib (universal). Attached is a proposed fix. It is a long shot, but this may be related to #17910.[[BR]] If /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib[[BR]] was in the library search path, then the above command might have found it as well. -- Ticket URL: <http://trac.macports.org/ticket/16411#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16411: jpeg-6b_2 fails to build universal on Tiger/PPC- linking error ----------------------------------+----------------------------------------- Reporter: cgtobi@… | Owner: waqar@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Keywords: jpeg, universal, PPC | Port: jpeg ----------------------------------+----------------------------------------- Comment(by ryandesign@…): Replying to [comment:5 mcalhoun@…]:
I tried to upgrade jpeg to get a universal build (so while jpeg was building, a non-universal /opt/local/lib/libjpeg.dylib existed). Thanks for noticing this. I'll check it out.
-- Ticket URL: <http://trac.macports.org/ticket/16411#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16411: jpeg-6b_2 fails to build universal on Tiger/PPC- linking error ----------------------------------+----------------------------------------- Reporter: cgtobi@… | Owner: waqar@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Keywords: jpeg, universal, PPC | Port: jpeg ----------------------------------+----------------------------------------- Comment(by ryandesign@…): Replying to [comment:6 ryandesign@…]:
Replying to [comment:5 mcalhoun@…]:
I tried to upgrade jpeg to get a universal build (so while jpeg was building, a non-universal /opt/local/lib/libjpeg.dylib existed). Thanks for noticing this. I'll check it out. This may be the same situation as in #15356.
-- Ticket URL: <http://trac.macports.org/ticket/16411#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16411: jpeg-6b_2 fails to build universal on Tiger/PPC- linking error ----------------------------------+----------------------------------------- Reporter: cgtobi@… | Owner: waqar@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Keywords: jpeg, universal, PPC | Port: jpeg ----------------------------------+----------------------------------------- Changes (by blb@…): * cc: treaves@… (added) Comment: Cc reporter of dup #18528. -- Ticket URL: <http://trac.macports.org/ticket/16411#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16411: jpeg-6b_2 fails to build universal on Tiger/PPC- linking error ----------------------------------+----------------------------------------- Reporter: cgtobi@… | Owner: waqar@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Keywords: jpeg, universal, PPC | Port: jpeg ----------------------------------+----------------------------------------- Comment(by treaves@…): Sorry for not noticing mine was a duplicate. This seems to have been an issue for six months; any idea when a fix might be forth-comming? -- Ticket URL: <http://trac.macports.org/ticket/16411#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16411: jpeg-6b_2 fails to build universal on Tiger/PPC- linking error -------------------------------+-------------------------------------------- Reporter: cgtobi@… | Owner: waqar@… Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: fixed | Keywords: jpeg, universal, PPC Port: jpeg | -------------------------------+-------------------------------------------- Changes (by mcalhoun@…): * status: new => closed * resolution: => fixed Comment: Fixed in r47969 (maintainer timeout). -- Ticket URL: <http://trac.macports.org/ticket/16411#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts