LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   libgdiplus build error (https://www.linuxquestions.org/questions/slackware-14/libgdiplus-build-error-4175425388/)

mlpa 09-03-2012 05:21 AM

libgdiplus build error
 
Hello, I am trying to compile libgdiplus and I am getting the following error:
Code:

/bin/sh ../libtool --tag=CC  --mode=link gcc  -g -O2 -pthread  -o testgdi testgdi.o ../src/libgdiplus.la -lpthread -lfontconfig
libtool: link: gcc -g -O2 -pthread -o .libs/testgdi testgdi.o  ../src/.libs/libgdiplus.so -lpthread /usr/lib64/libfontconfig.so -pthread -Wl,-rpath -Wl,/usr/lib64
/usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../../x86_64-slackware-linux/bin/ld: testgdi.o: undefined reference to symbol 'g_free'
/usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../../x86_64-slackware-linux/bin/ld: note: 'g_free' is defined in DSO /usr/lib64/libglib-2.0.so.0 so try adding it to the linker command line
/usr/lib64/libglib-2.0.so.0: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[2]: *** [testgdi] Error 1

I am using the correspondent slackbuild from Slackbuild.org.
I tried to build this in Slackware64-current.

Any ideas?

ponce 09-03-2012 05:49 AM

it needs a fix for the linker in -current: it has already been pushed to the master branch in slackbuilds.org's git

http://slackbuilds.org/cgit/slackbui...4bb2478686d040

mlpa 09-03-2012 08:02 AM

Thanks, it work perfectly :)


All times are GMT -5. The time now is 12:55 AM.