[MacPorts] #28505: pstoedit @3.50 +universal build failure
MacPorts
noreply at macports.org
Tue Feb 22 00:35:29 PST 2011
#28505: pstoedit @3.50 +universal build failure
------------------------------------+---------------------------------------
Reporter: dtakahashi42@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.9.2
Keywords: universal | Port: pstoedit
------------------------------------+---------------------------------------
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
[http://sourceforge.net/tracker/?func=detail&aid=1506386&group_id=141853&atid=751646
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
}}}
--
Ticket URL: <https://trac.macports.org/ticket/28505>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list