Skip to content
This repository

Cannot build on Ubuntu: `.../libfontforge.so: undefined reference to ...` #118

Closed
zachgraves opened this Issue April 09, 2013 · 18 comments

4 participants

Zach Graves Lu Wang Ribhararnus Pracutian easytag
Zach Graves

Update

This is a bug of FontForge, not of pdf2htmlEX. Please leave a comment there such that FontForge may fix this bug soon.
For a temporary workaround, please read the Building Wiki page carefully.

Original bug report

running make against master results in:

Linking CXX executable pdf2htmlEX
/usr/local/lib/libfontforge.so: undefined reference to `_FVMenuSaveAs'
/usr/local/lib/libfontforge.so: undefined reference to `GWidgetAsk8'
/usr/local/lib/libfontforge.so: undefined reference to `MacServiceReadFDs'
collect2: error: ld returned 1 exit status
make[2]: *** [pdf2htmlEX] Error 1
make[1]: *** [CMakeFiles/pdf2htmlEX.dir/all] Error 2
make: *** [all] Error 2

I noticed you have an open bug against fontforge for the same error, and I figure having an issue logged here to track it would be useful.

Is there a better workaround for this other than just pulling a previous revision of fontforge?

Lu Wang
Owner

Yes, it's a bug of FontForge.
I guess you should probably make more comments there such that more attentions could be drawn.
Currently maybe you can use the 'tmp' branch of my Fontforge fork, but there is no guarantee...

Lu Wang coolwanglu closed this April 10, 2013
Zach Graves

Thanks. I'll comment over there in the morning.

(Sorry if this task was redundant; but in the meanwhile it might serve as useful information for anyone that is compiling fontforge from source before installing pdf2htmlEX and are running into this. I only happened upon your bug report through a search of _FVMenuSaveAs. sigh)

Ribhararnus Pracutian

same here :( how to fix this?

Lu Wang
Owner

@oknoorap As I've mentioned above, please use my fork of fontforge right now. I'll also update README later.

Ribhararnus Pracutian

okay, trying right now.. brb

Ribhararnus Pracutian

make[4]: Entering directory `/tmp/install/fontforge/fontforge'
  CCLD     fontforge
/tmp/install/fontforge/fontforge/.libs/libfontforge.so: undefined reference to `GWidgetAsk8'
/tmp/install/fontforge/fontforge/.libs/libfontforge.so: undefined reference to `_FVMenuSaveAs'
collect2: ld returned 1 exit status
make[4]: *** [fontforge] Error 1
make[4]: Leaving directory `/tmp/install/fontforge/fontforge'
make[3]: *** [install-recursive] Error 1
make[3]: Leaving directory `/tmp/install/fontforge/fontforge'
make[2]: *** [install] Error 2
make[2]: Leaving directory `/tmp/install/fontforge/fontforge'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/tmp/install/fontforge'
make: *** [install] Error 2

still error?

Lu Wang
Owner

Please post the result of git branch

Ribhararnus Pracutian

okay i missunderstood, cloned 'fontforge', not the tmp branch, now I cloned 'tmp'... i hope this is done...

Ribhararnus Pracutian
Making install in po
make[2]: Entering directory `/tmp/install/fontforge-tmp/po'
msgfmt --check --output-file=ca.mo ca.po
make[2]: msgfmt: Command not found
make[2]: *** [ca.mo] Error 127
make[2]: Leaving directory `/tmp/install/fontforge-tmp/po'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/tmp/install/fontforge-tmp'
make: *** [install] Error 2

Lu Wang
Owner

As mentioned in the message, you should install gettext which provides the msgfmt command

Ribhararnus Pracutian

okay how to check that make install was successful / no error

Lu Wang
Owner

Installation of what?

Btw, if you are using Ubuntu, you can install Fontforge from my PPA, which you can found in the 'Download' wiki page.

Ribhararnus Pracutian

okay done. your tmp branch is awesome..

Lu Wang
Owner

OK great :)

easytag
easytag commented May 10, 2013

I just built fontforge from your tmp branch, however when attempting to install pdf2htmlEX I get the following error

ubuntu% make
Scanning dependencies of target pdf2htmlEX
[ 3%] Building C object CMakeFiles/pdf2htmlEX.dir/src/util/ffw.c.o
Linking CXX executable pdf2htmlEX
/usr/local/lib/libfontforge.so: undefined reference to `GFileReadAll'
collect2: ld returned 1 exit status
make[2]: *** [pdf2htmlEX] Error 1
make[1]: *** [CMakeFiles/pdf2htmlEX.dir/all] Error 2
make: *** [all] Error 2

Lu Wang
Owner

@easytag please post the following things

output of git branch
the first few lines of the output of git log
the config.log file

easytag
easytag commented May 10, 2013
ubuntu% pwd
/home/amer/scratch/pdf2html/fontforge
ubuntu% git branch
  master
* tmp

commit e76e96c
Merge: 8d49c3c 278bd3b
Author: Lu Wang coolwanglu@gmail.com
Date: Fri Apr 26 15:39:06 2013 +0800

Merge branch 'tmp' of github.com:coolwanglu/fontforge into tmp

config.log

Lu Wang
Owner

@easytag seems that it's about collab
please try ./configure --without-libzmq --without-x --without-iconv --disable-python-scripting --disable-python-extension

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.