Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#13160 closed defect (fixed)

Orbit2 fails to build on OS X Leopard 10.5

Reported by: scott@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.5.0
Keywords: Cc:
Port:

Description

Orbit2 does not build on Leopard (setting up all my ports from scratch on the new system to clean out the cruft). Here's what I get:

sbradfor$ sudo port install orbit2 ---> Fetching orbit2 ---> Attempting to fetch ORBit2-2.14.10.tar.bz2 from http://mandril.creatis.insa-lyon.fr/linux/gnome.org/sources/ORBit2/2.14/ ---> Verifying checksum(s) for orbit2 ---> Extracting orbit2 ---> Configuring orbit2 ---> Building orbit2 with target all Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_orbit2/work/ORBit2-2.14.10" && make all " returned error 2

Command output: (rm -f corba-ops-stubs.c corba-ops-common.c corba-ops-skels.c corba-ops.h
true) > /dev/null

../../../src/idl-compiler/orbit-idl-2 --showcpperrors --deps .deps/corba-ops.idl.P corba-ops.idl orbit-idl-2 2.14.10 compiling

mode, show preprocessor errors, passes: stubs skels common headers

Processing file corba-ops.idl cc1: note: obsolete option -I- used, please use -iquote instead for I in corba-ops-stubs.c corba-ops-common.c corba-ops-skels.c corba-ops.h; do \

sed -e 's,ZZZis_a,_is_a,g' -e 's,ZZis_a,is_a,g' $I > $I.out; mv $I.out $I; \

done; \ sed -e "s,Z,_,g" corba-ops-skels.c > corba-ops-skels.c.out; \ mv corba-ops-skels.c.out corba-ops-skels.c;

true make all-am make[6]: Nothing to be done for `all'. /bin/sh ../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../.. -I. -I. -I../../../include -I../../../include/orbit/orb-core -I../../../include -I../../../include/orbit/orb-core -DORBIT_TYPELIB_DIR=\""/opt/local/lib/orbit-2.0"\" -DORBIT2_INTERNAL_API -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -DG_DISABLE_DEPRECATED -I../../../linc2/include -I../../../linc2/include -D_REENTRANT -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include -O2 -Werror-implicit-function-declaration -MT orbit-interface-common.lo -MD -MP -MF .deps/orbit-interface-common.Tpo -c -o orbit-interface-common.lo orbit-interface-common.c mkdir .libs

gcc -DHAVE_CONFIG_H -I. -I../../.. -I. -I. -I../../../include -I../../../include/orbit/orb-core -I../../../include -I../../../include/orbit/orb-core -DORBIT_TYPELIB_DIR=\"/opt/local/lib/orbit-2.0\" -DORBIT2_INTERNAL_API -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -DG_DISABLE_DEPRECATED -I../../../linc2/include -I../../../linc2/include -D_REENTRANT -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include -O2 -Werror-implicit-function-declaration -MT orbit-interface-common.lo -MD -MP -MF .deps/orbit-interface-common.Tpo -c orbit-interface-common.c -fno-common -DPIC -o .libs/orbit-interface-common.o

In file included from ../../../include/orbit/GIOP/giop.h:12,

from ../../../include/orbit/orbit.h:15, from ../../../include/orbit/orb-core/orbit-interface.h:738, from orbit-interface-common.c:9:

../../../include/orbit/GIOP/giop-endian.h:19: error: static declaration of 'giop_byteswap' follows non-static declaration ../../../include/orbit/GIOP/giop-endian.h:13: error: previous declaration of 'giop_byteswap' was here make[5]: * [orbit-interface-common.lo] Error 1 make[4]: * [all] Error 2 make[3]: * [all-recursive] Error 1 make[2]: * [all-recursive] Error 1 make[1]: * [all-recursive] Error 1 make: * [all] Error 2

Error: Status 1 encountered during processing.

Thanks for your time/assistance! Please note that I have just applied the patch for glib that was causing problems on Leopard (see bug 13006) and that got me further along, until this, on building my ports :-)

Attachments (1)

orbit2-static.diff (1.5 KB) - added by afb@… 13 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 13 years ago by nox@…

Summary: Leopard: Orbit2 Does Not BuildOrbit2 fails to build on OS X Leopard 10.5

Changed 13 years ago by afb@…

Attachment: orbit2-static.diff added

comment:2 Changed 13 years ago by afb@…

Declaring G_INLINE_FUNC as static inline broke the declaration here, which was using extern and then extern inline

comment:3 Changed 13 years ago by frstan@…

looking at orbit2-static.diff : is the last line (16) supposed to end with a dangling "("? + G_INLINE_FUNC void giop_byteswap(guchaar *outdata,

comment:4 Changed 13 years ago by scott@…

after applying the patch orbit2 now builds as-expected :-). Used the following commands (hope they were right, lol, I'm a novice):

sudo port clean --working orbit2 cd /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/orbit2 sudo patch -p0 <~/Downloads/orbit2-static.diff sudo port install orbit2

Thanks!

comment:5 Changed 13 years ago by afb@…

Resolution: fixed
Status: newclosed

Fixed, r30871.

comment:6 Changed 12 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.