Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 74232 - dvi2tty-5.3.1 failed compiling
Summary: dvi2tty-5.3.1 failed compiling
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Text-Markup Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-12 13:17 UTC by José Mata Fernandes
Modified: 2004-12-16 04:08 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to dvi2tty source - some err malloc declaration (dvi2tty_malloc_type.patch,255 bytes, patch)
2004-12-12 14:04 UTC, José Mata Fernandes
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description José Mata Fernandes 2004-12-12 13:17:18 UTC
dvi2tty failed to compile on my system, doesnt look like a library dependency problem.

I'll try to look into de source, hopping to find something obvious.

Reproducible: Always
Steps to Reproduce:
1. emerge dvi2tty
2.
3.

Actual Results:  
gcc -Wall -O2   -c -o dvistuff.o dvistuff.c
dvi2tty.c:293: warning: return type of 'main' is not `int'
dvistuff.c: In function `initpage':
dvistuff.c:385: warning: suggest explicit braces to avoid ambiguous `else'
dvistuff.c:392: warning: suggest explicit braces to avoid ambiguous `else'
dvistuff.c: In function `findline':
dvistuff.c:839: warning: suggest explicit braces to avoid ambiguous `else'
dvistuff.c: In function `rule':
dvistuff.c:669: warning: 'saveh' might be used uninitialized in this function
gcc -Wall -O2   -c -o disdvi.o disdvi.c
disdvi.c:111: error: conflicting types for 'malloc'
disdvi.c:111: error: conflicting types for 'malloc'
disdvi.c:143: warning: return type of 'main' is not `int'
make: *** [disdvi.o] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: dev-tex/dvi2tty-5.3.1 failed.
!!! Function src_compile, Line 15, Exitcode 2
!!! (no error message)



Portage 2.0.51-r8 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0,
2.6.9-gentoo-r6 i686)
=================================================================
System uname: 2.6.9-gentoo-r6 i686 Intel(R) Pentium(R) 4 Mobile CPU 1.60GHz
Gentoo Base System version 1.6.7
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Nov 11 2004, 21:29:07)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.3
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.2-r7
virtual/os-headers:  2.6.8.1-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://mirrors1.netvisao.pt/gentoo/
ftp://ftp.rnl.ist.utl.pt/pub/gentoo/ http://darkstar.ist.utl.pt/pub/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acpi alsa apache2 avi berkdb cjk crypt cups divx4linux dvd encode esd fam
flac fortran gdbm gif gnome gpm gstreamer gtk gtk2 hal java jpeg junit libg++
lzo mad mmx mmx2 mpeg mppe-mppc msn ncurses network nls nojoystick nvidia
oggvorbis opengl pam pcmcia pdflib php png posix postgres quicktime readline
real rtc sdl slang sockets speex sse svga tcpd tetex theora tiff truetype
unicode v4l v4l2 x86 xanim xprint xv xvid xvmc zlib"
Comment 1 José Mata Fernandes 2004-12-12 14:04:31 UTC
Created attachment 45858 [details, diff]
patch to dvi2tty source - some err malloc declaration

Ok, fixed

I made a patch to the dvi2tty source, nothing big, just that gcc had been quite
more pedantic these days.
Comment 2 Nguyen Thai Ngoc Duy (RETIRED) gentoo-dev 2004-12-16 04:08:50 UTC
Fixed. Thanks.