Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

cygwin, ubuntu fails to link dejagnu #2

Closed
rurban opened this issue May 6, 2018 · 1 comment
Closed

cygwin, ubuntu fails to link dejagnu #2

rurban opened this issue May 6, 2018 · 1 comment

Comments

@rurban
Copy link
Contributor

rurban commented May 6, 2018

dejagnu itself is probed fine.

[00:01:15] checking dejagnu.h usability... yes
[00:01:15] checking dejagnu.h presence... yes
[00:01:15] checking for dejagnu.h... yes

e.g. https://ci.appveyor.com/project/rurban/libredwg/build/0.4.25/job/cprh3drj2u830jnm#L2249

libtool: link: gcc -fno-strict-aliasing -Wall -Wextra -Wundef -Wwrite-strings -Wpointer-arith -Wmissing-declarations -Wredundant-decls -Wno-unused-variable -Wno-unused-parameter -Wno-unused-but-set-variable -Wno-missing-field-initializers -Wno-cast-align -Wformat=2 -Wformat-nonliteral -Wformat-security -Wsign-compare -Wstrict-aliasing -Wshadow -Winline -Wpacked -Wmissing-format-attribute -Wmissing-noreturn -Winit-self -Wmissing-include-dirs -Warray-bounds -Wreturn-type -Wswitch-enum -Wswitch-default -Wduplicated-cond -Wlogical-op -Wnull-dereference -Wdouble-promotion -Wnested-externs -Wmissing-prototypes -Wstrict-prototypes -Wdeclaration-after-statement -Wimplicit-function-declaration -Wold-style-definition -Wjump-misses-init -Wno-error=unused-variable -Wno-error=unused-parameter -Wno-error=unused-but-set-variable -Wno-error=missing-field-initializers -Wno-error=cast-align -g -o .libs/3dsolid.exe 3dsolid.o ../../src/.libs/libredwg.dll.a -L/usr/local/lib

3dsolid.o: In function `api_process':
/cygdrive/c/projects/libredwg/testsuite/testcases/3dsolid.c:26: undefined reference to `pass'
/cygdrive/c/projects/libredwg/testsuite/testcases/3dsolid.c:28: undefined reference to `fail'
/cygdrive/c/projects/libredwg/testsuite/testcases/3dsolid.c:34: undefined reference to `pass'
/cygdrive/c/projects/libredwg/testsuite/testcases/3dsolid.c:36: undefined reference to `fail'
...

See https://gcc.gnu.org/bugzilla//show_bug.cgi?id=63613
we need to add -fgnu89-inline

@rurban
Copy link
Contributor Author

rurban commented Jun 1, 2018

dejagnu comes with no lib. just the header. so the header file was not included. strange.

@rurban rurban changed the title cygwin fails to link dejagnu cygwin, ubuntu fails to link dejagnu Aug 1, 2018
rurban added a commit that referenced this issue Aug 1, 2018
probe for -fgnu89-inline and use it.
See https://gcc.gnu.org/bugzilla//show_bug.cgi?id=63613
Fixes [GH #2]
rurban added a commit that referenced this issue Aug 1, 2018
probe for -fgnu89-inline and use it.
See https://gcc.gnu.org/bugzilla//show_bug.cgi?id=63613
Fixes [GH #2]

Add dejagnu to cygwin and ubuntu/travis. msys2 dejagnu is not picked up,
macos not tested on travis.
@rurban rurban closed this as completed Aug 2, 2018
rurban added a commit that referenced this issue Dec 2, 2018
ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f782e1db8b5 bp 0x7fffb
a38ff70 sp 0x7fffba38ff50 T0)
The signal is caused by a READ memory access.
Hint: address points to the zero page.
 #0 0x7f782e1db8b4 in get_first_owned_object /home/rurban/Software/libredwg/src/dwg.c:748:34
 #1 0x5048fb in output_BLOCK_HEADER /home/rurban/Software/libredwg/programs/dwg2SVG.c:211:9
 #2 0x50453d in output_SVG /home/rurban/Software/libredwg/programs/dwg2SVG.c:252:3
 #3 0x50453d in main /home/rurban/Software/libredwg/programs/dwg2SVG.c:361
rurban added a commit that referenced this issue Dec 2, 2018
ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f782e1db8b5 bp 0x7fffb
a38ff70 sp 0x7fffba38ff50 T0)
The signal is caused by a READ memory access.
Hint: address points to the zero page.
 #0 0x7f782e1db8b4 in get_first_owned_object /home/rurban/Software/libredwg/src/dwg.c:748:34
 #1 0x5048fb in output_BLOCK_HEADER /home/rurban/Software/libredwg/programs/dwg2SVG.c:211:9
 #2 0x50453d in output_SVG /home/rurban/Software/libredwg/programs/dwg2SVG.c:252:3
 #3 0x50453d in main /home/rurban/Software/libredwg/programs/dwg2SVG.c:361
rurban added a commit that referenced this issue Dec 2, 2018
ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f782e1db8b5 bp 0x7fffb
a38ff70 sp 0x7fffba38ff50 T0)
The signal is caused by a READ memory access.
Hint: address points to the zero page.
 #0 0x7f782e1db8b4 in get_first_owned_object /home/rurban/Software/libredwg/src/dwg.c:748:34
 #1 0x5048fb in output_BLOCK_HEADER /home/rurban/Software/libredwg/programs/dwg2SVG.c:211:9
 #2 0x50453d in output_SVG /home/rurban/Software/libredwg/programs/dwg2SVG.c:252:3
 #3 0x50453d in main /home/rurban/Software/libredwg/programs/dwg2SVG.c:361
rurban added a commit that referenced this issue Dec 2, 2018
ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f782e1db8b5 bp 0x7fffb
a38ff70 sp 0x7fffba38ff50 T0)
The signal is caused by a READ memory access.
Hint: address points to the zero page.
 #0 0x7f782e1db8b4 in get_first_owned_object /home/rurban/Software/libredwg/src/dwg.c:748:34
 #1 0x5048fb in output_BLOCK_HEADER /home/rurban/Software/libredwg/programs/dwg2SVG.c:211:9
 #2 0x50453d in output_SVG /home/rurban/Software/libredwg/programs/dwg2SVG.c:252:3
 #3 0x50453d in main /home/rurban/Software/libredwg/programs/dwg2SVG.c:361
This was referenced Jan 16, 2020
rurban added a commit that referenced this issue Dec 18, 2020
eg. programs/dxf2dwg -y -v3 example_2000.dwg

ERROR: This is a DWG, not a DXF file: ../td/example_2000.dwg

READ ERROR 0x800 ../td/example_2000.dwg

=================================================================
==1678362==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 21 byte(s) in 1 object(s) allocated from:
    #0 0x7f55fa6e7667 in __interceptor_malloc (/lib64/libasan.so.6+0xb0667)
    #1 0x402eba in suffix ../../programs/suffix.inc:53
    #2 0x4043d7 in main ../../programs/dxf2dwg.c:299
rurban added a commit that referenced this issue Dec 18, 2020
eg. programs/dxf2dwg -y -v3 example_2000.dwg

ERROR: This is a DWG, not a DXF file: ../td/example_2000.dwg

READ ERROR 0x800 ../td/example_2000.dwg

=================================================================
==1678362==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 21 byte(s) in 1 object(s) allocated from:
    #0 0x7f55fa6e7667 in __interceptor_malloc (/lib64/libasan.so.6+0xb0667)
    #1 0x402eba in suffix ../../programs/suffix.inc:53
    #2 0x4043d7 in main ../../programs/dxf2dwg.c:299
rurban added a commit that referenced this issue Dec 18, 2020
eg. programs/dxf2dwg -y -v3 example_2000.dwg

ERROR: This is a DWG, not a DXF file: ../td/example_2000.dwg

READ ERROR 0x800 ../td/example_2000.dwg

=================================================================
==1678362==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 21 byte(s) in 1 object(s) allocated from:
    #0 0x7f55fa6e7667 in __interceptor_malloc (/lib64/libasan.so.6+0xb0667)
    #1 0x402eba in suffix ../../programs/suffix.inc:53
    #2 0x4043d7 in main ../../programs/dxf2dwg.c:299
rurban added a commit that referenced this issue Dec 19, 2020
eg. programs/dxf2dwg -y -v3 example_2000.dwg

ERROR: This is a DWG, not a DXF file: ../td/example_2000.dwg

READ ERROR 0x800 ../td/example_2000.dwg

=================================================================
==1678362==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 21 byte(s) in 1 object(s) allocated from:
    #0 0x7f55fa6e7667 in __interceptor_malloc (/lib64/libasan.so.6+0xb0667)
    #1 0x402eba in suffix ../../programs/suffix.inc:53
    #2 0x4043d7 in main ../../programs/dxf2dwg.c:299
rurban added a commit that referenced this issue May 8, 2022
Multiplication result converted to larger type with possible arithmetic
overflow. codeql #2, #3, #5
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant