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
testing against a installed GD library fails #652
Comments
|
Hi @fila43, thanks for your feedback. Here is your patch: I wonder why you set And could you please offer your build environment information, such as cpu arch and os type? |
|
I was wondering how to enable testing against the already installed library. And without setting up BUILD_SHARED_LIBS to TRUE build fails because the build of examples fails on missing library during linking. Build was made on Fedora with hw |
|
I think we should drop this and use binding or other projects tests suites to valid BC. Thoughts? |
|
I don't think running source tests against an installed library is that common. I'm not sure I've really seen it done before. if it's easy to pull off, I'm not against it, but the proposed patch won't cut it. so I'm ok with just letting this feature request go. not sure what you mean by "BC". |
|
Backwards compatibility, for example 2.3.2 vs 2.3.3 APIs and ABIs BC.
…On Fri, Sep 3, 2021, 12:10 AM Mike Frysinger ***@***.***> wrote:
I don't think running source tests against an installed library is that
common. I'm not sure I've really seen it done before. if it's easy to pull
off, I'm not against it, but the proposed patch won't cut it.
so I'm ok with just letting this feature request go.
not sure what you mean by "BC".
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#652 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACE6KCLDGWKD4AK6XDJOS3T76VXRANCNFSM4PZZCQ2Q>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
|
we should integrate https://lvc.github.io/abi-compliance-checker/ for that kind of coverage. we should be able to get it into our CI to make sure it doesn't break. |
Hi,
I was trying to test installed GD 2.3.0 and after running make it ended up with :
Building C object tests/gdtest/CMakeFiles/gdTest.dir/gdtest.c.o
/root/rpmbuild/BUILD/libgd-2.3.0/tests/gdtest/gdtest.c: In function ‘_clean_dir’:
/root/rpmbuild/BUILD/libgd-2.3.0/tests/gdtest/gdtest.c:82:2: error: unknown type name ‘DIR’
82 | DIR *d;
| ^~~
after fix missing types I got:
[ 98%] Linking C executable ../Bin/gif
/usr/bin/ld: CMakeFiles/gif.dir/gif.c.o: in function
main': /tmp/libgd-gd-2.3.0/examples/gif.c:14: undefined reference togdImageCreate'/usr/bin/ld: /tmp/libgd-gd-2.3.0/examples/gif.c:26: undefined reference to
gdImageColorAllocate' /usr/bin/ld: /tmp/libgd-gd-2.3.0/examples/gif.c:27: undefined reference togdImageGifAnimBegin'/usr/bin/ld: /tmp/libgd-gd-2.3.0/examples/gif.c:31: undefined reference to
gdImageCreate' /usr/bin/ld: /tmp/libgd-gd-2.3.0/examples/gif.c:36: undefined reference togdImageColorAllocate'/usr/bin/ld: /tmp/libgd-gd-2.3.0/examples/gif.c:37: undefined reference to
gdImageColorAllocate' /usr/bin/ld: /tmp/libgd-gd-2.3.0/examples/gif.c:39: undefined reference togdImageFilledRectangle'/usr/bin/ld: /tmp/libgd-gd-2.3.0/examples/gif.c:40: undefined reference to
gdImageGifAnimAdd' /usr/bin/ld: /tmp/libgd-gd-2.3.0/examples/gif.c:43: undefined reference togdImageDestroy'/usr/bin/ld: /tmp/libgd-gd-2.3.0/examples/gif.c:48: undefined reference to `gdImageGifAnimEnd'
collect2: error: ld returned 1 exit status
I wrote a simple patch which works for me.
The text was updated successfully, but these errors were encountered: