X-Spam-Check-By: sourceware.org Message-ID: Date: Sat, 2 Jun 2007 17:09:23 -0400 From: "Scott Peterson" To: cygwin AT cygwin DOT com Subject: Re: Build problems - unistd.h In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com > You really should not edit unistd.h or any other system header, ever. > That's a very bad practice to get into. If "#undef pipe" in > dbus-binding-tool-glib.c works, then go with that, but even that's a > horrible hack. The best way would be to find out why this macro that > seems to be relevant only to MinGW/native win32 builds is getting pulled > in for a Cygwin build and report it upstream, otherwise it'll never get > fixed. > > The undefined reference looks like a link error, a completely unrelated > and separate failure. You aren't doing anyone any good by deleting all > of the surrounding context of these errors. If we had the link command > that produced the error we might be able to spot a problem, like > incorrect ordering of -l arguments or something. But without that, all > that can be said is "find where that symbol is defined and then find why > the linker can't find it." > > Brian > Here's everything from the build's final moments: /bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wfloat-equal -Wsign-compare -o dbus-binding-tool.exe dbus-binding-tool-glib.o dbus-glib-tool.o libdbus-gtool.la libdbus-glib-1.la -ldbus-1 -LC:/mono/Mono-1.2.4/lib -lgobject-2.0 -lglib-2.0 -lintl -liconv -lexpatgcc -g -O2 -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wfloat-equal -Wsign-compare -o .libs/dbus-binding-tool.exe dbus-binding-tool-glib.o dbus-glib-tool.o ./.libs/libdbus-gtool.a ./.libs/libdbus-glib-1.dll.a -LC:/mono/Mono-1.2.4/lib -L/usr/lib /usr/lib/libdbus-1.dll.a /usr/lib/libgobject-2.0.dll.a /usr/lib/libglib-2.0.dll.a -luser32 -lkernel32 /usr/lib/libintl.dll.a /usr/lib/libiconv.dll.a -lintl -liconv /usr/lib/libexpat.dll.a -L/usr/local/libdbus-binding-tool-glib.o: In function `dbus_binding_tool_output_glib_server': /home/Scott/downloads/dbus-glib-0.73/dbus/dbus-binding-tool-glib.c:800: undefined reference to `_g_file_open_tmp_utf8' /home/Scott/downloads/dbus-glib-0.73/dbus/dbus-binding-tool-glib.c:828: undefined reference to `_g_spawn_async_with_pipes_utf8' dbus-glib-tool.o: In function `main': /home/Scott/downloads/dbus-glib-0.73/dbus/dbus-glib-tool.c:392: undefined reference to `_g_io_channel_new_file_utf8' ./.libs/libdbus-gtool.a(dbus-gloader-expat.o): In function `description_load_from_file': /home/Scott/downloads/dbus-glib-0.73/dbus/dbus-gloader-expat.c:176: undefined reference to `_g_file_get_contents_utf8' collect2: ld returned 1 exit status make[4]: *** [dbus-binding-tool.exe] Error 1 make[4]: Leaving directory `/home/Scott/downloads/dbus-glib-0.73/dbus' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/Scott/downloads/dbus-glib-0.73/dbus' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/Scott/downloads/dbus-glib-0.73/dbus' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/Scott/downloads/dbus-glib-0.73' make: *** [all] Error 2 -- Scott. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/