edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
* [Edbrowse-dev] I cannot package edbrowse 3.4.7
@ 2011-07-23  7:18 Jean-Philippe MENGUAL
  2011-07-23 11:39 ` Chris Brannon
  0 siblings, 1 reply; 2+ messages in thread
From: Jean-Philippe MENGUAL @ 2011-07-23  7:18 UTC (permalink / raw)
  To: Edbrowse-dev

[-- Attachment #1: Type: text/plain, Size: 897 bytes --]

Hi,

I'm trying packaging edbrowse 3.4.7 for Debian. But while I learnt
packaging, I'm not a developper and don't know really the code. So I
have problems when things don't happen how they are expected to.

My main problem is with jsapi.h dependency. In debian, it is present in
two packages: libmozjs-dev and icedove-dev (headers of icedove and
libmozjs). If I point -I to /usr/include/icedove, I get make1
(attached). If I use /usr/include/mozjs, I get make2 (attached). And I
don't understand the output and what I've to do.

I use icedove-dev (headers of icedove) 3.1.11, and libmozjs-dev 5.0.

Thanks very much for your help, about a problem about building the
package (and not packaging tools on Debian),. With your answer I'll
learn more about makefile, I've already learnt more about -I option
thanks to the packaging of edbrowse.

Thanks very much.

Best regards,

Jean-Philippe MENGUAL


[-- Attachment #2: make1.txt --]
[-- Type: text/plain, Size: 4270 bytes --]

Script started on sam. 23 juil. 2011 09:11:11 CEST
jp@sid:~/packages/edbrowse/edbrowse-3.4.7$ dpkg-buildpackage
dpkg-buildpackage: export de CFLAGS depuis dpkg-buildflags (origine : vendor): -g -O2
dpkg-buildpackage: export de CPPFLAGS depuis dpkg-buildflags (origine : vendor): 
dpkg-buildpackage: export de CXXFLAGS depuis dpkg-buildflags (origine : vendor): -g -O2
dpkg-buildpackage: export de FFLAGS depuis dpkg-buildflags (origine : vendor): -g -O2
dpkg-buildpackage: export de LDFLAGS depuis dpkg-buildflags (origine : vendor): 
dpkg-buildpackage: paquet source edbrowse
dpkg-buildpackage: version source 3.4.7-1
dpkg-buildpackage: source changé par jp <jp@medion>
dpkg-buildpackage: architecture hÃŽte i386
 dpkg-source --before-build edbrowse-3.4.7
 fakeroot debian/rules clean
dh_testdir
dh_testroot
rm -f build-stamp
rm -f debian/edbrowse.1
/usr/bin/make -C src clean
make[1]: entrant dans le répertoire « /home/jp/packages/edbrowse/edbrowse-3.4.7/src »
rm -f *.o edbrowse edbrowseinf edbrowseodbc edbrowse.static
make[1]: quittant le répertoire « /home/jp/packages/edbrowse/edbrowse-3.4.7/src »
dh_clean
 dpkg-source -b edbrowse-3.4.7
dpkg-source: avertissement: aucun format source indiqué dans debian/source/format, voir dpkg-source(1)
dpkg-source: info: utilisation du format source « 1.0 »
dpkg-source: info: construction de edbrowse dans edbrowse_3.4.7-1.tar.gz
dpkg-source: info: construction de edbrowse dans edbrowse_3.4.7-1.dsc
 debian/rules build
dh_testdir
/usr/bin/make -C src CFLAGS="-g -O2 -I/usr/include/icedove -DXP_UNIX" LIBS="-lpcre -lssl -lmozjs -lcurl " LFLAGS="""" edbrowse
make[1]: entrant dans le répertoire « /home/jp/packages/edbrowse/edbrowse-3.4.7/src »
cc -g -O2 -I/usr/include/icedove -DXP_UNIX -DXP_UNIX -DX86_LINUX -I/usr/include/js  -c -o main.o main.c
cc -g -O2 -I/usr/include/icedove -DXP_UNIX -DXP_UNIX -DX86_LINUX -I/usr/include/js  -c -o buffers.o buffers.c
cc -g -O2 -I/usr/include/icedove -DXP_UNIX -DXP_UNIX -DX86_LINUX -I/usr/include/js  -c -o url.o url.c
cc -g -O2 -I/usr/include/icedove -DXP_UNIX -DXP_UNIX -DX86_LINUX -I/usr/include/js  -c -o auth.o auth.c
cc -g -O2 -I/usr/include/icedove -DXP_UNIX -DXP_UNIX -DX86_LINUX -I/usr/include/js  -c -o http.o http.c
http.c: In function ‘httpConnect’:
http.c:639:2: warning: call to ‘_curl_easy_getinfo_err_long’ declared with attribute warning: curl_easy_getinfo expects a pointer to long for this info [enabled by default]
cc -g -O2 -I/usr/include/icedove -DXP_UNIX -DXP_UNIX -DX86_LINUX -I/usr/include/js  -c -o sendmail.o sendmail.c
cc -g -O2 -I/usr/include/icedove -DXP_UNIX -DXP_UNIX -DX86_LINUX -I/usr/include/js  -c -o fetchmail.o fetchmail.c
cc -g -O2 -I/usr/include/icedove -DXP_UNIX -DXP_UNIX -DX86_LINUX -I/usr/include/js  -c -o html.o html.c
cc -g -O2 -I/usr/include/icedove -DXP_UNIX -DXP_UNIX -DX86_LINUX -I/usr/include/js  -c -o format.o format.c
cc -g -O2 -I/usr/include/icedove -DXP_UNIX -DXP_UNIX -DX86_LINUX -I/usr/include/js  -c -o cookies.o cookies.c
cc -g -O2 -I/usr/include/icedove -DXP_UNIX -DXP_UNIX -DX86_LINUX -I/usr/include/js  -c -o stringfile.o stringfile.c
cc -g -O2 -I/usr/include/icedove -DXP_UNIX -DXP_UNIX -DX86_LINUX -I/usr/include/js  -c -o jsdom.o jsdom.c
cc -g -O2 -I/usr/include/icedove -DXP_UNIX -DXP_UNIX -DX86_LINUX -I/usr/include/js  -c -o jsloc.o jsloc.c
cc -g -O2 -I/usr/include/icedove -DXP_UNIX -DXP_UNIX -DX86_LINUX -I/usr/include/js  -c -o messages.o messages.c
cc -g -O2 -I/usr/include/icedove -DXP_UNIX -DXP_UNIX -DX86_LINUX -I/usr/include/js  -c -o tcp.o tcp.c
cc -g -O2 -I/usr/include/icedove -DXP_UNIX -DXP_UNIX -DX86_LINUX -I/usr/include/js  -c -o dbstubs.o dbstubs.c
cc  -s  main.o buffers.o url.o auth.o http.o sendmail.o fetchmail.o html.o format.o cookies.o stringfile.o jsdom.o jsloc.o messages.o tcp.o dbstubs.o  -lpcre -lm -lssl -ljs -lcurl -lreadline -lcrypto -o edbrowse
/usr/bin/ld: cannot find -ljs
collect2: ld returned 1 exit status
make[1]: *** [edbrowse] Erreur 1
make[1]: quittant le répertoire « /home/jp/packages/edbrowse/edbrowse-3.4.7/src »
make: *** [build-stamp] Erreur 2
dpkg-buildpackage: erreur: debian/rules build a produit une erreur de sortie de type 2
jp@sid:~/packages/edbrowse/edbrowse-3.4.7$ exit
exit

Script done on sam. 23 juil. 2011 09:12:05 CEST

[-- Attachment #3: make2.txt --]
[-- Type: text/plain, Size: 25288 bytes --]

Script started on sam. 23 juil. 2011 09:12:43 CEST
jp@sid:~/packages/edbrowse/edbrowse-3.4.7$ exit\b\b\b\bdpkg-buildpackage
dpkg-buildpackage: export de CFLAGS depuis dpkg-buildflags (origine : vendor): -g -O2
dpkg-buildpackage: export de CPPFLAGS depuis dpkg-buildflags (origine : vendor): 
dpkg-buildpackage: export de CXXFLAGS depuis dpkg-buildflags (origine : vendor): -g -O2
dpkg-buildpackage: export de FFLAGS depuis dpkg-buildflags (origine : vendor): -g -O2
dpkg-buildpackage: export de LDFLAGS depuis dpkg-buildflags (origine : vendor): 
dpkg-buildpackage: paquet source edbrowse
dpkg-buildpackage: version source 3.4.7-1
dpkg-buildpackage: source changé par jp <jp@medion>
dpkg-buildpackage: architecture hÃŽte i386
 dpkg-source --before-build edbrowse-3.4.7
 fakeroot debian/rules clean
dh_testdir
dh_testroot
rm -f build-stamp
rm -f debian/edbrowse.1
/usr/bin/make -C src clean
make[1]: entrant dans le répertoire « /home/jp/packages/edbrowse/edbrowse-3.4.7/src »
rm -f *.o edbrowse edbrowseinf edbrowseodbc edbrowse.static
make[1]: quittant le répertoire « /home/jp/packages/edbrowse/edbrowse-3.4.7/src »
dh_clean
 dpkg-source -b edbrowse-3.4.7
dpkg-source: avertissement: aucun format source indiqué dans debian/source/format, voir dpkg-source(1)
dpkg-source: info: utilisation du format source « 1.0 »
dpkg-source: info: construction de edbrowse dans edbrowse_3.4.7-1.tar.gz
dpkg-source: info: construction de edbrowse dans edbrowse_3.4.7-1.dsc
 debian/rules build
dh_testdir
/usr/bin/make -C src CFLAGS="-g -O2 -I/usr/include/mozjs -DXP_UNIX" LIBS="-lpcre -lssl -lmozjs -lcurl " LFLAGS="""" edbrowse
make[1]: entrant dans le répertoire « /home/jp/packages/edbrowse/edbrowse-3.4.7/src »
cc -g -O2 -I/usr/include/mozjs -DXP_UNIX -DXP_UNIX -DX86_LINUX -I/usr/include/js  -c -o main.o main.c
cc -g -O2 -I/usr/include/mozjs -DXP_UNIX -DXP_UNIX -DX86_LINUX -I/usr/include/js  -c -o buffers.o buffers.c
cc -g -O2 -I/usr/include/mozjs -DXP_UNIX -DXP_UNIX -DX86_LINUX -I/usr/include/js  -c -o url.o url.c
cc -g -O2 -I/usr/include/mozjs -DXP_UNIX -DXP_UNIX -DX86_LINUX -I/usr/include/js  -c -o auth.o auth.c
cc -g -O2 -I/usr/include/mozjs -DXP_UNIX -DXP_UNIX -DX86_LINUX -I/usr/include/js  -c -o http.o http.c
http.c: In function ‘httpConnect’:
http.c:639:2: warning: call to ‘_curl_easy_getinfo_err_long’ declared with attribute warning: curl_easy_getinfo expects a pointer to long for this info [enabled by default]
cc -g -O2 -I/usr/include/mozjs -DXP_UNIX -DXP_UNIX -DX86_LINUX -I/usr/include/js  -c -o sendmail.o sendmail.c
cc -g -O2 -I/usr/include/mozjs -DXP_UNIX -DXP_UNIX -DX86_LINUX -I/usr/include/js  -c -o fetchmail.o fetchmail.c
cc -g -O2 -I/usr/include/mozjs -DXP_UNIX -DXP_UNIX -DX86_LINUX -I/usr/include/js  -c -o html.o html.c
cc -g -O2 -I/usr/include/mozjs -DXP_UNIX -DXP_UNIX -DX86_LINUX -I/usr/include/js  -c -o format.o format.c
cc -g -O2 -I/usr/include/mozjs -DXP_UNIX -DXP_UNIX -DX86_LINUX -I/usr/include/js  -c -o cookies.o cookies.c
cc -g -O2 -I/usr/include/mozjs -DXP_UNIX -DXP_UNIX -DX86_LINUX -I/usr/include/js  -c -o stringfile.o stringfile.c
cc -g -O2 -I/usr/include/mozjs -DXP_UNIX -DXP_UNIX -DX86_LINUX -I/usr/include/js  -c -o jsdom.o jsdom.c
jsdom.c: In function ‘transcode_get_js_bytes’:
jsdom.c:122:29: warning: initialization makes pointer from integer without a cast [enabled by default]
jsdom.c: At top level:
jsdom.c:160:5: warning: initialization from incompatible pointer type [enabled by default]
jsdom.c:160:5: warning: (near initialization for ‘window_class.setProperty’) [enabled by default]
jsdom.c: In function ‘window_ctor’:
jsdom.c:172:9: warning: assignment makes pointer from integer without a cast [enabled by default]
jsdom.c: At top level:
jsdom.c:364:5: warning: initialization from incompatible pointer type [enabled by default]
jsdom.c:364:5: warning: (near initialization for ‘timer_class.setProperty’) [enabled by default]
jsdom.c: In function ‘setTimeout’:
jsdom.c:383:2: warning: return makes pointer from integer without a cast [enabled by default]
jsdom.c:406:22: warning: initialization makes pointer from integer without a cast [enabled by default]
jsdom.c:431:5: warning: return makes pointer from integer without a cast [enabled by default]
jsdom.c: At top level:
jsdom.c:449:5: warning: initialization from incompatible pointer type [enabled by default]
jsdom.c:449:5: warning: (near initialization for ‘window_methods[0].call’) [enabled by default]
jsdom.c:449:5: warning: excess elements in struct initializer [enabled by default]
jsdom.c:449:5: warning: (near initialization for ‘window_methods[0]’) [enabled by default]
jsdom.c:450:5: warning: initialization from incompatible pointer type [enabled by default]
jsdom.c:450:5: warning: (near initialization for ‘window_methods[1].call’) [enabled by default]
jsdom.c:450:5: warning: excess elements in struct initializer [enabled by default]
jsdom.c:450:5: warning: (near initialization for ‘window_methods[1]’) [enabled by default]
jsdom.c:451:5: warning: initialization from incompatible pointer type [enabled by default]
jsdom.c:451:5: warning: (near initialization for ‘window_methods[2].call’) [enabled by default]
jsdom.c:451:5: warning: excess elements in struct initializer [enabled by default]
jsdom.c:451:5: warning: (near initialization for ‘window_methods[2]’) [enabled by default]
jsdom.c:452:5: warning: initialization from incompatible pointer type [enabled by default]
jsdom.c:452:5: warning: (near initialization for ‘window_methods[3].call’) [enabled by default]
jsdom.c:452:5: warning: excess elements in struct initializer [enabled by default]
jsdom.c:452:5: warning: (near initialization for ‘window_methods[3]’) [enabled by default]
jsdom.c:453:5: warning: initialization from incompatible pointer type [enabled by default]
jsdom.c:453:5: warning: (near initialization for ‘window_methods[4].call’) [enabled by default]
jsdom.c:453:5: warning: excess elements in struct initializer [enabled by default]
jsdom.c:453:5: warning: (near initialization for ‘window_methods[4]’) [enabled by default]
jsdom.c:454:5: warning: initialization from incompatible pointer type [enabled by default]
jsdom.c:454:5: warning: (near initialization for ‘window_methods[5].call’) [enabled by default]
jsdom.c:454:5: warning: excess elements in struct initializer [enabled by default]
jsdom.c:454:5: warning: (near initialization for ‘window_methods[5]’) [enabled by default]
jsdom.c:455:5: warning: initialization from incompatible pointer type [enabled by default]
jsdom.c:455:5: warning: (near initialization for ‘window_methods[6].call’) [enabled by default]
jsdom.c:455:5: warning: excess elements in struct initializer [enabled by default]
jsdom.c:455:5: warning: (near initialization for ‘window_methods[6]’) [enabled by default]
jsdom.c:456:5: warning: initialization from incompatible pointer type [enabled by default]
jsdom.c:456:5: warning: (near initialization for ‘window_methods[7].call’) [enabled by default]
jsdom.c:456:5: warning: excess elements in struct initializer [enabled by default]
jsdom.c:456:5: warning: (near initialization for ‘window_methods[7]’) [enabled by default]
jsdom.c:457:5: warning: initialization from incompatible pointer type [enabled by default]
jsdom.c:457:5: warning: (near initialization for ‘window_methods[8].call’) [enabled by default]
jsdom.c:457:5: warning: excess elements in struct initializer [enabled by default]
jsdom.c:457:5: warning: (near initialization for ‘window_methods[8]’) [enabled by default]
jsdom.c:458:5: warning: initialization from incompatible pointer type [enabled by default]
jsdom.c:458:5: warning: (near initialization for ‘window_methods[9].call’) [enabled by default]
jsdom.c:458:5: warning: excess elements in struct initializer [enabled by default]
jsdom.c:458:5: warning: (near initialization for ‘window_methods[9]’) [enabled by default]
jsdom.c:465:5: warning: initialization from incompatible pointer type [enabled by default]
jsdom.c:465:5: warning: (near initialization for ‘doc_class.setProperty’) [enabled by default]
jsdom.c: In function ‘setter_innerText’:
jsdom.c:525:7: warning: assignment makes pointer from integer without a cast [enabled by default]
jsdom.c: At top level:
jsdom.c:540:5: warning: initialization from incompatible pointer type [enabled by default]
jsdom.c:540:5: warning: (near initialization for ‘doc_methods[0].call’) [enabled by default]
jsdom.c:540:5: warning: excess elements in struct initializer [enabled by default]
jsdom.c:540:5: warning: (near initialization for ‘doc_methods[0]’) [enabled by default]
jsdom.c:541:5: warning: initialization from incompatible pointer type [enabled by default]
jsdom.c:541:5: warning: (near initialization for ‘doc_methods[1].call’) [enabled by default]
jsdom.c:541:5: warning: excess elements in struct initializer [enabled by default]
jsdom.c:541:5: warning: (near initialization for ‘doc_methods[1]’) [enabled by default]
jsdom.c:542:5: warning: initialization from incompatible pointer type [enabled by default]
jsdom.c:542:5: warning: (near initialization for ‘doc_methods[2].call’) [enabled by default]
jsdom.c:542:5: warning: excess elements in struct initializer [enabled by default]
jsdom.c:542:5: warning: (near initialization for ‘doc_methods[2]’) [enabled by default]
jsdom.c:543:5: warning: initialization from incompatible pointer type [enabled by default]
jsdom.c:543:5: warning: (near initialization for ‘doc_methods[3].call’) [enabled by default]
jsdom.c:543:5: warning: excess elements in struct initializer [enabled by default]
jsdom.c:543:5: warning: (near initialization for ‘doc_methods[3]’) [enabled by default]
jsdom.c:544:5: warning: initialization from incompatible pointer type [enabled by default]
jsdom.c:544:5: warning: (near initialization for ‘doc_methods[4].call’) [enabled by default]
jsdom.c:544:5: warning: excess elements in struct initializer [enabled by default]
jsdom.c:544:5: warning: (near initialization for ‘doc_methods[4]’) [enabled by default]
jsdom.c:545:5: warning: initialization from incompatible pointer type [enabled by default]
jsdom.c:545:5: warning: (near initialization for ‘doc_methods[5].call’) [enabled by default]
jsdom.c:545:5: warning: excess elements in struct initializer [enabled by default]
jsdom.c:545:5: warning: (near initialization for ‘doc_methods[5]’) [enabled by default]
jsdom.c:552:5: warning: initialization from incompatible pointer type [enabled by default]
jsdom.c:552:5: warning: (near initialization for ‘element_class.setProperty’) [enabled by default]
jsdom.c:557:5: warning: initialization from incompatible pointer type [enabled by default]
jsdom.c:557:5: warning: (near initialization for ‘element_methods[0].call’) [enabled by default]
jsdom.c:557:5: warning: excess elements in struct initializer [enabled by default]
jsdom.c:557:5: warning: (near initialization for ‘element_methods[0]’) [enabled by default]
jsdom.c:558:5: warning: initialization from incompatible pointer type [enabled by default]
jsdom.c:558:5: warning: (near initialization for ‘element_methods[1].call’) [enabled by default]
jsdom.c:558:5: warning: excess elements in struct initializer [enabled by default]
jsdom.c:558:5: warning: (near initialization for ‘element_methods[1]’) [enabled by default]
jsdom.c:565:5: warning: initialization from incompatible pointer type [enabled by default]
jsdom.c:565:5: warning: (near initialization for ‘form_class.setProperty’) [enabled by default]
jsdom.c:586:5: warning: initialization from incompatible pointer type [enabled by default]
jsdom.c:586:5: warning: (near initialization for ‘form_methods[0].call’) [enabled by default]
jsdom.c:586:5: warning: excess elements in struct initializer [enabled by default]
jsdom.c:586:5: warning: (near initialization for ‘form_methods[0]’) [enabled by default]
jsdom.c:587:5: warning: initialization from incompatible pointer type [enabled by default]
jsdom.c:587:5: warning: (near initialization for ‘form_methods[1].call’) [enabled by default]
jsdom.c:587:5: warning: excess elements in struct initializer [enabled by default]
jsdom.c:587:5: warning: (near initialization for ‘form_methods[1]’) [enabled by default]
jsdom.c:594:5: warning: initialization from incompatible pointer type [enabled by default]
jsdom.c:594:5: warning: (near initialization for ‘body_class.setProperty’) [enabled by default]
jsdom.c:599:5: warning: initialization from incompatible pointer type [enabled by default]
jsdom.c:599:5: warning: (near initialization for ‘body_methods[0].call’) [enabled by default]
jsdom.c:599:5: warning: excess elements in struct initializer [enabled by default]
jsdom.c:599:5: warning: (near initialization for ‘body_methods[0]’) [enabled by default]
jsdom.c:600:5: warning: initialization from incompatible pointer type [enabled by default]
jsdom.c:600:5: warning: (near initialization for ‘body_methods[1].call’) [enabled by default]
jsdom.c:600:5: warning: excess elements in struct initializer [enabled by default]
jsdom.c:600:5: warning: (near initialization for ‘body_methods[1]’) [enabled by default]
jsdom.c:607:5: warning: initialization from incompatible pointer type [enabled by default]
jsdom.c:607:5: warning: (near initialization for ‘head_class.setProperty’) [enabled by default]
jsdom.c:612:5: warning: initialization from incompatible pointer type [enabled by default]
jsdom.c:612:5: warning: (near initialization for ‘head_methods[0].call’) [enabled by default]
jsdom.c:612:5: warning: excess elements in struct initializer [enabled by default]
jsdom.c:612:5: warning: (near initialization for ‘head_methods[0]’) [enabled by default]
jsdom.c:613:5: warning: initialization from incompatible pointer type [enabled by default]
jsdom.c:613:5: warning: (near initialization for ‘head_methods[1].call’) [enabled by default]
jsdom.c:613:5: warning: excess elements in struct initializer [enabled by default]
jsdom.c:613:5: warning: (near initialization for ‘head_methods[1]’) [enabled by default]
jsdom.c:620:5: warning: initialization from incompatible pointer type [enabled by default]
jsdom.c:620:5: warning: (near initialization for ‘meta_class.setProperty’) [enabled by default]
jsdom.c:628:5: warning: initialization from incompatible pointer type [enabled by default]
jsdom.c:628:5: warning: (near initialization for ‘link_class.setProperty’) [enabled by default]
jsdom.c:633:5: warning: initialization from incompatible pointer type [enabled by default]
jsdom.c:633:5: warning: (near initialization for ‘link_methods[0].call’) [enabled by default]
jsdom.c:633:5: warning: excess elements in struct initializer [enabled by default]
jsdom.c:633:5: warning: (near initialization for ‘link_methods[0]’) [enabled by default]
jsdom.c:640:5: warning: initialization from incompatible pointer type [enabled by default]
jsdom.c:640:5: warning: (near initialization for ‘image_class.setProperty’) [enabled by default]
jsdom.c:647:5: warning: initialization from incompatible pointer type [enabled by default]
jsdom.c:647:5: warning: (near initialization for ‘frame_class.setProperty’) [enabled by default]
jsdom.c:654:5: warning: initialization from incompatible pointer type [enabled by default]
jsdom.c:654:5: warning: (near initialization for ‘anchor_class.setProperty’) [enabled by default]
jsdom.c:661:5: warning: initialization from incompatible pointer type [enabled by default]
jsdom.c:661:5: warning: (near initialization for ‘table_class.setProperty’) [enabled by default]
jsdom.c:668:5: warning: initialization from incompatible pointer type [enabled by default]
jsdom.c:668:5: warning: (near initialization for ‘trow_class.setProperty’) [enabled by default]
jsdom.c:675:5: warning: initialization from incompatible pointer type [enabled by default]
jsdom.c:675:5: warning: (near initialization for ‘cell_class.setProperty’) [enabled by default]
jsdom.c:682:5: warning: initialization from incompatible pointer type [enabled by default]
jsdom.c:682:5: warning: (near initialization for ‘div_class.setProperty’) [enabled by default]
jsdom.c:689:5: warning: initialization from incompatible pointer type [enabled by default]
jsdom.c:689:5: warning: (near initialization for ‘span_class.setProperty’) [enabled by default]
jsdom.c:696:5: warning: initialization from incompatible pointer type [enabled by default]
jsdom.c:696:5: warning: (near initialization for ‘area_class.setProperty’) [enabled by default]
jsdom.c:703:5: warning: initialization from incompatible pointer type [enabled by default]
jsdom.c:703:5: warning: (near initialization for ‘option_class.setProperty’) [enabled by default]
jsdom.c: In function ‘createJavaContext’:
jsdom.c:816:8: warning: passing argument 5 of ‘JS_InitClass’ from incompatible pointer type [enabled by default]
/usr/include/mozjs/jsapi.h:2113:1: note: expected ‘JSNative’ but argument is of type ‘JSBool (*)(struct JSContext *, struct JSObject *, uintN,  jsval *, jsval *)’
jsdom.c:849:5: warning: passing argument 5 of ‘JS_InitClass’ from incompatible pointer type [enabled by default]
/usr/include/mozjs/jsapi.h:2113:1: note: expected ‘JSNative’ but argument is of type ‘JSBool (*)(struct JSContext *, struct JSObject *, uintN,  jsval *, jsval *)’
jsdom.c:901:5: warning: passing argument 4 of ‘JS_DefineFunction’ from incompatible pointer type [enabled by default]
/usr/include/mozjs/jsapi.h:2640:1: note: expected ‘JSNative’ but argument is of type ‘JSBool (*)(struct JSContext *, struct JSObject *, uintN,  jsval *, jsval *)’
jsdom.c:902:5: warning: passing argument 4 of ‘JS_DefineFunction’ from incompatible pointer type [enabled by default]
/usr/include/mozjs/jsapi.h:2640:1: note: expected ‘JSNative’ but argument is of type ‘JSBool (*)(struct JSContext *, struct JSObject *, uintN,  jsval *, jsval *)’
jsdom.c:974:5: warning: passing argument 4 of ‘JS_DefineFunction’ from incompatible pointer type [enabled by default]
/usr/include/mozjs/jsapi.h:2640:1: note: expected ‘JSNative’ but argument is of type ‘JSBool (*)(struct JSContext *, struct JSObject *, uintN,  jsval *, jsval *)’
jsdom.c:975:5: warning: passing argument 4 of ‘JS_DefineFunction’ from incompatible pointer type [enabled by default]
/usr/include/mozjs/jsapi.h:2640:1: note: expected ‘JSNative’ but argument is of type ‘JSBool (*)(struct JSContext *, struct JSObject *, uintN,  jsval *, jsval *)’
jsdom.c:976:5: warning: passing argument 4 of ‘JS_DefineFunction’ from incompatible pointer type [enabled by default]
/usr/include/mozjs/jsapi.h:2640:1: note: expected ‘JSNative’ but argument is of type ‘JSBool (*)(struct JSContext *, struct JSObject *, uintN,  jsval *, jsval *)’
jsdom.c: In function ‘establish_innerHTML’:
jsdom.c:1007:8: warning: passing argument 6 of ‘JS_DefineProperty’ from incompatible pointer type [enabled by default]
/usr/include/mozjs/jsapi.h:2226:1: note: expected ‘JSStrictPropertyOp’ but argument is of type ‘JSBool (*)(struct JSContext *, struct JSObject *, jsval,  jsval *)’
jsdom.c:1011:5: warning: passing argument 6 of ‘JS_DefineProperty’ from incompatible pointer type [enabled by default]
/usr/include/mozjs/jsapi.h:2226:1: note: expected ‘JSStrictPropertyOp’ but argument is of type ‘JSBool (*)(struct JSContext *, struct JSObject *, jsval,  jsval *)’
jsdom.c: In function ‘domLink’:
jsdom.c:1139:3: warning: passing argument 4 of ‘JS_DefineFunction’ from incompatible pointer type [enabled by default]
/usr/include/mozjs/jsapi.h:2640:1: note: expected ‘JSNative’ but argument is of type ‘JSBool (*)(struct JSContext *, struct JSObject *, uintN,  jsval *, jsval *)’
jsdom.c:1140:3: warning: passing argument 4 of ‘JS_DefineFunction’ from incompatible pointer type [enabled by default]
/usr/include/mozjs/jsapi.h:2640:1: note: expected ‘JSNative’ but argument is of type ‘JSBool (*)(struct JSContext *, struct JSObject *, uintN,  jsval *, jsval *)’
cc -g -O2 -I/usr/include/mozjs -DXP_UNIX -DXP_UNIX -DX86_LINUX -I/usr/include/js  -c -o jsloc.o jsloc.c
jsloc.c: In function ‘stringize’:
jsloc.c:39:2: warning: return makes pointer from integer without a cast [enabled by default]
jsloc.c:47:6: error: invalid type argument of unary ‘*’ (have ‘jsdouble’)
jsloc.c: At top level:
jsloc.c:62:5: warning: initialization from incompatible pointer type [enabled by default]
jsloc.c:62:5: warning: (near initialization for ‘url_class.setProperty’) [enabled by default]
jsloc.c: In function ‘loc_def_set’:
jsloc.c:234:2: warning: passing argument 6 of ‘JS_DefineProperty’ from incompatible pointer type [enabled by default]
/usr/include/mozjs/jsapi.h:2226:1: note: expected ‘JSStrictPropertyOp’ but argument is of type ‘JSBool (*)(struct JSContext *, struct JSObject *, jsval,  jsval *)’
jsloc.c: In function ‘loc_def_set_n’:
jsloc.c:248:2: warning: passing argument 6 of ‘JS_DefineProperty’ from incompatible pointer type [enabled by default]
/usr/include/mozjs/jsapi.h:2226:1: note: expected ‘JSStrictPropertyOp’ but argument is of type ‘JSBool (*)(struct JSContext *, struct JSObject *, jsval,  jsval *)’
jsloc.c: In function ‘loc_def_set_part’:
jsloc.c:265:2: warning: passing argument 6 of ‘JS_DefineProperty’ from incompatible pointer type [enabled by default]
/usr/include/mozjs/jsapi.h:2226:1: note: expected ‘JSStrictPropertyOp’ but argument is of type ‘JSBool (*)(struct JSContext *, struct JSObject *, jsval,  jsval *)’
jsloc.c: At top level:
jsloc.c:512:5: warning: initialization from incompatible pointer type [enabled by default]
jsloc.c:512:5: warning: (near initialization for ‘url_methods[0].call’) [enabled by default]
jsloc.c:512:5: warning: excess elements in struct initializer [enabled by default]
jsloc.c:512:5: warning: (near initialization for ‘url_methods[0]’) [enabled by default]
jsloc.c: In function ‘initLocationClass’:
jsloc.c:520:8: warning: passing argument 5 of ‘JS_InitClass’ from incompatible pointer type [enabled by default]
/usr/include/mozjs/jsapi.h:2113:1: note: expected ‘JSNative’ but argument is of type ‘JSBool (*)(struct JSContext *, struct JSObject *, uintN,  jsval *, jsval *)’
jsloc.c: In function ‘establish_property_string’:
jsloc.c:664:8: warning: passing argument 5 of ‘JS_DefineProperty’ from incompatible pointer type [enabled by default]
/usr/include/mozjs/jsapi.h:2226:1: note: expected ‘JSPropertyOp’ but argument is of type ‘JSBool (*)(struct JSContext *, struct JSObject *, jsval,  jsval *)’
jsloc.c:664:8: warning: passing argument 6 of ‘JS_DefineProperty’ from incompatible pointer type [enabled by default]
/usr/include/mozjs/jsapi.h:2226:1: note: expected ‘JSStrictPropertyOp’ but argument is of type ‘JSBool (*)(struct JSContext *, struct JSObject *, jsval,  jsval *)’
jsloc.c: In function ‘establish_property_number’:
jsloc.c:678:8: warning: passing argument 6 of ‘JS_DefineProperty’ from incompatible pointer type [enabled by default]
/usr/include/mozjs/jsapi.h:2226:1: note: expected ‘JSStrictPropertyOp’ but argument is of type ‘JSBool (*)(struct JSContext *, struct JSObject *, jsval,  jsval *)’
jsloc.c: In function ‘establish_property_bool’:
jsloc.c:694:8: warning: passing argument 6 of ‘JS_DefineProperty’ from incompatible pointer type [enabled by default]
/usr/include/mozjs/jsapi.h:2226:1: note: expected ‘JSStrictPropertyOp’ but argument is of type ‘JSBool (*)(struct JSContext *, struct JSObject *, jsval,  jsval *)’
jsloc.c: In function ‘establish_property_url’:
jsloc.c:728:8: warning: passing argument 6 of ‘JS_DefineProperty’ from incompatible pointer type [enabled by default]
/usr/include/mozjs/jsapi.h:2226:1: note: expected ‘JSStrictPropertyOp’ but argument is of type ‘JSBool (*)(struct JSContext *, struct JSObject *, jsval,  jsval *)’
jsloc.c:737:2: warning: passing argument 4 of ‘JS_DefineFunction’ from incompatible pointer type [enabled by default]
/usr/include/mozjs/jsapi.h:2640:1: note: expected ‘JSNative’ but argument is of type ‘JSBool (*)(struct JSContext *, struct JSObject *, uintN,  jsval *, jsval *)’
jsloc.c:738:2: warning: passing argument 4 of ‘JS_DefineFunction’ from incompatible pointer type [enabled by default]
/usr/include/mozjs/jsapi.h:2640:1: note: expected ‘JSNative’ but argument is of type ‘JSBool (*)(struct JSContext *, struct JSObject *, uintN,  jsval *, jsval *)’
jsloc.c: At top level:
jsloc.c:902:5: warning: initialization from incompatible pointer type [enabled by default]
jsloc.c:902:5: warning: (near initialization for ‘option_class.setProperty’) [enabled by default]
make[1]: *** [jsloc.o] Erreur 1
make[1]: quittant le répertoire « /home/jp/packages/edbrowse/edbrowse-3.4.7/src »
make: *** [build-stamp] Erreur 2
dpkg-buildpackage: erreur: debian/rules build a produit une erreur de sortie de type 2
jp@sid:~/packages/edbrowse/edbrowse-3.4.7$ exit
exit

Script done on sam. 23 juil. 2011 09:13:51 CEST

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

* Re: [Edbrowse-dev] I cannot package edbrowse 3.4.7
  2011-07-23  7:18 [Edbrowse-dev] I cannot package edbrowse 3.4.7 Jean-Philippe MENGUAL
@ 2011-07-23 11:39 ` Chris Brannon
  0 siblings, 0 replies; 2+ messages in thread
From: Chris Brannon @ 2011-07-23 11:39 UTC (permalink / raw)
  To: Edbrowse-dev

Jean-Philippe MENGUAL <mengualjeanphi@free.fr> writes:

> My main problem is with jsapi.h dependency. In debian, it is present in
> two packages: libmozjs-dev and icedove-dev (headers of icedove and
> libmozjs).

Hi.
When you build with the libmozjs package, it appears that you are
building against the brand-new 1.8.5 version.  This is the one that is
causing all of the trouble for us on ArchLinux.
Hence, all of these errors in make2.txt.  The APIs are incompatible.
I'd suggest building against icedove, whatever that is, because it at
least appears to provide Spidermonkey headers that are older than
version 1.8.5.
Also, when you build the executable, you probably need to override the
setting of JSLIB in the makefile under src/.  E.G., the following should
work:
cd src ; make JSLIB=-lmozjs
I'm assuming that libmozjs.so is the name of the library.  Maybe that
assumption isn't correct.

Hope this helps,
-- Chris

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

end of thread, other threads:[~2011-07-23 11:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-23  7:18 [Edbrowse-dev] I cannot package edbrowse 3.4.7 Jean-Philippe MENGUAL
2011-07-23 11:39 ` Chris Brannon

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 NNTP newsgroup(s).