Opened 18 years ago

Closed 18 years ago

#10278 closed defect (fixed)

libdbus won't build on 'Panther', leaves gnome-vfs deactivated

Reported by: yaseppochi (Stephen J. Turnbull) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.2
Keywords: Cc: ryan.shaw@…, markd@…
Port:

Description

port from CVS, port freshly upgraded 2006-08-07 02:00 JST

papa% port upgrade gnome-vfs ---> Building dbus with target all Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/_Users_steve_Software_Ports_dports_devel_dbus/work/dbus-0.61" && make all" returned error 2 Command output: make all-recursive Making all in dbus make all-am if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DDBUS_COMPILATION -DDBUS_API_SUBJECT_TO_CHANGE=1 -I/opt/local/include -L/opt/local/lib -no-cpp-precomp -flat_namespace -undefined suppress -L/opt/local/lib -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wfloat-equal -Wsign-compare -MT dbus-sysdeps.lo -MD -MP -MF ".deps/dbus-sysdeps.Tpo" -c -o dbus-sysdeps.lo dbus-sysdeps.c; \ then mv -f ".deps/dbus-sysdeps.Tpo" ".deps/dbus-sysdeps.Plo"; else rm -f ".deps/dbus-sysdeps.Tpo"; exit 1; fi

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DDBUS_COMPILATION -DDBUS_API_SUBJECT_TO_CHANGE=1 -I/opt/local/include -L/opt/local/lib -no-cpp-precomp -flat_namespace -undefined suppress -L/opt/local/lib -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wfloat-equal -Wsign-compare -MT dbus-sysdeps.lo -MD -MP -MF .deps/dbus-sysdeps.Tpo -c dbus-sysdeps.c -fno-common -DPIC -o .libs/dbus-sysdeps.o

dbus-sysdeps.c:61:31: sys/sys/sys/ucred.h: No such file or directory dbus-sysdeps.c: In function `_dbus_read_credentials_unix_socket': dbus-sysdeps.c:968: warning: implicit declaration of function `getpeereid' make[3]: * [dbus-sysdeps.lo] Error 1 make[2]: * [all] Error 2 make[1]: * [all-recursive] Error 1 make: * [all] Error 2

---> Deactivating gnome-vfs 2.12.2_42+darwin_7 ---> Building dbus with target all Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/_Users_steve_Software_Ports_dports_devel_dbus/work/dbus-0.61" && make all" returned error 2 Command output: make all-recursive Making all in dbus make all-am if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DDBUS_COMPILATION -DDBUS_API_SUBJECT_TO_CHANGE=1 -I/opt/local/include -L/opt/local/lib -no-cpp-precomp -flat_namespace -undefined suppress -L/opt/local/lib -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wfloat-equal -Wsign-compare -MT dbus-sysdeps.lo -MD -MP -MF ".deps/dbus-sysdeps.Tpo" -c -o dbus-sysdeps.lo dbus-sysdeps.c; \ then mv -f ".deps/dbus-sysdeps.Tpo" ".deps/dbus-sysdeps.Plo"; else rm -f ".deps/dbus-sysdeps.Tpo"; exit 1; fi

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DDBUS_COMPILATION -DDBUS_API_SUBJECT_TO_CHANGE=1 -I/opt/local/include -L/opt/local/lib -no-cpp-precomp -flat_namespace -undefined suppress -L/opt/local/lib -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wfloat-equal -Wsign-compare -MT dbus-sysdeps.lo -MD -MP -MF .deps/dbus-sysdeps.Tpo -c dbus-sysdeps.c -fno-common -DPIC -o .libs/dbus-sysdeps.o

dbus-sysdeps.c:61:35: sys/sys/sys/sys/ucred.h: No such file or directory dbus-sysdeps.c: In function `_dbus_read_credentials_unix_socket': dbus-sysdeps.c:968: warning: implicit declaration of function `getpeereid' make[3]: * [dbus-sysdeps.lo] Error 1 make[2]: * [all] Error 2 make[1]: * [all-recursive] Error 1 make: * [all] Error 2

Error: The following dependencies failed to build: dbus papa% port installed gnome-vfs The following ports are currently installed:

gnome-vfs @2.12.2_42+darwin_7

papa%

Change History (2)

comment:1 Changed 18 years ago by ryan.shaw@…

Cc: ryan.shaw@… added

I am getting the same error on an Intel Mac running OSX 10.4.7. The culprit seems to be the following line in the dbus Portfile:

pre-build {

reinplace "s|ucred.h|sys/ucred.h|g" ${worksrcpath}/dbus/dbus-sysdeps.c

}

The replace is being executed recursively, resulting in the compilation error:

dbus-sysdeps.c:61:35: error: sys/sys/sys/sys/ucred.h: No such file or directory

comment:2 Changed 18 years ago by markd@…

Cc: markd@… added
Resolution: fixed
Status: newclosed

Revision 1 of the port now builds on 10.3. For the recursive reinplaces, perhaps a 'port install' was run after a failure without doing a 'port clean --all' so that multiple replaces occurred after multiple installation attempts. It tests out for me on 10.3 and 10.4. Reopen if you still have a problem.

Note: See TracTickets for help on using tickets.