Opened 6 years ago

Closed 6 years ago

#56667 closed defect (fixed)

pstoedit @3.73 does not build on PPC Tiger, Mac OS X 10.4.11 – because /opt/local/bin/g++-apple-4.2 too old?

Reported by: ballapete (Peter "Pete" Dyballa) Owned by: Ken <21211439+kencu@…>
Priority: Normal Milestone:
Component: ports Version: 2.5.2
Keywords: tiger Cc:
Port: pstoedit

Description

make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_graphics_pstoedit/pstoedit/work/pstoedit-3.73/src'
depbase=`echo dynload.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ../libtool  --tag=CXX   --mode=compile /opt/local/bin/g++-apple-4.2 -DHAVE_CONFIG_H -I.  -DHAVE_LIBPLOTTER  -DHAVE_MKSTEMP -DHAVE_MAGIC -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/opt/local/include/ImageMagick-6    -DDEFAULTGS=gs -DPSTOEDITDATADIR="\"/opt/local/share/pstoedit\"" -DPSTOEDITLIBDIR="\"/opt/local/lib/pstoedit\"" -Wall -Wextra -Wuninitialized -Wswitch-default -Wunused -Wshadow -Wwrite-strings -Wcast-qual -Wpointer-arith -Wno-long-long -I/opt/local/include -Wno-long-long -D_BIG_ENDIAN  -pipe -Os -arch ppc -DINTERNALBOOL -MT dynload.lo -MD -MP -MF $depbase.Tpo -c -o dynload.lo dynload.cpp &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  /opt/local/bin/g++-apple-4.2 -DHAVE_CONFIG_H -I. -DHAVE_LIBPLOTTER -DHAVE_MKSTEMP -DHAVE_MAGIC -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/opt/local/include/ImageMagick-6 -DDEFAULTGS=gs -DPSTOEDITDATADIR=\"/opt/local/share/pstoedit\" -DPSTOEDITLIBDIR=\"/opt/local/lib/pstoedit\" -Wall -Wextra -Wuninitialized -Wswitch-default -Wunused -Wshadow -Wwrite-strings -Wcast-qual -Wpointer-arith -Wno-long-long -I/opt/local/include -Wno-long-long -D_BIG_ENDIAN -pipe -Os -arch ppc -DINTERNALBOOL -MT dynload.lo -MD -MP -MF .deps/dynload.Tpo -c dynload.cpp  -fno-common -DPIC -o .libs/dynload.o
In file included from dynload.cpp:38:
dynload.h:35: error: 'nullptr' was not declared in this scope
dynload.h: In member function 'int DynLoader::valid() const':
dynload.h:41: error: 'nullptr' was not declared in this scope
dynload.cpp: In constructor 'DynLoader::DynLoader(const char*, std::ostream&, int)':
dynload.cpp:100: error: 'nullptr' was not declared in this scope
dynload.cpp: In member function 'void DynLoader::open(const char*)':
dynload.cpp:121: error: ISO C++ forbids declaration of 'fulllibname' with no type
dynload.cpp:121: error: invalid conversion from 'char*' to 'int'
dynload.cpp:122: error: invalid conversion from 'int' to 'char*'
dynload.cpp:122: error:   initializing argument 1 of 'void strcpy_s(char*, size_t, const char*)'
dynload.cpp:127: error: invalid conversion from 'int' to 'const char*'
dynload.cpp:127: error:   initializing argument 1 of 'void* dlopen(const char*, int)'
dynload.cpp:137: error: 'nullptr' was not declared in this scope
dynload.cpp:142: error: type 'int' argument given to 'delete', expected pointer
dynload.cpp:159: error: type 'int' argument given to 'delete', expected pointer
dynload.cpp: In member function 'void DynLoader::close()':
dynload.cpp:191: error: 'nullptr' was not declared in this scope
dynload.cpp: In destructor 'DynLoader::~DynLoader()':
dynload.cpp:201: error: 'nullptr' was not declared in this scope
dynload.cpp: In member function 'int DynLoader::knownSymbol(const char*) const':
dynload.cpp:207: error: 'nullptr' was not declared in this scope
dynload.cpp: In member function 'void (* DynLoader::getSymbol(const char*, int) const)()':
dynload.cpp:239: error: 'nullptr' was not declared in this scope
dynload.cpp: In constructor 'PluginVector::PluginVector()':
dynload.cpp:262: error: 'nullptr' was not declared in this scope
dynload.cpp: In destructor 'PluginVector::~PluginVector()':
dynload.cpp:266: error: 'nullptr' was not declared in this scope
dynload.cpp: In function 'void loadaPlugin(const char*, std::ostream&, bool)':
dynload.cpp:288: error: ISO C++ forbids declaration of 'dynloader' with no type
dynload.cpp:288: error: invalid conversion from 'DynLoader*' to 'int'
dynload.cpp:289: error: base operand of '->' is not a pointer
dynload.cpp:290: error: type 'int' argument given to 'delete', expected pointer
dynload.cpp:299: error: base operand of '->' is not a pointer
dynload.cpp:309: error: invalid conversion from 'int' to 'DynLoader*'
dynload.cpp:309: error:   initializing argument 1 of 'void PluginVector::add(DynLoader*)'
dynload.cpp:313: error: base operand of '->' is not a pointer
dynload.cpp:315: error: base operand of '->' is not a pointer
dynload.cpp:316: error: 'nullptr' was not declared in this scope
dynload.cpp:321: error: 'nullptr' was not declared in this scope
make[2]: *** [dynload.lo] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_graphics_pstoedit/pstoedit/work/pstoedit-3.73/src'

Attachments (1)

main.log (43.8 KB) - added by ballapete (Peter "Pete" Dyballa) 6 years ago.
Main.log from PPC Tiger

Download all attachments as: .zip

Change History (4)

Changed 6 years ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.log added

Main.log from PPC Tiger

comment:1 Changed 6 years ago by ballapete (Peter "Pete" Dyballa)

Build succeeds with GCC6.

comment:2 Changed 6 years ago by kencu (Ken)

Prolly need PortGroup cxx11 1.1 unless Ryan finds some way that it can build without this support.

comment:3 Changed 6 years ago by Ken <21211439+kencu@…>

Owner: set to Ken <21211439+kencu@…>
Resolution: fixed
Status: newclosed

In c8d32cf485a3023edcb3cb4decd73d0760ad1382/macports-ports (master):

pstoedit: requires c++11

closes: #56667
revbump as link libraries might change due to
cxx11 1.1 PortGroup

Note: See TracTickets for help on using tickets.