You are not logged in.
Hello,
Please, could you make a pkgbuild for have the last version of this program please?
http://code.google.com/p/gnome-proxy/
see this too:
http://www.nabble.com/-announce--gnome- … 32136.html
It is a wonderfull programme for proxy setting with networkmanager !!!!
Thanks !
edit: libwpad seems needed
http://code.google.com/p/wpad/
I really hope you can make it, i really need it at work for example!
Best Regards
Last edited by atlas95 (2007-06-04 14:44:46)
Offline
up!
Offline
libwpad-svn...
pkgname=libwpad-svn
pkgver=23
pkgrel=1
pkgdesc="Library, bindings and command-line utilities to automatically detect \
and configure client proxy settings"
arch=(i686)
url="http://code.google.com/p/gnome-proxy/"
license=('LGPL')
depends=('xulrunner' 'python>=2.4.0' 'nspr')
makedepends=('subversion' 'libtool' 'pkgconfig')
provides=('libwpad')
conflicts=('spidermonkey')
source=()
md5sums=()
_svntrunk=http://wpad.googlecode.com/svn/trunk/
_svnmod=libwpad
build() {
# start building
cd $startdir/src
if [ -d $_svnmod/.svn ]; then
(cd $_svnmod && svn up)
else
svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
fi
msg "SVN checkout done or server timeout"
msg "Starting make..."
cp -r $_svnmod $_svnmod-build
cd $_svnmod-build
aclocal
libtoolize
automake --add-missing
sed -i -e 's|firefox-js|xulrunner-js|g' configure.ac
autoconf
./configure --prefix=/usr
make VERBOSE=1 || return 1
make DESTDIR=$startdir/pkg install || return 1
rm -rf $startdir/src/$_svnmod-build
}
gnome-proxy-svn...
pkgname=gnome-proxy-svn
pkgver=7
pkgrel=1
pkgdesc="A gnome-network-preferences replacement"
arch=(i686)
url="http://code.google.com/p/gnome-proxy/"
license=('GPL')
depends=('gnome-python' 'libwpad')
makedepends=('subversion')
provides=(gnome-proxy)
source=(Makefile.patch)
md5sums=()
install=gnome-proxy-svn.install
_svntrunk=http://gnome-proxy.googlecode.com/svn/trunk/
_svnmod=gnome-proxy
md5sums=('70f52b068e589debf7a768256de7273e')
build() {
# start building
cd $startdir/src
if [ -d $_svnmod/.svn ]; then
(cd $_svnmod && svn up)
else
svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
fi
msg "SVN checkout done or server timeout"
msg "Starting make..."
cp -r $_svnmod $_svnmod-build
cd $_svnmod-build
patch -Np1 -i ../Makefile.patch || return 1
make DESTDIR=$startdir/pkg install || return 1
}
Makefile.patch ...
--- gnome-proxy/Makefile 2007-06-05 14:08:28.000000000 -0400
+++ gnome-proxy-build/Makefile 2007-06-05 15:32:31.000000000 -0400
@@ -18,9 +18,3 @@
# Install GConf schema file
[ -d $(DESTDIR)/usr/share/gconf/schemas ] || mkdir -p $(DESTDIR)/usr/share/gconf/schemas
install -m755 gnome-proxy.schemas $(DESTDIR)/usr/share/gconf/schemas
-
- # Import GConf schema file
- if [ ! "$(GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL)" ]; then \
- export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`; \
- gconftool-2 --makefile-install-rule $(DESTDIR)/usr/share/gconf/schemas/gnome-proxy.schemas >/dev/null; \
- fi
\ No newline at end of file
gnome-proxy-svn.install (probably don't need this)
schemas=(
'usr/share/gconf/schemas/gnome-proxy.schemas'
)
post_install() {
for schema in "${schemas[@]}" ; do
GCONF_CONFIG_SOURCE=`usr/bin/gconftool-2 --get-default-source` usr/bin/gconftool-2 --makefile-install-rule "$schema" > /dev/null 2>&1
done
kill -s HUP `pidof /usr/bin/gconfd-2` > /dev/null 2>&1
echo "updating scrollkeeper catalogue ..."
scrollkeeper-update -p /var/lib/scrollkeeper > /dev/null 2>&1
update-desktop-database > /dev/null 2>&1
}
post_upgrade() {
post_install $1
}
pre_remove() {
for schema in "${schemas[@]}" ; do
GCONF_CONFIG_SOURCE=`usr/bin/gconftool-2 --get-default-source` usr/bin/gconftool-2 --makefile-uninstall-rule "$schema" > /dev/null 2>&1
done
echo "updating scrollkeeper catalogue ..."
kill -s HUP `pidof /usr/bin/gconfd-2` > /dev/null 2>&1
scrollkeeper-update -p /var/lib/scrollkeeper > /dev/null 2>&1
update-desktop-database > /dev/null 2>&1
}
post_remove() {
echo "updating scrollkeeper catalogue ..."
scrollkeeper-update -p /var/lib/scrollkeeper > /dev/null 2>&1
update-desktop-database > /dev/null 2>&1
}
op=$1
shift
$op $*
Last edited by tardo (2007-06-12 05:56:12)
Offline
Yeah yeah thanks ! I try !
Offline
Oups
Some error appears when i makepkg wpad-svn
Here erros : http://pastebin.ca/544013
Thanks you, i hope you can repair this
Offline
uninstall spidermonkey.
Offline
then?
Offline
For wpad : Guy i love you ! Thanks a lot this is working ! I think i can reinstall spidermonley then? It is require for avidemux for example ...
BUT for gnome-proxy error during patching :s
==> Starting build()...
A gnome-proxy/gnome-proxy-preferences
A gnome-proxy/.project
A gnome-proxy/gnome-proxy-daemon
A gnome-proxy/gnome-proxy.schemas
A gnome-proxy/org.gnome.Proxy.service
A gnome-proxy/.pydevproject
A gnome-proxy/Makefile
A gnome-proxy/gnome-proxy-preferences.glade
Checked out revision 7.
==> SVN checkout done or server timeout
==> Starting make...
patching file Makefile
Hunk #1 FAILED at 18.
1 out of 1 hunk FAILED -- saving rejects to file Makefile.rej
Is the Makefile.patch correct?
Thanks yet
edit:
Another problem :
When i launch handly the gnome-proxy-daemon I have this errors:
`--> gnome-proxy-daemon
Traceback (most recent call last):
File "/usr/bin/gnome-proxy-daemon", line 26, in <module>
import wpad # Requires libwpad and its python bindings
File "/usr/lib/python2.5/site-packages/wpad/__init__.py", line 1, in <module>
import _wpad
ImportError: libmozjs.so: cannot open shared object file: No such file or directory
I have libmozjs.so here :
`--> locate libmozjs.so
/opt/mozilla/lib/firefox-2.0.0.4/libmozjs.so
/opt/mozilla/lib/xulrunner-1.8.1.4/libmozjs.so
Last edited by atlas95 (2007-06-06 18:43:29)
Offline
Any ideas? :?
Offline
do this
rm -rf src pkg
in both directories then rebuild with versionpkg.
Offline
This doesn't work yet tardo:
for wpad:
`--> sudo versionpkg -f
==> retrieving latest revision number from svn... \c
23
==> WARNING: PKGBUILD pkgver is 23, no newer revision available
==> forcing pkgver to 23...
==> Making package: libwpad-svn 23-1 (mardi 12 juin 2007, 07:25:05 (UTC+0200))
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
==> Validating source files with md5sums
==> Extracting Sources...
==> Removing existing pkg/ directory...
==> Starting build()...
At revision 23.
==> SVN checkout done or server timeout
==> Starting make...
Putting files in AC_CONFIG_AUX_DIR, `../..'.
libtoolize: `config.guess' exists: use `--force' to overwrite
libtoolize: `config.sub' exists: use `--force' to overwrite
libtoolize: `ltmain.sh' exists: use `--force' to overwrite
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
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 how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /bin/install -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... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/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 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/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... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/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/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 whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for SPIDERMONKEY... yes
checking for a Python interpreter with version >= 2.4.0... python
checking for python... /usr/bin/python
checking for python version... 2.5
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.5/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.5/site-packages
checking for ANSI C header files... (cached) yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for unistd.h... (cached) yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for gethostbyname... yes
checking for gethostname... yes
checking for memset... yes
checking for socket... yes
checking for strdup... yes
checking for strstr... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating python/Makefile
config.status: executing depfiles commands
cd . && /bin/sh /home/atlas/gnome-proxy-build/wpad/missing --run aclocal-1.10
cd . && /bin/sh /home/atlas/gnome-proxy-build/wpad/missing --run automake-1.10 --gnu
cd . && /bin/sh /home/atlas/gnome-proxy-build/wpad/missing --run autoconf
/bin/sh ./config.status --recheck
running CONFIG_SHELL=/bin/sh /bin/sh ./configure --prefix=/usr CFLAGS=-march=i686 -O2 -pipe CXXFLAGS=-march=i686 -O2 -pipe SPIDERMONKEY_CFLAGS=/usr/include/js SPIDERMONKEY_LIBS=/usr/include/js --no-create --no-recursion
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
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 how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /bin/install -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... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/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 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/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... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/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/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 whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for SPIDERMONKEY... yes
checking for a Python interpreter with version >= 2.4.0... python
checking for python... /usr/bin/python
checking for python version... 2.5
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.5/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.5/site-packages
checking for ANSI C header files... (cached) yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for unistd.h... (cached) yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for gethostbyname... yes
checking for gethostname... yes
checking for memset... yes
checking for socket... yes
checking for strdup... yes
checking for strstr... yes
configure: creating ./config.status
/bin/sh ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating python/Makefile
config.status: executing depfiles commands
Making all in src
make[1]: Entering directory `/home/atlas/gnome-proxy-build/wpad/src/libwpad-build/src'
make all-am
make[2]: Entering directory `/home/atlas/gnome-proxy-build/wpad/src/libwpad-build/src'
/bin/sh ../libtool --tag=CC --mode=compile gcc -DPACKAGE_NAME=\"wpad\" -DPACKAGE_TARNAME=\"wpad\" -DPACKAGE_VERSION=\"0.1\" -DPACKAGE_STRING=\"wpad\ 0.1\" -DPACKAGE_BUGREPORT=\"wpad@natemccallum.com\" -DPACKAGE=\"wpad\" -DVERSION=\"0.1\" -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 -DSTDC_HEADERS=1 -DHAVE_NETDB_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_UNISTD_H=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_GETHOSTBYNAME=1 -DHAVE_GETHOSTNAME=1 -DHAVE_MEMSET=1 -DHAVE_SOCKET=1 -DHAVE_STRDUP=1 -DHAVE_STRSTR=1 -I. -fvisibility=hidden /usr/include/js -std=c99 -march=i686 -O2 -pipe -MT libwpad_la-pac.lo -MD -MP -MF .deps/libwpad_la-pac.Tpo -c -o libwpad_la-pac.lo `test -f 'pac.c' || echo './'`pac.c
gcc -DPACKAGE_NAME=\"wpad\" -DPACKAGE_TARNAME=\"wpad\" -DPACKAGE_VERSION=\"0.1\" "-DPACKAGE_STRING=\"wpad 0.1\"" -DPACKAGE_BUGREPORT=\"wpad@natemccallum.com\" -DPACKAGE=\"wpad\" -DVERSION=\"0.1\" -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 -DSTDC_HEADERS=1 -DHAVE_NETDB_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_UNISTD_H=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_GETHOSTBYNAME=1 -DHAVE_GETHOSTNAME=1 -DHAVE_MEMSET=1 -DHAVE_SOCKET=1 -DHAVE_STRDUP=1 -DHAVE_STRSTR=1 -I. -fvisibility=hidden /usr/include/js -std=c99 -march=i686 -O2 -pipe -MT libwpad_la-pac.lo -MD -MP -MF .deps/libwpad_la-pac.Tpo -c pac.c -fPIC -DPIC -o .libs/libwpad_la-pac.o
gcc: /usr/include/js: No such file or directory
pac.c:28:19: error: jsapi.h: No such file or directory
pac.c:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'dnsResolve'
pac.c:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'myIpAddress'
pac.c: In function 'wpad_pac_get_proxy_from_url':
pac.c:92: error: 'JSRuntime' undeclared (first use in this function)
pac.c:92: error: (Each undeclared identifier is reported only once
pac.c:92: error: for each function it appears in.)
pac.c:92: error: 'runtime' undeclared (first use in this function)
pac.c:93: error: 'JSContext' undeclared (first use in this function)
pac.c:93: error: 'context' undeclared (first use in this function)
pac.c:94: error: 'JSObject' undeclared (first use in this function)
pac.c:94: error: 'global' undeclared (first use in this function)
pac.c:95: error: 'jsval' undeclared (first use in this function)
pac.c:95: error: expected ';' before 'rval'
pac.c:107: error: 'JSClass' undeclared (first use in this function)
pac.c:107: error: 'global_class' undeclared (first use in this function)
pac.c:110: error: 'JS_PropertyStub' undeclared (first use in this function)
pac.c:114: error: 'JS_EnumerateStub' undeclared (first use in this function)
pac.c:115: error: 'JS_ResolveStub' undeclared (first use in this function)
pac.c:116: error: 'JS_ConvertStub' undeclared (first use in this function)
pac.c:117: error: 'JS_FinalizeStub' undeclared (first use in this function)
pac.c:120: warning: implicit declaration of function 'JS_NewRuntime'
pac.c:121: warning: implicit declaration of function 'JS_NewContext'
pac.c:122: warning: implicit declaration of function 'JS_NewObject'
pac.c:123: warning: implicit declaration of function 'JS_InitStandardClasses'
pac.c:126: warning: implicit declaration of function 'JS_DefineFunction'
pac.c:126: error: 'dnsResolve' undeclared (first use in this function)
pac.c:127: error: 'myIpAddress' undeclared (first use in this function)
pac.c:128: warning: implicit declaration of function 'JS_EvaluateScript'
pac.c:129: error: 'rval' undeclared (first use in this function)
pac.c:132: warning: implicit declaration of function 'JS_GetGlobalObject'
pac.c:140: error: expected ';' before 'val'
pac.c:146: error: 'JSBool' undeclared (first use in this function)
pac.c:146: error: expected ';' before 'result'
pac.c:148: error: 'result' undeclared (first use in this function)
pac.c:149: warning: implicit declaration of function 'JS_GetStringBytes'
pac.c:149: warning: implicit declaration of function 'JS_ValueToString'
pac.c:149: warning: passing argument 1 of 'wpad_strdup' makes pointer from integer without a cast
pac.c:156: warning: implicit declaration of function 'JS_DestroyContext'
pac.c:157: warning: implicit declaration of function 'JS_DestroyRuntime'
pac.c: At top level:
pac.c:284: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'dnsResolve'
pac.c:315: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'myIpAddress'
make[2]: *** [libwpad_la-pac.lo] Error 1
make[2]: Leaving directory `/home/atlas/gnome-proxy-build/wpad/src/libwpad-build/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/atlas/gnome-proxy-build/wpad/src/libwpad-build/src'
make: *** [all-recursive] Error 1
==> ERROR: Build Failed. Aborting...
==> ERROR: Reverting pkgver...
Last edited by atlas95 (2007-06-12 05:26:29)
Offline
are you sure you uninstalled spidermonkey?
Offline
Yes, I'm sure i have uninstall it Tardo ...
Offline
OK, let's try this again =]
perform these commands, I'll give an example.
>$ sudo updatedb
>$ locate jsapi.h
/opt/mozilla/include/xulrunner-1.8.1.4/js/jsapi.h
>$ pacman -Qo /opt/mozilla/include/xulrunner-1.8.1.4/js/jsapi.h
/opt/mozilla/include/xulrunner-1.8.1.4/js/jsapi.h is owned by xulrunner 1.8.1.4-2
If you have more than one location for jsapi.h, run pacman -Qo on that as well. Remove all packages that have this EXCEPT for xulrunner. Then try rebuilding from scratch.
It will help if you show me the output for these commands.
Last edited by tardo (2007-06-18 18:09:58)
Offline
I have the same of you ! :S I will retry to compil so
Offline
Here's a bit of a cleaned up version of the PKGBUILDS
gnome-proxy-svn PKGBUILD
pkgname=gnome-proxy-svn
pkgver=7
pkgrel=1
pkgdesc="A gnome-network-preferences replacement"
arch=(i686)
url="http://code.google.com/p/gnome-proxy/"
license=('GPL')
depends=('gnome-python' 'libwpad' 'dbus-python')
makedepends=('subversion')
provides=(gnome-proxy)
source=()
md5sums=()
install=gnome-proxy-svn.install
_svntrunk=http://gnome-proxy.googlecode.com/svn/trunk/
_svnmod=gnome-proxy
build() {
# start building
cd $startdir/src
if [ -d $_svnmod/.svn ]; then
(cd $_svnmod && svn up)
else
svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
fi
msg "SVN checkout done or server timeout"
msg "Starting make..."
cp -r $_svnmod $_svnmod-build
cd $_svnmod-build
sed -i 's|GLADE_PATH = ("", "/usr/share/gnome-proxy/")|GLADE_PATH = ("/usr/share/gnome-proxy/")|' gnome-proxy-preferences || return 1
make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=no \
DESTDIR=$startdir/pkg install || return 1
rm -rf $startdir/src/$_svnmod-build
}
libwpad-svn PKGBUILD
pkgname=libwpad-svn
pkgver=23
pkgrel=1
pkgdesc="Library, bindings and command-line utilities to automatically detect \
and configure client proxy settings"
arch=(i686)
url="http://code.google.com/p/gnome-proxy/"
license=('LGPL')
depends=('xulrunner' 'python>=2.4.0' 'nspr')
makedepends=('subversion' 'libtool' 'pkgconfig')
provides=('libwpad')
conflicts=('spidermonkey')
source=()
md5sums=()
_svntrunk=http://wpad.googlecode.com/svn/trunk/
_svnmod=libwpad
build() {
# start building
cd $startdir/src
if [ -d $_svnmod/.svn ]; then
(cd $_svnmod && svn up)
else
svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
fi
msg "SVN checkout done or server timeout"
msg "Starting make..."
cp -r $_svnmod $_svnmod-build
cd $_svnmod-build
sed -i -e 's|firefox-js|xulrunner-js|g' configure.ac
autoreconf -i || return 1
./configure --prefix=/usr
make || return 1
make DESTDIR=$startdir/pkg install || return 1
rm -rf $startdir/src/$_svnmod-build
}
Offline
yet the same error:
U libwpad
Checked out revision 23.
==> SVN checkout done or server timeout
==> Starting make...
configure.ac:7: installing `./missing'
configure.ac:7: installing `./install-sh'
python/Makefile.am: installing `./depcomp'
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
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 how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /bin/install -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... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/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 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/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... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/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/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 whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for SPIDERMONKEY... yes
checking for a Python interpreter with version >= 2.4.0... python
checking for python... /usr/bin/python
checking for python version... 2.5
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.5/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.5/site-packages
checking for ANSI C header files... (cached) yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for unistd.h... (cached) yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for gethostbyname... yes
checking for gethostname... yes
checking for memset... yes
checking for socket... yes
checking for strdup... yes
checking for strstr... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating python/Makefile
config.status: executing depfiles commands
Making all in src
make[1]: Entering directory `/home/atlas/wpad/src/libwpad-build/src'
echo "#define JAVASCRIPT_ROUTINES \\" > pacutils.h
cpp pacutils.js | grep -v '^#' | grep -v '^$' | sed 's|^\(.*\)$|"\1\\n" \\|' >> pacutils.h
echo '""' >> pacutils.h
make all-am
make[2]: Entering directory `/home/atlas/wpad/src/libwpad-build/src'
/bin/sh ../libtool --tag=CC --mode=compile gcc -DPACKAGE_NAME=\"wpad\" -DPACKAGE_TARNAME=\"wpad\" -DPACKAGE_VERSION=\"0.1\" -DPACKAGE_STRING=\"wpad\ 0.1\" -DPACKAGE_BUGREPORT=\"wpad@natemccallum.com\" -DPACKAGE=\"wpad\" -DVERSION=\"0.1\" -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 -DSTDC_HEADERS=1 -DHAVE_NETDB_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_UNISTD_H=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_GETHOSTBYNAME=1 -DHAVE_GETHOSTNAME=1 -DHAVE_MEMSET=1 -DHAVE_SOCKET=1 -DHAVE_STRDUP=1 -DHAVE_STRSTR=1 -I. -fvisibility=hidden /usr/include/js -std=c99 -march=i686 -O2 -pipe -MT libwpad_la-misc.lo -MD -MP -MF .deps/libwpad_la-misc.Tpo -c -o libwpad_la-misc.lo `test -f 'misc.c' || echo './'`misc.c
/bin/sh ../libtool --tag=CC --mode=compile gcc -DPACKAGE_NAME=\"wpad\" -DPACKAGE_TARNAME=\"wpad\" -DPACKAGE_VERSION=\"0.1\" -DPACKAGE_STRING=\"wpad\ 0.1\" -DPACKAGE_BUGREPORT=\"wpad@natemccallum.com\" -DPACKAGE=\"wpad\" -DVERSION=\"0.1\" -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 -DSTDC_HEADERS=1 -DHAVE_NETDB_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_UNISTD_H=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_GETHOSTBYNAME=1 -DHAVE_GETHOSTNAME=1 -DHAVE_MEMSET=1 -DHAVE_SOCKET=1 -DHAVE_STRDUP=1 -DHAVE_STRSTR=1 -I. -fvisibility=hidden /usr/include/js -std=c99 -march=i686 -O2 -pipe -MT libwpad_la-pac.lo -MD -MP -MF .deps/libwpad_la-pac.Tpo -c -o libwpad_la-pac.lo `test -f 'pac.c' || echo './'`pac.c
/bin/sh ../libtool --tag=CC --mode=compile gcc -DPACKAGE_NAME=\"wpad\" -DPACKAGE_TARNAME=\"wpad\" -DPACKAGE_VERSION=\"0.1\" -DPACKAGE_STRING=\"wpad\ 0.1\" -DPACKAGE_BUGREPORT=\"wpad@natemccallum.com\" -DPACKAGE=\"wpad\" -DVERSION=\"0.1\" -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 -DSTDC_HEADERS=1 -DHAVE_NETDB_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_UNISTD_H=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_GETHOSTBYNAME=1 -DHAVE_GETHOSTNAME=1 -DHAVE_MEMSET=1 -DHAVE_SOCKET=1 -DHAVE_STRDUP=1 -DHAVE_STRSTR=1 -I. -fvisibility=hidden /usr/include/js -std=c99 -march=i686 -O2 -pipe -MT libwpad_la-url.lo -MD -MP -MF .deps/libwpad_la-url.Tpo -c -o libwpad_la-url.lo `test -f 'url.c' || echo './'`url.c
mkdir .libs
gcc -DPACKAGE_NAME=\"wpad\" -DPACKAGE_TARNAME=\"wpad\" -DPACKAGE_VERSION=\"0.1\" "-DPACKAGE_STRING=\"wpad 0.1\"" -DPACKAGE_BUGREPORT=\"wpad@natemccallum.com\" -DPACKAGE=\"wpad\" -DVERSION=\"0.1\" -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 -DSTDC_HEADERS=1 -DHAVE_NETDB_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_UNISTD_H=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_GETHOSTBYNAME=1 -DHAVE_GETHOSTNAME=1 -DHAVE_MEMSET=1 -DHAVE_SOCKET=1 -DHAVE_STRDUP=1 -DHAVE_STRSTR=1 -I. -fvisibility=hidden /usr/include/js -std=c99 -march=i686 -O2 -pipe -MT libwpad_la-misc.lo -MD -MP -MF .deps/libwpad_la-misc.Tpo -c misc.c -fPIC -DPIC -o .libs/libwpad_la-misc.o
gcc -DPACKAGE_NAME=\"wpad\" -DPACKAGE_TARNAME=\"wpad\" -DPACKAGE_VERSION=\"0.1\" "-DPACKAGE_STRING=\"wpad 0.1\"" -DPACKAGE_BUGREPORT=\"wpad@natemccallum.com\" -DPACKAGE=\"wpad\" -DVERSION=\"0.1\" -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 -DSTDC_HEADERS=1 -DHAVE_NETDB_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_UNISTD_H=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_GETHOSTBYNAME=1 -DHAVE_GETHOSTNAME=1 -DHAVE_MEMSET=1 -DHAVE_SOCKET=1 -DHAVE_STRDUP=1 -DHAVE_STRSTR=1 -I. -fvisibility=hidden /usr/include/js -std=c99 -march=i686 -O2 -pipe -MT libwpad_la-pac.lo -MD -MP -MF .deps/libwpad_la-pac.Tpo -c pac.c -fPIC -DPIC -o .libs/libwpad_la-pac.o
gcc: /usr/include/js: No such file or directory
make[2]: *** [libwpad_la-misc.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
gcc: /usr/include/js: No such file or directory
pac.c:28:19: error: jsapi.h: No such file or directory
pac.c:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'dnsResolve'
pac.c:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'myIpAddress'
pac.c: In function 'wpad_pac_get_proxy_from_url':
pac.c:92: error: 'JSRuntime' undeclared (first use in this function)
pac.c:92: error: (Each undeclared identifier is reported only once
pac.c:92: error: for each function it appears in.)
pac.c:92: error: 'runtime' undeclared (first use in this function)
pac.c:93: error: 'JSContext' undeclared (first use in this function)
pac.c:93: error: 'context' undeclared (first use in this function)
pac.c:94: error: 'JSObject' undeclared (first use in this function)
pac.c:94: error: 'global' undeclared (first use in this function)
pac.c:95: error: 'jsval' undeclared (first use in this function)
pac.c:95: error: expected ';' before 'rval'
pac.c:107: error: 'JSClass' undeclared (first use in this function)
pac.c:107: error: 'global_class' undeclared (first use in this function)
pac.c:110: error: 'JS_PropertyStub' undeclared (first use in this function)
pac.c:114: error: 'JS_EnumerateStub' undeclared (first use in this function)
pac.c:115: error: 'JS_ResolveStub' undeclared (first use in this function)
pac.c:116: error: 'JS_ConvertStub' undeclared (first use in this function)
pac.c:117: error: 'JS_FinalizeStub' undeclared (first use in this function)
pac.c:120: warning: implicit declaration of function 'JS_NewRuntime'
pac.c:121: warning: implicit declaration of function 'JS_NewContext'
pac.c:122: warning: implicit declaration of function 'JS_NewObject'
pac.c:123: warning: implicit declaration of function 'JS_InitStandardClasses'
pac.c:126: warning: implicit declaration of function 'JS_DefineFunction'
pac.c:126: error: 'dnsResolve' undeclared (first use in this function)
pac.c:127: error: 'myIpAddress' undeclared (first use in this function)
pac.c:128: warning: implicit declaration of function 'JS_EvaluateScript'
pac.c:129: error: 'rval' undeclared (first use in this function)
pac.c:132: warning: implicit declaration of function 'JS_GetGlobalObject'
pac.c:140: error: expected ';' before 'val'
pac.c:146: error: 'JSBool' undeclared (first use in this function)
pac.c:146: error: expected ';' before 'result'
pac.c:148: error: 'result' undeclared (first use in this function)
pac.c:149: warning: implicit declaration of function 'JS_GetStringBytes'
pac.c:149: warning: implicit declaration of function 'JS_ValueToString'
pac.c:149: warning: passing argument 1 of 'wpad_strdup' makes pointer from integer without a cast
pac.c:156: warning: implicit declaration of function 'JS_DestroyContext'
pac.c:157: warning: implicit declaration of function 'JS_DestroyRuntime'
pac.c: At top level:
pac.c:284: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'dnsResolve'
pac.c:315: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'myIpAddress'
make[2]: *** [libwpad_la-pac.lo] Error 1
gcc -DPACKAGE_NAME=\"wpad\" -DPACKAGE_TARNAME=\"wpad\" -DPACKAGE_VERSION=\"0.1\" "-DPACKAGE_STRING=\"wpad 0.1\"" -DPACKAGE_BUGREPORT=\"wpad@natemccallum.com\" -DPACKAGE=\"wpad\" -DVERSION=\"0.1\" -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 -DSTDC_HEADERS=1 -DHAVE_NETDB_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_UNISTD_H=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_GETHOSTBYNAME=1 -DHAVE_GETHOSTNAME=1 -DHAVE_MEMSET=1 -DHAVE_SOCKET=1 -DHAVE_STRDUP=1 -DHAVE_STRSTR=1 -I. -fvisibility=hidden /usr/include/js -std=c99 -march=i686 -O2 -pipe -MT libwpad_la-url.lo -MD -MP -MF .deps/libwpad_la-url.Tpo -c url.c -fPIC -DPIC -o .libs/libwpad_la-url.o
gcc: /usr/include/js: No such file or directory
make[2]: *** [libwpad_la-url.lo] Error 1
make[2]: Leaving directory `/home/atlas/wpad/src/libwpad-build/src'
make[1]: *** [all] Error 2
Last edited by atlas95 (2007-06-18 21:14:37)
Offline
run my commands and show me your output.
Offline
Tardo, able to get on IRC? I think I've got it down to why it's not working. *I think*
Offline
Tardo:
`--> locate jsapi.h
/opt/mozilla/include/xulrunner-1.8.1.4/js/jsapi.h
and
`--> pacman -Qo /opt/mozilla/include/xulrunner-1.8.1.4/js/jsapi.h
/opt/mozilla/include/xulrunner-1.8.1.4/js/jsapi.h appartient à xulrunner 1.8.1.4-2
Offline
Here's the working libwpad-svn pkgbuild
pkgname=libwpad-svn
pkgver=23
pkgrel=1
pkgdesc="Library, bindings and command-line utilities to automatically detect \
and configure client proxy settings"
arch=(i686)
url="http://code.google.com/p/gnome-proxy/"
license=('LGPL')
depends=('xulrunner' 'python>=2.4.0' 'nspr')
makedepends=('subversion' 'libtool' 'pkgconfig')
provides=('libwpad')
conflicts=('spidermonkey')
source=()
md5sums=()
_svntrunk=http://wpad.googlecode.com/svn/trunk/
_svnmod=libwpad
build() {
# start building
cd $startdir/src
if [ -d $_svnmod/.svn ]; then
(cd $_svnmod && svn up)
else
svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
fi
msg "SVN checkout done or server timeout"
msg "Starting make..."
cp -r $_svnmod $_svnmod-build
cd $_svnmod-build
sed -i -e 's|firefox-js|xulrunner-js|g' configure.ac
autoreconf -i || return 1
./configure --prefix=/usr
make LDFLAGS+="-R /opt/mozilla/lib/xulrunner" || return 1
make DESTDIR=$startdir/pkg install || return 1
rm -rf $startdir/src/$_svnmod-build
}
Offline
I'm really sorry but I always have the same error
Offline
atlas95, use the PKGBUILDS from the aur, they worked for tardo and I..
Offline
I have try too ! :s
Offline
_la-pac.lo `test -f 'pac.c' || echo './'`pac.c
/bin/sh ../libtool --tag=CC --mode=compile gcc -DPACKAGE_NAME=\"wpad\" -DPACKAGE_TARNAME=\"wpad\" -DPACKAGE_VERSION=\"0.1\" -DPACKAGE_STRING=\"wpad\ 0.1\" -DPACKAGE_BUGREPORT=\"wpad@natemccallum.com\" -DPACKAGE=\"wpad\" -DVERSION=\"0.1\" -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 -DSTDC_HEADERS=1 -DHAVE_NETDB_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_UNISTD_H=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_GETHOSTBYNAME=1 -DHAVE_GETHOSTNAME=1 -DHAVE_MEMSET=1 -DHAVE_SOCKET=1 -DHAVE_STRDUP=1 -DHAVE_STRSTR=1 -I. -fvisibility=hidden /usr/include/js -std=c99 -march=i686 -O2 -pipe -MT libwpad_la-url.lo -MD -MP -MF .deps/libwpad_la-url.Tpo -c -o libwpad_la-url.lo `test -f 'url.c' || echo './'`url.c
mkdir .libs
gcc -DPACKAGE_NAME=\"wpad\" -DPACKAGE_TARNAME=\"wpad\" -DPACKAGE_VERSION=\"0.1\" "-DPACKAGE_STRING=\"wpad 0.1\"" -DPACKAGE_BUGREPORT=\"wpad@natemccallum.com\" -DPACKAGE=\"wpad\" -DVERSION=\"0.1\" -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 -DSTDC_HEADERS=1 -DHAVE_NETDB_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_UNISTD_H=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_GETHOSTBYNAME=1 -DHAVE_GETHOSTNAME=1 -DHAVE_MEMSET=1 -DHAVE_SOCKET=1 -DHAVE_STRDUP=1 -DHAVE_STRSTR=1 -I. -fvisibility=hidden /usr/include/js -std=c99 -march=i686 -O2 -pipe -MT libwpad_la-url.lo -MD -MP -MF .deps/libwpad_la-url.Tpo -c url.c -fPIC -DPIC -o .libs/libwpad_la-url.o
gcc: /usr/include/js: No such file or directory
gcc -DPACKAGE_NAME=\"wpad\" -DPACKAGE_TARNAME=\"wpad\" -DPACKAGE_VERSION=\"0.1\" "-DPACKAGE_STRING=\"wpad 0.1\"" -DPACKAGE_BUGREPORT=\"wpad@natemccallum.com\" -DPACKAGE=\"wpad\" -DVERSION=\"0.1\" -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 -DSTDC_HEADERS=1 -DHAVE_NETDB_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_UNISTD_H=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_GETHOSTBYNAME=1 -DHAVE_GETHOSTNAME=1 -DHAVE_MEMSET=1 -DHAVE_SOCKET=1 -DHAVE_STRDUP=1 -DHAVE_STRSTR=1 -I. -fvisibility=hidden /usr/include/js -std=c99 -march=i686 -O2 -pipe -MT libwpad_la-pac.lo -MD -MP -MF .deps/libwpad_la-pac.Tpo -c pac.c -fPIC -DPIC -o .libs/libwpad_la-pac.o
gcc: /usr/include/js: No such file or directory
pac.c:28:19: error: jsapi.h: No such file or directory
pac.c:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'dnsResolve'
pac.c:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'myIpAddress'
pac.c: In function 'wpad_pac_get_proxy_from_url':
pac.c:92: error: 'JSRuntime' undeclared (first use in this function)
pac.c:92: error: (Each undeclared identifier is reported only once
pac.c:92: error: for each function it appears in.)
pac.c:92: error: 'runtime' undeclared (first use in this function)
pac.c:93: error: 'JSContext' undeclared (first use in this function)
pac.c:93: error: 'context' undeclared (first use in this function)
pac.c:94: error: 'JSObject' undeclared (first use in this function)
pac.c:94: error: 'global' undeclared (first use in this function)
pac.c:95: error: 'jsval' undeclared (first use in this function)
pac.c:95: error: expected ';' before 'rval'
pac.c:107: error: 'JSClass' undeclared (first use in this function)
pac.c:107: error: 'global_class' undeclared (first use in this function)
pac.c:110: error: 'JS_PropertyStub' undeclared (first use in this function)
pac.c:114: error: 'JS_EnumerateStub' undeclared (first use in this function)
pac.c:115: error: 'JS_ResolveStub' undeclared (first use in this function)
pac.c:116: error: 'JS_ConvertStub' undeclared (first use in this function)
pac.c:117: error: 'JS_FinalizeStub' undeclared (first use in this function)
pac.c:120: warning: implicit declaration of function 'JS_NewRuntime'
pac.c:121: warning: implicit declaration of function 'JS_NewContext'
pac.c:122: warning: implicit declaration of function 'JS_NewObject'
pac.c:123: warning: implicit declaration of function 'JS_InitStandardClasses'
pac.c:126: warning: implicit declaration of function 'JS_DefineFunction'
pac.c:126: error: 'dnsResolve' undeclared (first use in this function)
pac.c:127: error: 'myIpAddress' undeclared (first use in this function)
pac.c:128: warning: implicit declaration of function 'JS_EvaluateScript'
pac.c:129: error: 'rval' undeclared (first use in this function)
pac.c:132: warning: implicit declaration of function 'JS_GetGlobalObject'
pac.c:140: error: expected ';' before 'val'
pac.c:146: error: 'JSBool' undeclared (first use in this function)
pac.c:146: error: expected ';' before 'result'
pac.c:148: error: 'result' undeclared (first use in this function)
pac.c:149: warning: implicit declaration of function 'JS_GetStringBytes'
pac.c:149: warning: implicit declaration of function 'JS_ValueToString'
pac.c:149: warning: passing argument 1 of 'wpad_strdup' makes pointer from integer without a cast
pac.c:156: warning: implicit declaration of function 'JS_DestroyContext'
pac.c:157: warning: implicit declaration of function 'JS_DestroyRuntime'
pac.c: At top level:
pac.c:284: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'dnsResolve'
pac.c:315: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'myIpAddress'
make[2]: *** [libwpad_la-pac.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
gcc -DPACKAGE_NAME=\"wpad\" -DPACKAGE_TARNAME=\"wpad\" -DPACKAGE_VERSION=\"0.1\" "-DPACKAGE_STRING=\"wpad 0.1\"" -DPACKAGE_BUGREPORT=\"wpad@natemccallum.com\" -DPACKAGE=\"wpad\" -DVERSION=\"0.1\" -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 -DSTDC_HEADERS=1 -DHAVE_NETDB_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_UNISTD_H=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_GETHOSTBYNAME=1 -DHAVE_GETHOSTNAME=1 -DHAVE_MEMSET=1 -DHAVE_SOCKET=1 -DHAVE_STRDUP=1 -DHAVE_STRSTR=1 -I. -fvisibility=hidden /usr/include/js -std=c99 -march=i686 -O2 -pipe -MT libwpad_la-misc.lo -MD -MP -MF .deps/libwpad_la-misc.Tpo -c misc.c -fPIC -DPIC -o .libs/libwpad_la-misc.o
make[2]: *** [libwpad_la-url.lo] Error 1
gcc: /usr/include/js: No such file or directory
make[2]: *** [libwpad_la-misc.lo] Error 1
make[2]: Leaving directory `/tmp/yaourt-tmp-root/aur-libwpad-svn/libwpad-svn/src/libwpad-build/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/tmp/yaourt-tmp-root/aur-libwpad-svn/libwpad-svn/src/libwpad-build/src'
make: *** [all-recursive] Error 1
==> ERROR: Build Failed. Aborting...
Error: Makepkg was unable to build libwpad-svn package.
Offline