ping ?

On 18/12/2015 21:48, Marco Atzeri wrote:
Hi,
I am the current packager for cygwin.
While building 1.99.4 with

configure --with-iconv=/usr --with-imlib2=linked --with-gs
--with-qt=${QT4_QTDIR}

the build stop at

g++ -lz -Wl,-stack,8388608 -dynamic Objects/ANSIFontWriter.o
Objects/AbstractContentContext.o Objects/AbstractWrittenFont.o
Objects/Ascii7Encoding.o Objects/CFF ...
[cut]
-L/usr/lib -lQtGui -lQtCore -L/usr/lib -liconv -lguile -lltdl -lgmp
-lcrypt -lm -lltdl -lImlib2 -lz -lfreetype -ldl -ldl -o
Objects/texmacs-shared.bin
Objects/pipe_link.o:pipe_link.cpp:(.text+0xd13): undefined reference
to `remove_notifier(socket_notifier)'
[cut]
Objects/pipe_link.o:pipe_link.cpp:(.text+0x1296): undefined reference to
`add_notifier(socket_notifier)'
[cut]
Objects/tm_server.o:tm_server.cpp:(.text+0x142b): undefined reference to
`perform_select()'
[cut]
collect2: error: ld returned 1 exit status
makefile:436: recipe for target 'Objects/texmacs-shared.bin' failed

For what I see on src/System/Link/socket_notifier.cpp
the "#ifndef QTTEXMACS"  excludes the definition of
   remove_notifier, perform_select and add_notifier

as CPPFLAGS =  .. -DQTTEXMACS

while on pipe_link.cpp the equivalent check

"#if !(defined (QTTEXMACS) && (defined (__MINGW__) || defined
(__MINGW32__) || defined (QTPIPES)))"

has not the same effect, as on CYGWIN it is true,
and remove_notifier is used.
May be the check should be written differently ?

Question:
   "remove_notifier" and similars should be defined or not ?

On TeXmacs-1.99.2 , the build defined "remove_notifier"

$ grep remove_notifier *
Binary file pipe_link.o matches
Binary file qt_gui.o matches
Binary file socket_link.o matches
Binary file socket_notifier.o matches
Binary file socket_server.o matches
Binary file texmacs-shared.bin matches

_______________________________________________
Texmacs-dev mailing list
Texmacs-dev@gnu.org
https://lists.gnu.org/mailman/listinfo/texmacs-dev

Reply via email to