Syntext Forums - Serna Enterprise XML Editor, Serna Free XML Editor
(#1 (permalink))
Old
PFH PFH is offline
Junior Member
 
Posts: 15
Join Date: Oct 2009
Default Publish and build problems - 10-17-2009, 06:36 AM

Greetings!

Problem 1: Specialization (using an .sdt file) worked fine - using the MySection >> Template >> MyTemplate opened a dialog correctly showing the root element(s) and led to a result which validated correctly. But PUBLISHING was not possible (all the dialog fields were grayed out and unresponsive). Any ideas why this should be/what I can do?

Problem 2: To try to understand the 'publishing problem' I thought of stepping through your code. Is information about how to make a step-throughable (debug) build available?

Problem 3: Decided to try a 'regular' build first to see what happens. I did exactly what your site information said, but the build failed. If you need the complete .../trunk/3rd/libxml/build.log please let me know.

Building in /home/pfh/trunk/3rd/libxml
Build failed in /home/pfh/trunk/3rd/libxml, see /home/pfh/trunk/3rd/libxml/build.log for details

According to ...trunk/3rd/libxml/build.log the problem is ...
In function 'open',
inlined from 'xmlNanoHTTPSave__internal_alias' at nanohttp.c:1586:
/usr/include/bits/fcntl2.h:51: error: call to '__open_missing_mode' declared with attribute error: open with O_CREAT in second argument needs 3 arguments

Any suggestions?
Reply With Quote
(#2 (permalink))
Old
kondor's Avatar
линукс-покемон
 
Posts: 49
Join Date: Apr 2009
Default 10-19-2009, 07:43 AM

Quote:
Originally Posted by PFH View Post
Problem 3: Decided to try a 'regular' build first to see what happens. I did exactly what your site information said, but the build failed. If you need the complete .../trunk/3rd/libxml/build.log please let me know.

Building in /home/pfh/trunk/3rd/libxml
Build failed in /home/pfh/trunk/3rd/libxml, see /home/pfh/trunk/3rd/libxml/build.log for details

According to ...trunk/3rd/libxml/build.log the problem is ...
In function 'open',
inlined from 'xmlNanoHTTPSave__internal_alias' at nanohttp.c:1586:
/usr/include/bits/fcntl2.h:51: error: call to '__open_missing_mode' declared with attribute error: open with O_CREAT in second argument needs 3 arguments

Any suggestions?
Hello,

It is a libxml issue. Open 3rd/libxml/2.6.27/libxml2-2.6.27/nanohttp.c, find there a line #1586:
Code:
fd = open(filename, O_CREAT | O_WRONLY);
And replace it with the following one:
Code:
fd = open(filename, O_CREAT | O_WRONLY, 0666);
Interesting moment here that this is successfully built on some other Linux distributions without this fix.


Get the latest updates on Syntext Blog
Reply With Quote
(#3 (permalink))
Old
Moderator
 
Posts: 3
Join Date: Apr 2009
Default 10-19-2009, 04:30 PM

Quote:
Originally Posted by PFH View Post
Problem 1: Specialization (using an .sdt file) worked fine - using the MySection >> Template >> MyTemplate opened a dialog correctly showing the root element(s) and led to a result which validated correctly. But PUBLISHING was not possible (all the dialog fields were grayed out and unresponsive). Any ideas why this should be/what I can do?
They are grayed out and unresponsive because there is not corresponding publishing plugin for your specialization/customization. To be able to publish your document type you should create a corresponding publishing plugin. To implement such one please take a look for example at XHTML publishing engine.
Reply With Quote
(#4 (permalink))
Old
Moderator
 
Posts: 3
Join Date: Apr 2009
Default 10-19-2009, 04:34 PM

Quote:
Originally Posted by PFH View Post

Problem 2: To try to understand the 'publishing problem' I thought of stepping through your code. Is information about how to make a step-throughable (debug) build available?
Yes it is, but it hasn't been tested out yet.
Reply With Quote
(#5 (permalink))
Old
PFH PFH is offline
Junior Member
 
Posts: 15
Join Date: Oct 2009
Default Thanks for the libxml tip. Here's the next error. - 10-22-2009, 11:30 AM

Build failed in ...../trunk/3rd/qt, see ....../trunk/3rd/qt/build.log for details
make[2]: *** [all] Error 111
make[2]: Leaving directory `...../trunk/3rd/qt/4.5.2'
make[1]: *** [install] Error 2
make[1]: Leaving directory `...../trunk/3rd/qt'
make: *** [qt] Error 2

gmake[3]: Entering directory `....../trunk/3rd/qt/4.5.2/qt-all-opensource-src-4.5.2'
gmake[3]: Makefile: No such file or directory
gmake[3]: *** No rule to make target `Makefile'. Stop.
gmake[3]: Leaving directory `....../trunk/3rd/qt/4.5.2/qt-all-opensource-src-4.5.2'

Kind regards,
PFH
Reply With Quote
(#6 (permalink))
Old
kondor's Avatar
линукс-покемон
 
Posts: 49
Join Date: Apr 2009
Default 10-22-2009, 03:57 PM

Quote:
Originally Posted by PFH View Post
Build failed in ...../trunk/3rd/qt, see ....../trunk/3rd/qt/build.log for details
Hello,

please enclose contents of trunk/3rd/qt/build.log file it may help to understand what goes wrong.


Get the latest updates on Syntext Blog
Reply With Quote
(#7 (permalink))
Old
PFH PFH is offline
Junior Member
 
Posts: 15
Join Date: Oct 2009
Default Contents of ..qt/build.log as requested - 10-25-2009, 06:37 PM

gmake[3]: Entering directory `..../trunk/3rd/qt/4.5.2/qt-all-opensource-src-4.5.2'
gmake[3]: Makefile: No such file or directory
gmake[3]: *** No rule to make target `Makefile'. Stop.
gmake[3]: Leaving directory `...../trunk/3rd/qt/4.5.2/qt-all-opensource-src-4.5.2'

The message in the second line is right - there is no Makefile as follows...
`..../trunk/3rd/qt/4.5.2/qt-all-opensource-src-4.5.2/Makefile
Reply With Quote
(#8 (permalink))
Old
PFH PFH is offline
Junior Member
 
Posts: 15
Join Date: Oct 2009
Default No response? - 10-27-2009, 11:41 AM

Several days ago I responded to your request:
"please enclose contents of trunk/3rd/qt/build.log file it may help to understand what goes wrong."

But there has been no response from your side.

What does this mean?
Reply With Quote
(#9 (permalink))
Old
PFH PFH is offline
Junior Member
 
Posts: 15
Join Date: Oct 2009
Default Still no response!? - 10-29-2009, 07:08 AM

Another 4 days have now passed with no response from your side regarding the build problem.
Reply With Quote
(#10 (permalink))
Old
kondor's Avatar
линукс-покемон
 
Posts: 49
Join Date: Apr 2009
Default 10-29-2009, 10:53 AM

Quote:
Originally Posted by PFH View Post
Another 4 days have now passed with no response from your side regarding the build problem.
Hello,

Sorry for any inconvenience. Currently I have no access to my work environment to check your problem out. I will do it ASAP, meanwhile please enclose more details what steps you do to build Serna, version of OS etc. It will help me to resolve your issue.

Thank you,


Get the latest updates on Syntext Blog
Reply With Quote
Reply

Bookmarks

Tags
build, libxml, publishing

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.1
vBulletin Skin developed by: vBStyles.com