public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* aplus-fsf (XWarpPointer)
@ 2012-03-21 12:09 Tom Szczesny
  2012-03-21 12:47 ` Michel Bardiaux
  0 siblings, 1 reply; 6+ messages in thread
From: Tom Szczesny @ 2012-03-21 12:09 UTC (permalink / raw)
  To: cygwin

My current stumbling block:
When compiling  aplus-fsf-4.22/src/main/aplus_main.c
I get many errors related to X11.

case in point:
undefined reference to '_XWarpPointer' in AGIF.o

aplus-fsf-4.22/src/AplusGUI/AGIF.C
does use XWarpPointer:

static I warpPointer(MSWidgetView *pWidgetView_)
{
  if (pWidgetView_!=0 && pWidgetView_->mapped()==MSTrue)
    {
      XWarpPointer(pWidgetView_->display(),None,pWidgetView_->window(),0,0,0,0,0,0);
      return 0;
    }
  else
    {
      return -1;
    }
}

but AGIF.C also contains the statement     #include <X11/Xlib.h>  .
include/X11/Xlib.h does appear to define XWarpPointer:

extern int XWarpPointer(
    Display*            /* display */,
    Window              /* src_w */,
    Window              /* dest_w */,
    int                 /* src_x */,
    int                 /* src_y */,
    unsigned int        /* src_width */,
    unsigned int        /* src_height */,
    int                 /* dest_x */,
    int                 /* dest_y */
);

Any ideas why _XWarpPointer is considered undefined
when compiling aplus-fsf-4.22/src/main/aplus_main.c  ?

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: aplus-fsf (XWarpPointer)
  2012-03-21 12:09 aplus-fsf (XWarpPointer) Tom Szczesny
@ 2012-03-21 12:47 ` Michel Bardiaux
  0 siblings, 0 replies; 6+ messages in thread
From: Michel Bardiaux @ 2012-03-21 12:47 UTC (permalink / raw)
  To: cygwin

> My current stumbling block:
> When compiling  aplus-fsf-4.22/src/main/aplus_main.c
> I get many errors related to X11.
>
> case in point:
> undefined reference to '_XWarpPointer' in AGIF.o

Not a *compile* problem but a *link* problem. Probably missing -lX11.

What is the last, failing, command executed by your build process?

HaND,
Michel Bardiaux

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: aplus-fsf (XWarpPointer)
  2012-03-21 17:39 Tom Szczesny
@ 2012-03-21 19:54 ` Larry Hall (Cygwin)
  0 siblings, 0 replies; 6+ messages in thread
From: Larry Hall (Cygwin) @ 2012-03-21 19:54 UTC (permalink / raw)
  To: cygwin

On 3/21/2012 1:39 PM, Tom Szczesny wrote:
> a snippet from     aplus-fsf-4.22/src/main/Makefile    :

<snip>

> I assume that the line
>       X_LIBS= -L -lX11
> should read something different.

Indeed.

> I've tried various things to no avail.
> What is normally put in a Makefile to indicate the location of X_LIBS
> for a Cygwin build?

In this case, the culprit is a buggy (or bit-rotted?) configure script for
Cygwin.  A library search path is not set up so, well, the script ends
up with an empty one.  As a result, there's no path to put after the
-L flag.  Since libX11.dll.a is in /usr/lib, you should be able to get away
with just eliminating the -L flag completely from the Makefile (I didn't
test this).

In general, the best place for X specific questions with Cygwin is the
cygwin-xfree list though.  That's where the most knowledgeable X folks
are.

-- 
Larry

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: aplus-fsf (XWarpPointer)
@ 2012-03-21 17:39 Tom Szczesny
  2012-03-21 19:54 ` Larry Hall (Cygwin)
  0 siblings, 1 reply; 6+ messages in thread
From: Tom Szczesny @ 2012-03-21 17:39 UTC (permalink / raw)
  To: cygwin

a snippet from     aplus-fsf-4.22/src/main/Makefile    :

EXEEXT = .exe
OBJEXT = o
PATH_SEPARATOR = :
AMTAR = tar
AS = @AS@
AWK = gawk
CC = gcc
CXX = g++
DEPDIR = .deps
DLLTOOL = @DLLTOOL@
ECHO = echo
INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s
LIBTOOL = $(SHELL) $(top_builddir)/libtool
LIBTOOL_DEPS = config/ltmain.sh
LN_S = ln -s
MAINT = #
OBJDUMP = @OBJDUMP@
PACKAGE = aplus-fsf
RANLIB = ranlib
STRIP = strip
VERSION = 4.22
X_INCLUDES = -I
X_LIBS = -L -lX11
am__include = include
am__quote =
install_sh = /usr/local/aplus-fsf-4.22/config/install-sh

I assume that the line
     X_LIBS= -L -lX11
should read something different.

I've tried various things to no avail.
What is normally put in a Makefile to indicate the location of X_LIBS
for a Cygwin build?

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: aplus-fsf (XWarpPointer)
  2012-03-21 13:08 Tom Szczesny
@ 2012-03-21 13:29 ` Michel Bardiaux
  0 siblings, 0 replies; 6+ messages in thread
From: Michel Bardiaux @ 2012-03-21 13:29 UTC (permalink / raw)
  To: cygwin

[snip]
> -L../../src/MSTypes  -L -lX11 -lpthread -ldl  -lm mainC.o aplus_main.o
aplus_uext.o matherr.o 
[snip]

Problem here ...........^^^^^^^
Literally it means "gcc please also look for libraries in directory
-lX11", effectively gobbling
up -lX11 (no, you don't get a message because the directory -lX11 does
not exist!). Either a bug in the configure file (& bros.) for aplus, or
it expects you to specify some variable that has to be expanded after
the -L, maybe the path to the X libraries? Try configure --help.

HaND,
Michel Bardiaux


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 6+ messages in thread

* aplus-fsf (XWarpPointer)
@ 2012-03-21 13:08 Tom Szczesny
  2012-03-21 13:29 ` Michel Bardiaux
  0 siblings, 1 reply; 6+ messages in thread
From: Tom Szczesny @ 2012-03-21 13:08 UTC (permalink / raw)
  To: cygwin

The last (few) commands are:

Making all in main
make[2]: Entering directory `/usr/local/aplus-fsf-4.22/src/main'
echo "Making version.h";\
rm -f version.h;\
cat version.h.template | sed -e s/%RCVAL%/4.22/ \
        -e s/%FNVAL%// \
        -e s@%IMDIRVAL%@/usr/local/aplus-fsf-4.22@ >version.h;
Making version.h
source='aplus_main.c' object='aplus_main.o' libtool=no \
depfile='.deps/aplus_main.Po' tmpdepfile='.deps/aplus_main.TPo' \
depmode=gcc3 /bin/sh ../../config/depcomp \
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"aplus-fsf\"
-DVERSION=\"4.22\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_STDLIB_H=1
-DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DRETSIGTYPE=void
-DHAVE_STRFTIME=1 -DHAVE_UNISTD_H=1 -DHAVE_FORK=1 -DHAVE_VFORK=1
-DHAVE_WORKING_VFORK=1 -DHAVE_WORKING_FORK=1 -DHAVE_VPRINTF=1
-DHAVE_GETCWD=1 -DHAVE_GETHOSTNAME=1 -DHAVE_GETTIMEOFDAY=1
-DHAVE_GETWD=1 -DHAVE_MKTIME=1 -DHAVE_PUTENV=1 -DHAVE_REGCOMP=1
-DHAVE_SELECT=1 -DHAVE_SIGACTION=1 -DHAVE_SOCKET=1 -DHAVE_STRCSPN=1
-DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOD=1
-DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_DIRENT_H=1 -DSTDC_HEADERS=1
-DHAVE_SYS_WAIT_H=1 -DHAVE_FCNTL_H=1 -DHAVE_LIMITS_H=1
-DHAVE_MALLOC_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_FILE_H=1
-DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYSLOG_H=1
-DHAVE_UNISTD_H=1 -DHAVE_IEEEFP_H=1 -DHAVE_MATH_H=1 -DHAVE_FLOAT_H=1
-DHAVE_NEW=1 -DHAVE_IOSTREAM=1 -DHAVE_IOMANIP=1 -DHAVE_FSTREAM=1
-DHAVE_SSTREAM=1 -DHAVE_IOSFWD=1 -DHAVE_FPCLASSIFY=1 -DHAVE_FINITE=1
-DHAVE_ISINF=1 -DHAVE_STRUCT_STAT_ST_BLKSIZE=1 -DHAVE_ST_BLKSIZE=1
-DHAVE_STRUCT_STAT_ST_BLOCKS=1 -DHAVE_ST_BLOCKS=1
-DHAVE_STRUCT_STAT_ST_RDEV=1 -DHAVE_ST_RDEV=1 -DTIME_WITH_SYS_TIME=1
-DHAVE_TZNAME=1 -DHAVE_SOCKLEN_T=1  -I. -I. -I.. -I     -O2 -DBSTUB -c
`test -f 'aplus_main.c' || echo './'`aplus_main.c
/bin/sh ../../libtool --mode=link g++  -O2    -o aplus.exe
-L../../src/IPC  -L../../src/cxs  -L../../src/cxb
-L../../src/AplusGUI  -L../../src/cxsys  -L../../src/cxc
-L../../src/esf  -L../../src/a  -L../../src/dap  -L../../src/MSGUI
-L../../src/MSIPC  -L../../src/MSTypes  -L -lX11 -lpthread -ldl  -lm
mainC.o aplus_main.o  aplus_uext.o matherr.o ../../src/IPC/libIPC.la
../../src/cxs/libcxs.la  ../../src/cxb/libcxb.la
../../src/AplusGUI/libAplusGUI.la  ../../src/cxsys/libcxsys.la
../../src/cxc/libcxc.la  ../../src/esf/libesf.la  ../../src/a/liba.la
../../src/dap/libdap.la  ../../src/MSGUI/libMSGUI.la
../../src/MSIPC/libMSIPC.la  ../../src/MSTypes/libMSTypes.la
-lpthread -ldl  -lm
g++ -O2 -o aplus.exe mainC.o aplus_main.o aplus_uext.o matherr.o
-L/usr/local/aplus-fsf-4.22/src/IPC
-L/usr/local/aplus-fsf-4.22/src/cxs
-L/usr/local/aplus-fsf-4.22/src/cxb
-L/usr/local/aplus-fsf-4.22/src/AplusGUI
-L/usr/local/aplus-fsf-4.22/src/cxsys
-L/usr/local/aplus-fsf-4.22/src/cxc
-L/usr/local/aplus-fsf-4.22/src/esf -L/usr/local/aplus-fsf-4.22/src/a
-L/usr/local/aplus-fsf-4.22/src/dap
-L/usr/local/aplus-fsf-4.22/src/MSGUI
-L/usr/local/aplus-fsf-4.22/src/MSIPC
-L/usr/local/aplus-fsf-4.22/src/MSTypes
-L/usr/local/aplus-fsf-4.22/src/main .libs/libimp-cygX11-6.a
.libs/libimp-cygxcb-1.a .libs/libimp-cygXau-6.a
.libs/libimp-cygXdmcp-6.a ../../src/IPC/.libs/libIPC.a
../../src/cxs/.libs/libcxs.a ../../src/cxb/.libs/libcxb.a
../../src/AplusGUI/.libs/libAplusGUI.a
../../src/cxsys/.libs/libcxsys.a ../../src/cxc/.libs/libcxc.a
../../src/esf/.libs/libesf.a ../../src/a/.libs/liba.a
../../src/dap/.libs/libdap.a ../../src/MSGUI/.libs/libMSGUI.a
../../src/MSIPC/.libs/libMSIPC.a ../../src/MSTypes/.libs/libMSTypes.a
-lpthread -ldl
../../src/AplusGUI/.libs/libAplusGUI.a(AGIF.o):AGIF.C:(.text+0x13ba):
undefined reference to `_XWarpPointer'

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-03-21 19:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-21 12:09 aplus-fsf (XWarpPointer) Tom Szczesny
2012-03-21 12:47 ` Michel Bardiaux
2012-03-21 13:08 Tom Szczesny
2012-03-21 13:29 ` Michel Bardiaux
2012-03-21 17:39 Tom Szczesny
2012-03-21 19:54 ` Larry Hall (Cygwin)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).