xrx-1.0.2 compilation failure
Michael Verret
michael.verret at gmail.com
Sat Jun 28 08:30:23 PDT 2008
Hi,
I can't seem to get xrx-1.0.2 to compile on a system on which
xrx-1.0.1 has not problem. Here are the ouput of my configuration and
compilation. Googles give me nothing for the last few days. Any clues
at to what I am missing is greatly appreciated.
Part of the error message says:
In file included from ../rx/PRead.c:30:
../rx/RxI.h:41:19: error: npapi.h: No such file or directory
Now I looked and the line ../rx/PRead.c:30: reads: (I added the line
numbers to help)
30: #include "RxI.h"
and the line ../rx/RxI.h:41:19: reads: (I added the line numbers to help)
39: /* "wrappers" to std functions */
40: #ifdef NETSCAPE_PLUGIN
41: #include "npapi.h"
42: #define Malloc(s) NPN_MemAlloc(s)
43: #define Realloc(p, olds, s) _RxRealloc(p, olds, s)
44: #define Free(p) { if (p) NPN_MemFree(p); }
45: extern void * _RxRealloc(void *p, size_t olds, size_t s);
46: #else
47: #define Malloc(s) malloc(s)
48: #define Realloc(p, olds, s) realloc(p, s)
49: #define Free(p) { if (p) free(p); }
50: #endif
I found the file "npapi.h" here: xrx-1.0.2/plugin/include/npapi.h
During the configuration I see the message "./configure: line 20164:
top_srcdir: command not found"
What's happening? Is the software losing track of where it is?
Thanks,
Michael
## CONFIGURATION XRX-1.0.2 ##
./configure \
CFLAGS="-O2 -march=i486 -mtune=i686" \
CXXFLAGS="${CFLAGS}" \
PKG_CONFIG_PATH=/usr/lib/pkgconfig \
--prefix=/usr \
--bindir=/usr/bin \
--sbindir=/usr/sbin \
--libexecdir=/usr/libexec \
--sysconfdir=/etc \
--sharedstatedir=/usr/com \
--localstatedir=/var \
--libdir=/usr/lib \
--includedir=/usr/include \
--oldincludedir=/usr/include \
--infodir=/usr/info \
--mandir=/usr/man \
--disable-static
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ld used by gcc... /usr/i486-slackware-linux/bin/ld
checking if the linker (/usr/i486-slackware-linux/bin/ld) is GNU ld... yes
checking for /usr/i486-slackware-linux/bin/ld option to reload object
files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/i486-slackware-linux/bin/ld)
supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/i486-slackware-linux/bin/ld
checking if the linker (/usr/i486-slackware-linux/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/i486-slackware-linux/bin/ld)
supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/i486-slackware-linux/bin/ld)
supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking if Xtrans should support UNIX socket connections... yes
checking if Xtrans should support TCP socket connections... yes
checking for library containing socket... none required
checking for library containing gethostbyname... none required
checking for getaddrinfo... yes
checking if IPv6 support should be built... yes
checking for struct sockaddr_in.sin_len... no
checking for socklen_t... yes
checking if Xtrans should support os-specific local connections... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for XRX... yes
checking for MOZILLA_PLUGIN... no
checking for FIREFOX_PLUGIN... no
./configure: line 20164: top_srcdir: command not found
checking for TMP_XAW... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating helper/Makefile
config.status: creating plugin/Makefile
config.status: creating libxplugin/Makefile
config.status: creating htdocs/Makefile
config.status: creating cgi-bin/Makefile
config.status: creating xnest-plugin/Makefile
config.status: creating testplugin/Makefile
config.status: creating rx/Makefile
config.status: creating plugin/common/Makefile
config.status: creating plugin/include/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
## COMPILATION XRX-1.0.2 ##
make
make all-recursive
make[1]: Entering directory
`/root/Xorg/x11-7.4-current/phase-4-Apps/xrx-1.0.2/xrx-1.0.2'
Making all in helper
make[2]: Entering directory
`/root/Xorg/x11-7.4-current/phase-4-Apps/xrx-1.0.2/xrx-1.0.2/helper'
gcc -DHAVE_CONFIG_H -I. -I.. -I../rx -D_BSD_SOURCE -DHAS_FCHOWN
-DHAS_STICKY_DIR_BIT -O2 -march=i486 -mtune=i686 -MT GetUrl.o -MD
-MP -MF .deps/GetUrl.Tpo -c -o GetUrl.o GetUrl.c
mv -f .deps/GetUrl.Tpo .deps/GetUrl.Po
gcc -DHAVE_CONFIG_H -I. -I.. -I../rx -D_BSD_SOURCE -DHAS_FCHOWN
-DHAS_STICKY_DIR_BIT -O2 -march=i486 -mtune=i686 -MT helper.o -MD
-MP -MF .deps/helper.Tpo -c -o helper.o helper.c
mv -f .deps/helper.Tpo .deps/helper.Po
gcc -DHAVE_CONFIG_H -I. -I.. -I../rx -D_BSD_SOURCE -DHAS_FCHOWN
-DHAS_STICKY_DIR_BIT -O2 -march=i486 -mtune=i686 -MT httptransport.o
-MD -MP -MF .deps/httptransport.Tpo -c -o httptransport.o
httptransport.c
mv -f .deps/httptransport.Tpo .deps/httptransport.Po
gcc -DHAVE_CONFIG_H -I. -I.. -I../rx -D_BSD_SOURCE -DHAS_FCHOWN
-DHAS_STICKY_DIR_BIT -O2 -march=i486 -mtune=i686 -MT PParse.o -MD
-MP -MF .deps/PParse.Tpo -c -o PParse.o `test -f '../rx/PParse.c' ||
echo './'`../rx/PParse.c
mv -f .deps/PParse.Tpo .deps/PParse.Po
gcc -DHAVE_CONFIG_H -I. -I.. -I../rx -D_BSD_SOURCE -DHAS_FCHOWN
-DHAS_STICKY_DIR_BIT -O2 -march=i486 -mtune=i686 -MT PRead.o -MD -MP
-MF .deps/PRead.Tpo -c -o PRead.o `test -f '../rx/PRead.c' || echo
'./'`../rx/PRead.c
mv -f .deps/PRead.Tpo .deps/PRead.Po
gcc -DHAVE_CONFIG_H -I. -I.. -I../rx -D_BSD_SOURCE -DHAS_FCHOWN
-DHAS_STICKY_DIR_BIT -O2 -march=i486 -mtune=i686 -MT Prefs.o -MD -MP
-MF .deps/Prefs.Tpo -c -o Prefs.o `test -f '../rx/Prefs.c' || echo
'./'`../rx/Prefs.c
mv -f .deps/Prefs.Tpo .deps/Prefs.Po
gcc -DHAVE_CONFIG_H -I. -I.. -I../rx -D_BSD_SOURCE -DHAS_FCHOWN
-DHAS_STICKY_DIR_BIT -O2 -march=i486 -mtune=i686 -MT XAuth.o -MD -MP
-MF .deps/XAuth.Tpo -c -o XAuth.o `test -f '../rx/XAuth.c' || echo
'./'`../rx/XAuth.c
mv -f .deps/XAuth.Tpo .deps/XAuth.Po
gcc -DHAVE_CONFIG_H -I. -I.. -I../rx -D_BSD_SOURCE -DHAS_FCHOWN
-DHAS_STICKY_DIR_BIT -O2 -march=i486 -mtune=i686 -MT XDpyName.o -MD
-MP -MF .deps/XDpyName.Tpo -c -o XDpyName.o `test -f
'../rx/XDpyName.c' || echo './'`../rx/XDpyName.c
mv -f .deps/XDpyName.Tpo .deps/XDpyName.Po
gcc -DHAVE_CONFIG_H -I. -I.. -I../rx -D_BSD_SOURCE -DHAS_FCHOWN
-DHAS_STICKY_DIR_BIT -O2 -march=i486 -mtune=i686 -MT XUrls.o -MD -MP
-MF .deps/XUrls.Tpo -c -o XUrls.o `test -f '../rx/XUrls.c' || echo
'./'`../rx/XUrls.c
mv -f .deps/XUrls.Tpo .deps/XUrls.Po
gcc -DHAVE_CONFIG_H -I. -I.. -I../rx -D_BSD_SOURCE -DHAS_FCHOWN
-DHAS_STICKY_DIR_BIT -O2 -march=i486 -mtune=i686 -MT BuildReq.o -MD
-MP -MF .deps/BuildReq.Tpo -c -o BuildReq.o `test -f
'../rx/BuildReq.c' || echo './'`../rx/BuildReq.c
mv -f .deps/BuildReq.Tpo .deps/BuildReq.Po
/bin/sh ../libtool --tag=CC --mode=link gcc -D_BSD_SOURCE
-DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -O2 -march=i486 -mtune=i686 -o
xrx GetUrl.o helper.o httptransport.o PParse.o PRead.o Prefs.o XAuth.o
XDpyName.o XUrls.o BuildReq.o -lXt -lX11 -lSM -lICE -lXext -lXau
mkdir .libs
gcc -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -O2 -march=i486
-mtune=i686 -o xrx GetUrl.o helper.o httptransport.o PParse.o PRead.o
Prefs.o XAuth.o XDpyName.o XUrls.o BuildReq.o /usr/lib/libXt.so
-L/lib -luuid /usr/lib/libSM.so /usr/lib/libICE.so /usr/lib/libXext.so
/usr/lib/libX11.so /usr/lib/libxcb-xlib.so /usr/lib/libxcb.so
/usr/lib/libXdmcp.so -ldl /usr/lib/libXau.so
sed -e 's|__vendorversion__|"xrx 1.0.2" "X Version 11"|' -e
's|__xorgversion__|"xrx 1.0.2" "X Version 11"|' -e
's|__xservername__|Xorg|g' -e 's|__xconfigfile__|xorg.conf|g' -e
's|__projectroot__|/usr|g' -e 's|__apploaddir__||' -e
's|__appmansuffix__|1|g' -e 's|__libmansuffix__|3|g' -e
's|__adminmansuffix__|8|g' -e 's|__miscmansuffix__|7|g' -e
's|__filemansuffix__|5|g' < xrx.man > xrx.1
make[2]: Leaving directory
`/root/Xorg/x11-7.4-current/phase-4-Apps/xrx-1.0.2/xrx-1.0.2/helper'
Making all in plugin
make[2]: Entering directory
`/root/Xorg/x11-7.4-current/phase-4-Apps/xrx-1.0.2/xrx-1.0.2/plugin'
Making all in common
make[3]: Entering directory
`/root/Xorg/x11-7.4-current/phase-4-Apps/xrx-1.0.2/xrx-1.0.2/plugin/common'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory
`/root/Xorg/x11-7.4-current/phase-4-Apps/xrx-1.0.2/xrx-1.0.2/plugin/common'
Making all in include
make[3]: Entering directory
`/root/Xorg/x11-7.4-current/phase-4-Apps/xrx-1.0.2/xrx-1.0.2/plugin/include'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory
`/root/Xorg/x11-7.4-current/phase-4-Apps/xrx-1.0.2/xrx-1.0.2/plugin/include'
make[3]: Entering directory
`/root/Xorg/x11-7.4-current/phase-4-Apps/xrx-1.0.2/xrx-1.0.2/plugin'
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
-I.. -I../rx -DNETSCAPE_PLUGIN -DXP_UNIX -DMOZ_X11 -DOJI -DXP_UNIX
-D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I/plugin/include
-O2 -march=i486 -mtune=i686 -MT PRead.lo -MD -MP -MF .deps/PRead.Tpo
-c -o PRead.lo `test -f '../rx/PRead.c' || echo './'`../rx/PRead.c
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I.. -I../rx -DNETSCAPE_PLUGIN -DXP_UNIX
-DMOZ_X11 -DOJI -DXP_UNIX -D_BSD_SOURCE -DHAS_FCHOWN
-DHAS_STICKY_DIR_BIT -I/plugin/include -O2 -march=i486 -mtune=i686 -MT
PRead.lo -MD -MP -MF .deps/PRead.Tpo -c ../rx/PRead.c -fPIC -DPIC -o
.libs/PRead.o
In file included from ../rx/PRead.c:30:
../rx/RxI.h:41:19: error: npapi.h: No such file or directory
../rx/PRead.c: In function '_RxRealloc':
../rx/PRead.c:48: warning: initialization makes pointer from integer
without a cast
make[3]: *** [PRead.lo] Error 1
make[3]: Leaving directory
`/root/Xorg/x11-7.4-current/phase-4-Apps/xrx-1.0.2/xrx-1.0.2/plugin'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/root/Xorg/x11-7.4-current/phase-4-Apps/xrx-1.0.2/xrx-1.0.2/plugin'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/root/Xorg/x11-7.4-current/phase-4-Apps/xrx-1.0.2/xrx-1.0.2'
make: *** [all] Error 2
More information about the xorg
mailing list