Opened 15 years ago

Last modified 14 years ago

#20908 closed defect

synergy fails to build in snow leopard — at Version 6

Reported by: docwhat@… Owned by: ascarter@…
Priority: Normal Milestone:
Component: ports Version: 1.8.0
Keywords: LP64 Cc: css@…
Port: synergy

Description (last modified by jmroot (Joshua Root))

root@macbookpro ~# port install synergy
--->  Computing dependencies for synergy
--->  Building synergy
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_synergy/work/synergy-1.3.1" && /usr/bin/make -j2 all " returned error 2
Command output:                  from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:21,
                 from /System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:20,
                 from COSXClipboard.h:20,
                 from COSXClipboard.cpp:15:
/System/Library/Frameworks/CoreServices.framework/Headers/../Frameworks/CarbonCore.framework/Headers/MacTypes.h:91: error: conflicting declaration 'typedef unsigned int UInt32'
../../lib/common/BasicTypes.h:76: error: 'UInt32' has a previous declaration as 'typedef long unsigned int UInt32'
/System/Library/Frameworks/CoreServices.framework/Headers/../Frameworks/CarbonCore.framework/Headers/MacTypes.h:92: error: conflicting declaration 'typedef int SInt32'
../../lib/common/BasicTypes.h:72: error: 'SInt32' has a previous declaration as 'typedef long int SInt32'
make[3]: *** [COSXClipboardAnyTextConverter.o] Error 1
make[3]: *** Waiting for unfinished jobs....
COSXClipboard.cpp: In member function 'virtual bool COSXClipboard::empty()':
COSXClipboard.cpp:44: error: 'ClearScrap' was not declared in this scope
COSXClipboard.cpp:56: error: 'PutScrapFlavor' was not declared in this scope
COSXClipboard.cpp: In member function 'virtual void COSXClipboard::add(IClipboard::EFormat, const CString&)':
COSXClipboard.cpp:85: error: 'PutScrapFlavor' was not declared in this scope
COSXClipboard.cpp: In member function 'virtual bool COSXClipboard::open(UInt32) const':
COSXClipboard.cpp:95: error: 'GetCurrentScrap' was not declared in this scope
COSXClipboard.cpp: In member function 'virtual bool COSXClipboard::has(IClipboard::EFormat) const':
COSXClipboard.cpp:124: error: 'GetScrapFlavorFlags' was not declared in this scope
COSXClipboard.cpp: In member function 'virtual CString COSXClipboard::get(IClipboard::EFormat) const':
COSXClipboard.cpp:148: error: 'GetScrapFlavorFlags' was not declared in this scope
COSXClipboard.cpp:164: error: 'GetScrapFlavorSize' was not declared in this scope
COSXClipboard.cpp:175: error: 'GetScrapFlavorData' was not declared in this scope
COSXClipboard.cpp: In static member function 'static bool COSXClipboard::isOwnedBySynergy()':
COSXClipboard.cpp:209: error: 'GetCurrentScrap' was not declared in this scope
COSXClipboard.cpp:211: error: 'GetScrapFlavorFlags' was not declared in this scope
make[3]: *** [COSXClipboard.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Error: Status 1 encountered during processing.
root@macbookpro ~# 

Change History (6)

comment:1 Changed 15 years ago by docwhat@…

I have a pretty lame work around for this:

Edit /opt/local/etc/macports/macports.conf and change "universal_archs" to just be "i386" Then build using:

root@macbookpro ~# port clean synergy ; port install synergy +universal                       

comment:2 Changed 15 years ago by docwhat@…

Ah crud. Not only did I mess up the formatting, I included the wrong error.

The one in my initial post is for trying to force it build as x86_64 only by manually editing the makefiles after doing a "port config synergy".

Here's the real error from a "clean" macports:

root@macbookpro ~# port install synergy
--->  Computing dependencies for synergy
--->  Fetching synergy
--->  Verifying checksum(s) for synergy
--->  Extracting synergy
--->  Applying patches to synergy
--->  Configuring synergy
--->  Building synergy
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_synergy/work/synergy-1.3.1" && /usr/bin/make -j2 all " returned error 2
Command output: /usr/bin/make  all-recursive
Making all in lib
Making all in common
source='Version.cpp' object='Version.o' libtool=no \
	depfile='.deps/Version.Po' tmpdepfile='.deps/Version.TPo' \
	MACOSX_DEPLOYMENT_TARGET=10.2 depmode=gcc3 /bin/sh ../../config/depcomp \
	/usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I. -I../..   -I/opt/local/include -arch i386  -O2 -arch x86_64 -g -Wall -Wno-unknown-pragmas   -DSYSAPI_UNIX=1 -DWINAPI_CARBON=1 -D_THREAD_SAFE  -c -o Version.o `test -f 'Version.cpp' || echo './'`Version.cpp
g++-4.2: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags
make[3]: *** [Version.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Error: Status 1 encountered during processing.

comment:3 Changed 15 years ago by tobypeterson

my old hack to make this work is broken now that we have build_arch

comment:4 Changed 15 years ago by cssdev

Cc: css@… added

Cc Me!

comment:5 Changed 15 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to ascarter@…
Port: synergy added

comment:6 Changed 15 years ago by jmroot (Joshua Root)

Description: modified (diff)
Note: See TracTickets for help on using tickets.