Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#28505 closed defect (fixed)

pstoedit @3.50 +universal build failure

Reported by: daitakahashi Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: universal haspatch Cc:
Port: pstoedit

Description

Since the provided configure script overwrites CXXFLAGS by default flag ("-g"), it always fail to link when +universal variant is enabled. This problem was once mentioned at pstoedit' bug tracker, but still affects the current version.

Although I am not sure the reason of CXXFLAGS overwrite, the problem seems to be solved by editing a configure.ac (see attached file).

Thank you very much.

:info:build /usr/bin/g++-4.0 -DHAVE_CONFIG_H -I. -I. -I.  -DHAVE_LIBPLOTTER  -DHAVE_MKSTEMP -DHAVE_MAGIC -I/opt/local/include/ImageMagick    -DHAVE_LIBPNG -DDEFAULTGS=/opt/local/bin/gs -DPSTOEDITDATADIR="¥"/opt/local/share/pstoedit¥"" -DPSTOEDITLIBDIR="¥"/opt/local/lib/pstoedit¥"" -DBUGGYGPP -pedantic -Wall -Wwrite-strings -Wcast-qual -Wpointer-arith -Wno-long-long  -I/opt/local/include -Wno-long-long  -g -c -o cmdmain.o cmdmain.cpp
:info:build /bin/sh ../libtool --tag=CXX --mode=link /usr/bin/g++-4.0  -g  -L/opt/local/lib -arch i386 -arch x86_64 -o pstoedit -no-undefined -L. libpstoedit.la -ldl cmdmain.o  -lgd 
:info:build libtool: link: /usr/bin/g++-4.0 -g -arch i386 -arch x86_64 -o .libs/pstoedit cmdmain.o  -L/opt/local/lib -L/opt/local/var/macports/build/_opt_local_var_db_sources_dports_graphics_pstoedit/work/pstoedit-3.50/src ./.libs/libpstoedit.dylib -lstdc++ -lm -ldl /opt/local/lib/libgd.dylib /opt/local/lib/libXpm.dylib /opt/local/lib/libintl.dylib -lc /opt/local/lib/libX11.dylib /opt/local/lib/libxcb.dylib /opt/local/lib/libXau.dylib /opt/local/lib/libXdmcp.dylib /opt/local/lib/libjpeg.dylib /opt/local/lib/libfontconfig.dylib /opt/local/lib/libiconv.dylib /opt/local/lib/libexpat.dylib /opt/local/lib/libfreetype.dylib /opt/local/lib/libpng14.dylib -lz
:info:build ld warning: in cmdmain.o, file is not of required architecture
:info:build Undefined symbols for architecture x86_64:
:info:build   "_main", referenced from:
:info:build       start in crt1.10.5.o
:info:build ld: symbol(s) not found for architecture x86_64
:info:build collect2: ld returned 1 exit status

Attachments (2)

configure.ac.diff (904 bytes) - added by daitakahashi 14 years ago.
configure.diff (1023 bytes) - added by daitakahashi 14 years ago.
A patch file for configure

Download all attachments as: .zip

Change History (5)

Changed 14 years ago by daitakahashi

Attachment: configure.ac.diff added

comment:1 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: haspatch added
Owner: changed from macports-tickets@… to ryandesign@…
Status: newassigned

Thanks!

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

Resolution: fixed
Status: assignedclosed

In addition to fixing universal builds, this also fixes builds when build_arch is not the default. Committed in r76405.

Changed 14 years ago by daitakahashi

Attachment: configure.diff added

A patch file for configure

comment:3 Changed 14 years ago by daitakahashi

Sorry, forget the last attached file. I misunderstood the port build system.

Note: See TracTickets for help on using tickets.