-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add EXTERNAL support. #140 #3
Conversation
…gh-140 Remove asn1p_l.c, asn1p_y.c and asn1_p.h from the repository. https://www.gnu.org/software/automake/manual/html_node/Yacc-and-Lex.html https://www.gnu.org/software/automake/manual/html_node/Built-Sources-Example.html#Built-Sources-Example
- Remove EXTERNAL from asn1p_l.l and asn1p_y.y - Add EXTERNAL ASN.1 definition from ITU-T X.208 in skeletons/standard-modules/ASN1C-UsefulInformationObjectClasses.asn1 - Add a test case: tests/135-EXTERNAL-OK.asn and asn1c/tests/check-src/check-135.c - Regenerate all tests/*.asn1.-Pfwide-types files
Thank you - but I'm afraid more work is needed:
|
@velichkov Also, could you please fix Thanks! |
Hi @mouse07410
This looks like version incompatibility problem. Which version of Could you check if
and the output of
Yes. I will rebase against your master, regenerate the tests/.asn1. files and push again. I saw that you have already pushed manually some of these changes in your master in 11c7266 and I don't understand why you did it, is there any specific reason? |
Conflicts: tests/32-sequence-of-OK.asn1.-P
Thank you! Will check in a few hours.
:-( |
Same problem:
|
@velichkov same thing applies here. Can Update. |
The Travis CI build fails because of (--enable-Werror) asn1p_y.y: In function 'asn1p_error': asn1p_y.y:2465:16: error: unused parameter 'param' [-Werror=unused-parameter]
Hi @mouse07410,
No problem but instead of rebase I'm going to open a new PR for branch 115
Yes, bison v3 is the problem and vlm#82 fixes it, I just cherry-picked db6c397 and pushed it here. |
The master branch seems to have some problems here - because of the merged #2 that removes individual encoder/decoder pointers and puts them into a common structure. Here's the log: Basically the master will become branch 129, but wouldn't it be nice if it also was complete in functionality? ;-) |
Sure but the strange thing is that I've already regenerated the tests files, see Also I just tried to merge manually my branch |
Oh yes, the merge is successful, and so is the compilation. But some of the subsequent tests seem to fail. And I suspect the reason is - #2 (that was merged before) changed some of the internal structures. |
I just merged master and pushed the changes. The CI build is successful https://travis-ci.org/mouse07410/asn1c/jobs/215973265#L2309 Note that the Travis actually merge the PR before building it
The third command actually perform a merge |
Thanks - to be honest, I didn't realize that (which now, in the hindsight, looks obvious :). Merged. ;-) |
See also http://stackoverflow.com/questions/25390720/va-arg-gives-something-strange-in-cygwin-x64 Program received signal SIGSEGV, Segmentation fault. (gdb) bt #0 0x00007ffff7b7c8f1 in __strlen_sse2_pminub () from /lib64/libc.so.6 #1 0x0000000000425d29 in asn1c_make_identifier (flags=flags@entry=(AMI_MASK_ONLY_SPACES | AMI_NODELIMITER), expr=expr@entry=0x0) at asn1c_misc.c:73 #2 0x00000000004263ec in asn1c_type_name (arg=arg@entry=0x7fffffffe000, expr=expr@entry=0x6757c0, _format=<optimized out>, _format@entry=TNF_INCLUDE) at asn1c_misc.c:268 #3 0x00000000004226fc in asn1c_lang_C_type_SIMPLE_TYPE (arg=arg@entry=0x7fffffffe000) at asn1c_C.c:1119 #4 0x00000000004232c1 in asn1c_lang_C_type_common_INTEGER (arg=0x7fffffffe000) at asn1c_C.c:251 #5 0x0000000000419c75 in asn1c_compile_expr (arg=arg@entry=0x7fffffffe000) at asn1compiler.c:100 #6 0x0000000000419f33 in asn1_compile (asn=asn@entry=0x671e10, datadir=datadir@entry=0x426730 "/home/vasko/usr/share/asn1c", flags=flags@entry=A1C_NO_C99, argc=2, optc=0, argv=0x7fffffffe268) at asn1compiler.c:44 #7 0x0000000000401f13 in main (ac=1, av=0x7fffffffe270) at asn1c.c:328
skeletons/standard-modules/ASN1C-UsefulInformationObjectClasses.asn1
tests/135-EXTERNAL-OK.asn and asn1c/tests/check-src/check-135.c