Opened 14 years ago

Last modified 14 years ago

#24952 closed defect

cannot build +universal version of libpano13 on Snow Leopard — at Version 1

Reported by: turkowski Owned by: freespace+macforge@…
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc:
Port: libpano13

Description (last modified by jmroot (Joshua Root))

I canot cannot build +universal version of libpano13 on Snow Leopard. It seems to compile without +universal, though.

% sudo port -d install libpano13 +universal
...
/usr/bin/gcc-4.2 -O2 -arch x86_64 -arch i386 -arch x86_64 -arch i386 -o .libs/panoinfo panoinfo_unix.o  -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_libpano13/work/libpano13-2.9.14 -L/opt/local/lib /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_libpano13/work/libpano13-2.9.14/.libs/libpano13.dylib /opt/local/lib/libpng12.dylib /opt/local/lib/libtiff.dylib /opt/local/lib/libjpeg.dylib -lc -lz
ld: warning: in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_libpano13/work/libpano13-2.9.14/.libs/libpano13.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
Undefined symbols for architecture i386:
  "_queryFeatureString", referenced from:
      _main in panoinfo_unix.o
      _main in panoinfo_unix.o
      _main in panoinfo_unix.o
      _main in panoinfo_unix.o
      _main in panoinfo_unix.o
  "_queryFeatureInt", referenced from:
      _main in panoinfo_unix.o
  "_queryFeatures", referenced from:
      _main in panoinfo_unix.o
  "_panoProjectionFeaturesQuery", referenced from:
      _main in panoinfo_unix.o
  "_queryFeatureCount", referenced from:
      _main in panoinfo_unix.o
  "_queryFeatureDouble", referenced from:
      _main in panoinfo_unix.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//cc4uTA62.out (No such file or directory)
make[2]: *** [panoinfo] Error 1
make[2]: *** Waiting for unfinished jobs....
/usr/bin/gcc-4.2 -O2 -arch x86_64 -arch i386 -arch x86_64 -arch i386 -o .libs/PTAInterpolate PTAInterpolate.o  -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_libpano13/work/libpano13-2.9.14 -L/opt/local/lib /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_libpano13/work/libpano13-2.9.14/.libs/libpano13.dylib /opt/local/lib/libpng12.dylib /opt/local/lib/libtiff.dylib /opt/local/lib/libjpeg.dylib -lz -lc
ld: warning: in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_libpano13/work/libpano13-2.9.14/.libs/libpano13.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
Undefined symbols for architecture i386:
  "_fcnPano", referenced from:
      _fcnPano$non_lazy_ptr in PTAInterpolate.o
     (maybe you meant: _fcnPano$non_lazy_ptr)
  "_distSquared", referenced from:
      _distSquared$non_lazy_ptr in PTAInterpolate.o
     (maybe you meant: _distSquared$non_lazy_ptr)
  "_LoadScript", referenced from:
      _main in PTAInterpolate.o
  "_WriteResults", referenced from:
      _main in PTAInterpolate.o
  "_writeProject", referenced from:
      _main in PTAInterpolate.o
  "_TriangulatePoints", referenced from:
      _main in PTAInterpolate.o
  "_CheckParams", referenced from:
      _main in PTAInterpolate.o
  "_ParseScript", referenced from:
      _main in PTAInterpolate.o
  "_InterpolateImageFile", referenced from:
      _main in PTAInterpolate.o
      _main in PTAInterpolate.o
  "_blendImages", referenced from:
      _main in PTAInterpolate.o
  "_panoFileMakeTemp", referenced from:
      _main in PTAInterpolate.o
      _main in PTAInterpolate.o
  "_PrintError", referenced from:
      _main in PTAInterpolate.o
  "_SetAlignParams", referenced from:
      _SetAlignParams$non_lazy_ptr in PTAInterpolate.o
     (maybe you meant: _SetAlignParams$non_lazy_ptr)
  "_SetAdjustDefaults", referenced from:
      _main in PTAInterpolate.o
  "_SetGlobalPtr", referenced from:
      _main in PTAInterpolate.o
  "_SetLMParams", referenced from:
      _SetLMParams$non_lazy_ptr in PTAInterpolate.o
     (maybe you meant: _SetLMParams$non_lazy_ptr)
  "_StringtoFullPath", referenced from:
      _main in PTAInterpolate.o
      _main in PTAInterpolate.o
  "_RunLMOptimizer", referenced from:
      _main in PTAInterpolate.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccFPIw4W.out (No such file or directory)
make[2]: *** [PTAInterpolate] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
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_libpano13/work/libpano13-2.9.14" && /usr/bin/make -j2 all " returned error 2
DEBUG: Backtrace: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_libpano13/work/libpano13-2.9.14" && /usr/bin/make -j2 all " returned error 2
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 9)
    invoked from within
"$procedure $targetname"
Warning: the following items did not execute (for libpano13): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Change History (4)

Changed 14 years ago by turkowski

Attachment: HUGIN.out added

port install -d output

comment:1 Changed 14 years ago by jmroot (Joshua Root)

Description: modified (diff)
Owner: changed from macports-tickets@… to freespace+macforge@…
Port: libpano13 added

Please remember to preview and use WikiFormatting, fill in the Port field, and cc the maintainer.

Changed 14 years ago by jvansanten@…

Attachment: libtool-arch.diff added

Patch to pass -arch flags through libtool

Changed 14 years ago by jvansanten@…

Attachment: Portfile.diff added

Patch to Portfile to patch config/ltmain.sh

Note: See TracTickets for help on using tickets.