Discussion:
[Dvipng] undefined reference to `xbasename'
Gaye Abdoulaye
2007-06-23 10:40:53 UTC
Permalink
Hello list,
I try to install dvipng under freebsd6.2-STABLE.
The configure seems to work fine:

*************** Configuration summary for dvipng
1.9:**************************

The -d (debug) switch is enabled: yes
Your gd is new enough (>=2.0) to enable
the --truecolor switch, full alpha
transparency, proper rescaling of
included bitmaps, and jpeg inclusion: yes
Your gd is new enough (>=2.0.12) to
enable transparent backgrounds for EPS
inclusion and the -z (compression)
switch: yes
Your gd is new enough (>=2.0.28) to
enable gif inclusion and output
(dvigif): yes
FreeType font rendering available: yes
Support for subfonts (CJK-LaTeX): yes
T1lib font rendering available: no
****************************************************************************

But when I try to compile with gmake:

****************************error with
gmake********************************************
dvi.o(.text+0x663): In function `DVIOpen':
/usr/home/walsimou/install/dns.walsimou.com/latex/dvipng-1.9/dvi.c:119:
undefined reference to `xbasename'
dvi.o(.text+0x68b):/usr/home/walsimou/install/dns.walsimou.com/latex/dvipng-1.9/dvi.c:125:
undefined reference to `xbasename'
misc.o(.text+0x3a6): In function `DecodeArgs':
/usr/home/walsimou/install/dns.walsimou.com/latex/dvipng-1.9/misc.c:64:
undefined reference to `xbasename'
misc.o(.text+0x16aa):/usr/home/walsimou/install/dns.walsimou.com/latex/dvipng-1.9/misc.c:483:
undefined reference to `xbasename'
misc.o(.text+0x16ca):/usr/home/walsimou/install/dns.walsimou.com/latex/dvipng-1.9/misc.c:484:
undefined reference to `xbasename'
gmake: *** [dvipng] Error 1
***************************************************************************************************
xorg is not installed in this box (too much for a web server).

Thanks a lot for any suggestion and help !!!
Jan-Åke Larsson
2007-06-25 06:32:34 UTC
Permalink
Post by Gaye Abdoulaye
undefined reference to `xbasename'
xbasename is defined in kpathsea, the TeX path-searching library. What
version are you using?

/JÅ
--
Death before dishonor. Nothing before coffee!
Gaye Abdoulaye Walsimou
2007-06-25 08:26:40 UTC
Permalink
Post by Jan-Åke Larsson
Post by Gaye Abdoulaye
undefined reference to `xbasename'
xbasename is defined in kpathsea, the TeX path-searching library. What
version are you using?
/JÅ
Thank you for your answer!
I use tex-3.14159_3 from FreeBSD port :
http://www.freebsd.org/cgi/ports.cgi?query=^tex-3.14159_3&stype=name
and
latex
http://www.freebsd.org/cgi/ports.cgi?query=^latex2e-2003.12_1&stype=name
I use configure script like this:
./configure CPPFLAGS="-I/usr/include -I/usr/local/include
-I/usr/local/include/kpathsea" LDFLAGS="-L/usr/lib -L/usr/local/lib"
because this one did not work:
./configure CPPFLAGS="-I/usr/include -I/usr/local/include
-I/usr/local/include" LDFLAGS="-L/usr/lib -L/usr/local/lib"

but I have kpathsea in include dir
[***@dns ~]$ ls /usr/local/include/kpathsea/
absolute.h c-memstr.h c-std.h debug.h
kpathsea.h progname.h tex-hush.h xopendir.h
c-auto.h c-minmax.h c-unistd.h default.h
lib.h readable.h tex-make.h xstat.h
c-ctype.h c-namemx.h c-vararg.h expand.h
line.h str-list.h tilde.h
c-dir.h c-pathch.h cnf.h fn.h
magstep.h str-llist.h truncate.h
c-errno.h c-pathmx.h concatn.h fontmap.h
paths.h systypes.h types.h
c-fopen.h c-proto.h config.h getopt.h
pathsearch.h tex-file.h variable.h
c-limits.h c-stat.h db.h hash.h
proginit.h tex-glyph.h win32lib.h


walsimou
Jan-Åke Larsson
2007-06-25 10:02:25 UTC
Permalink
Post by Gaye Abdoulaye Walsimou
./configure CPPFLAGS="-I/usr/include -I/usr/local/include
-I/usr/local/include/kpathsea" LDFLAGS="-L/usr/lib -L/usr/local/lib"
./configure CPPFLAGS="-I/usr/include -I/usr/local/include
-I/usr/local/include" LDFLAGS="-L/usr/lib -L/usr/local/lib"
Okay. The error you get indicates that it is the linker (ld) that fails.
You might want to do

./configure CPPFLAGS="-I/usr/include -I/usr/local/include
-I/usr/local/include/kpathsea" LDFLAGS="-L/usr/lib -L/usr/local/lib
-L/usr/local/lib/kpathsea"

/JÅ
Gaye Abdoulaye Walsimou
2007-06-25 14:26:10 UTC
Permalink
Post by Jan-Åke Larsson
Post by Gaye Abdoulaye Walsimou
./configure CPPFLAGS="-I/usr/include -I/usr/local/include
-I/usr/local/include/kpathsea" LDFLAGS="-L/usr/lib -L/usr/local/lib"
./configure CPPFLAGS="-I/usr/include -I/usr/local/include
-I/usr/local/include" LDFLAGS="-L/usr/lib -L/usr/local/lib"
Okay. The error you get indicates that it is the linker (ld) that
fails. You might want to do
./configure CPPFLAGS="-I/usr/include -I/usr/local/include
-I/usr/local/include/kpathsea" LDFLAGS="-L/usr/lib -L/usr/local/lib
-L/usr/local/lib/kpathsea"
/JÅ
I have not /usr/local/lib/kpathsea dir, libs are installed in /usr/local/lib
thanks
Jan-Åke Larsson
2007-06-25 14:50:28 UTC
Permalink
Post by Gaye Abdoulaye Walsimou
I have not /usr/local/lib/kpathsea dir, libs are installed in
/usr/local/lib
And you're sure there is a libkpathsea.* library there? In that case,
what version is it?

(strings /usr/local/lib/libkpathsea.* | grep -i "kpathsea version")

Does it contain xbasename?

(strings /usr/local/lib/libkpathsea.* | grep -i "xbasename")

Have you installed it yourself? Did you rerun ldconfig?

/JÅ
Gaye Abdoulaye Walsimou
2007-06-25 15:05:48 UTC
Permalink
Post by Jan-Åke Larsson
Post by Gaye Abdoulaye Walsimou
I have not /usr/local/lib/kpathsea dir, libs are installed in
/usr/local/lib
And you're sure there is a libkpathsea.* library there? In that case,
what version is it?
(strings /usr/local/lib/libkpathsea.* | grep -i "kpathsea version")
Does it contain xbasename?
(strings /usr/local/lib/libkpathsea.* | grep -i "xbasename")
Have you installed it yourself? Did you rerun ldconfig?
/JÅ
[***@dns ~]$ strings /usr/local/lib/libkpathsea.* | grep -i
"kpathsea version"
kpathsea version 3.2

and

strings /usr/local/lib/libkpathsea.* | grep -i "xbasename"

give nothing

I have installed from FreeBSD port
http://www.freebsd.org/cgi/ports.cgi?query=^tex-3.14159_3&stype=name
I am reinstalling all to see if it will be fixed

thanks
Gaye Abdoulaye Walsimou
2007-06-25 16:06:29 UTC
Permalink
Post by Jan-Åke Larsson
And you're sure there is a libkpathsea.* library there? In that case,
what version is it?
(strings /usr/local/lib/libkpathsea.* | grep -i "kpathsea version")
Does it contain xbasename?
(strings /usr/local/lib/libkpathsea.* | grep -i "xbasename")
Have you installed it yourself? Did you rerun ldconfig?
/JÅ
Finally i've installed a port (dvipsk-tetex) of FreeBSD which include
dvipng.
Thanks a lot for your help

Loading...