This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Build problems - unistd.h

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

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."


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 -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
undefined reference to `_g_file_open_tmp_utf8'
undefined reference to `_g_spawn_async_with_pipes_utf8'
dbus-glib-tool.o: In function `main':
undefined reference to `_g_io_channel_new_file_utf8'
./.libs/libdbus-gtool.a(dbus-gloader-expat.o): In function
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


Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]