Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 254983 - poppler-0.10.3 fails on gfbsd undefined reference to `memalign'
Summary: poppler-0.10.3 fails on gfbsd undefined reference to `memalign'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-14 21:21 UTC by Dan Coats
Modified: 2009-06-18 12:25 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Coats 2009-01-14 21:21:34 UTC
poppler-0.10.3 fails on gfbsd undefined reference to `memalign'

Reproducible: Always

Steps to Reproduce:
1.emerge -1av =app-text/poppler-0.10.3
2.
3.

Actual Results:  
i686-gentoo-freebsd6.2-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I../poppler -I.. -I../utils -I../poppler   -I/usr/include/libxml2      -O2 -mtune=i686 -pipe -MT parseargs.o -MD -MP -MF .deps/parseargs.Tpo -c -o parseargs.o parseargs.c                                              
mv -f .deps/parseargs.Tpo .deps/parseargs.Po                                                                                                
/bin/bash ../libtool --tag=CXX   --mode=link i686-gentoo-freebsd6.2-g++  -Wall -Wno-write-strings -O2 -mtune=i686 -pipe   -o pdffonts pdffonts.o parseargs.o ../poppler/libpoppler.la  -lfontconfig -lexpat -lfreetype -lz   -lopenjpeg -lz                                             
mkdir .libs                                                                                                                                 
i686-gentoo-freebsd6.2-g++ -Wall -Wno-write-strings -O2 -mtune=i686 -pipe -o .libs/pdffonts pdffonts.o parseargs.o  ../poppler/.libs/libpoppler.so /usr/lib/libjpeg.so /usr/lib/libxml2.so -lpthread /usr/lib/libfontconfig.so /usr/lib/libiconv.so /usr/lib/libexpat.so /usr/lib/libfreetype.so -lopenjpeg -lz                                                                                                                     
../poppler/.libs/libpoppler.so: undefined reference to `memalign'                                                                           
collect2: ld returned 1 exit status                                                                                                         
gmake[2]: *** [pdffonts] Error 1                                                                                                            
gmake[2]: Leaving directory `/var/tmp/portage/app-text/poppler-0.10.3/work/poppler-0.10.3/utils'                                            
gmake[1]: *** [all-recursive] Error 1                                                                                                       
gmake[1]: Leaving directory `/var/tmp/portage/app-text/poppler-0.10.3/work/poppler-0.10.3'                                                  
gmake: *** [all] Error 2                                                                                                                    
 *                                                                                                                                          
 * ERROR: app-text/poppler-0.10.3 failed.                                                                                                   
 * Call stack:                                                                                                                              
 *               ebuild.sh, line   49:  Called src_compile                                                                                  
 *             environment, line 2336:  Called _eapi2_src_compile                                                                           
 *               ebuild.sh, line  643:  Called die                                                                                          
 * The specific snippet of code:                                                                                                            
 *              emake || die "emake failed"                                                                                                 
 *  The die message:                                                                                                                        
 *   emake failed

Expected Results:  
build and install

Portage 2.2_rc22 (default-bsd/fbsd/6.2/x86, gcc-4.2.4, freebsd-lib-6.2-r4, 6.2-RELEASE i386)
=================================================================                           
System uname: FreeBSD-6.2-RELEASE-i386-32bit                                                
Timestamp of tree: Wed, 14 Jan 2009 14:10:01 +0000                                          
app-shells/bash:     3.2_p48                                                                
dev-java/java-config: 1.3.7-r1, 2.1.6-r1                                                    
dev-lang/python:     2.4.4-r13, 2.5.2-r8                                                    
dev-python/pycrypto: 2.0.1-r6                                                               
dev-util/cmake:      2.6.2-r1                                                               
sys-apps/baselayout: 2.0.0                                                                  
sys-apps/openrc:     0.4.2                                                                  
sys-devel/autoconf:  2.13, 2.63                                                             
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                       
sys-devel/binutils:  2.19                                                                   
sys-devel/gcc-config: 1.4.0-r4                                                              
sys-devel/libtool:   2.2.6a                                                                 
virtual/os-headers:  6.2-r4                                                                 
ACCEPT_KEYWORDS="x86-fbsd ~x86-fbsd"                                                        
CBUILD="i686-gentoo-freebsd6.2"                                                             
CFLAGS="-O2 -mtune=i686 -pipe"                                                              
CHOST="i686-gentoo-freebsd6.2"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -mtune=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going"
FEATURES="collision-protect distlocks fixpackages parallel-fetch preserve-libs protect-owned sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ http://mirror.datapipe.net/gentoo http://open-systems.ufl.edu/mirrors/gentoo http://mirror.phy.olemiss.edu/mirror/gentoo"
LDFLAGS=""
LINGUAS="en"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac accessibility acl adns apache2 bash-completion bcmath bidi bindinst browserplugin bzip2 cairo calendar cli cracklib crypt cups curlwrappers dbus dedicated dga dlloader dri dts emacs emacs-w3 erandom ethereal expat fastcgi font ftp gd gdbm geoip glitz glut gnusetupgnutls gtk gtkhtml hal iconv imap immqt-bc inifile innodb java java5 javascript jp2 jpeg jpeg2k libcaca libclamv live lzo midi mime ming mmap motif mpi ncurses nls nsplugin nvidia oav objc oracle oscar oss pam pcre pdf perl php pic posix ppds python qt3support readline reflection samba session shared spl sqlite sse ssl symlink tcltktcpd tcpd test threads unicode urandom usb usepackagedmakefiles userlocales vcd vhosts x86-fbsd xcomposite xml xorg xpm xprint zeroconf zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="FreeBSD" INPUT_DEVICES="keyboard mouse" KERNEL="FreeBSD" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="BSD" VIDEO_CARDS="nv vesa"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Dan Coats 2009-01-14 21:22:46 UTC
approach might be to test for memalign() and if NOT present simply '#define memalign(a) malloc(a)"

have not been able to test yet.
Comment 2 Alexis Ballier gentoo-dev 2009-06-18 12:25:40 UTC
This is fixed by upgrading to FreeBSD 7.x