Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Trouble Installing pcmanfm [SOLVED]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
soulrain
n00b
n00b


Joined: 27 Dec 2013
Posts: 21

PostPosted: Fri Dec 27, 2013 11:47 pm    Post subject: Trouble Installing pcmanfm [SOLVED] Reply with quote

Gentoo noob (literally first day) but liking it so far so I apologize in advance if I am missing something obvious.

The rest of the problem the fantastic Gentoo Wiki and Google have been able to solve but I can't seem to figure out why pcmanfm keeps failing to compile

Failure output:

Code:

* ERROR: x11-misc/pcmanfm-0.9.10::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=x11-misc/pcmanfm-0.9.10::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=x11-misc/pcmanfm-0.9.10::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/x11-misc/pcmanfm-0.9.10/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-misc/pcmanfm-0.9.10/temp/environment'.
 * Working directory: '/var/tmp/portage/x11-misc/pcmanfm-0.9.10/work/pcmanfm-0.9.10'
 * S: '/var/tmp/portage/x11-misc/pcmanfm-0.9.10/work/pcmanfm-0.9.10'

>>> Failed to emerge x11-misc/pcmanfm-0.9.10, Log file:

>>>  '/var/tmp/portage/x11-misc/pcmanfm-0.9.10/temp/build.log'




`emerge --info '=x11-misc/pcmanfm-0.9.10::gentoo'`:

Code:

Portage 2.2.7 (default/linux/amd64/13.0/desktop, gcc-4.7.3, glibc-2.16.0, 3.10.17-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.10.17-gentoo-x86_64-AMD_FX-tm-8350_Eight-Core_Processor-with-gentoo-2.2
KiB Mem:    16345788 total,  15341280 free
KiB Swap:     524284 total,    524284 free
Timestamp of tree: Fri, 27 Dec 2013 08:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.5-r3, 3.3.2-r2
dev-util/cmake:           2.8.11.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
USE="X a52 aac acl acpi alsa amd64 berkdb bindist bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gpm gtk iconv ipv6 jpeg lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds qt3support qt4 readline sdl session spell sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xcb xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON



`emerge -pqv '=x11-misc/pcmanfm-0.9.10::gentoo'`:

Code:

[ebuild  N    ] x11-misc/pcmanfm-0.9.10  USE="-debug"

 * IMPORTANT: 7 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.





The last three items:
* The complete build log is located at '/var/tmp/portage/x11-misc/pcmanfm-0.9.10/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/x11-misc/pcmanfm-0.9.10/temp/environment'.
* Working directory: '/var/tmp/portage/x11-misc/pcmanfm-0.9.10/work/pcmanfm-0.9.10'
are very long not sure if they are necessary but if they are can post them.

Once again first day at Gentoo (been a long one). Thanks for the assistance in advance and let me know if additional information is needed.


Last edited by soulrain on Sun Dec 29, 2013 5:31 pm; edited 1 time in total
Back to top
View user's profile Send private message
dwbowyer
Apprentice
Apprentice


Joined: 18 Apr 2008
Posts: 155

PostPosted: Sat Dec 28, 2013 8:05 am    Post subject: Reply with quote

post
Code:
tail -50 var/tmp/portage/x11-misc/pcmanfm-0.9.10/temp/build.log

Might need more lines but that ought to include the errors that occured.
Back to top
View user's profile Send private message
soulrain
n00b
n00b


Joined: 27 Dec 2013
Posts: 21

PostPosted: Sat Dec 28, 2013 3:29 pm    Post subject: Reply with quote

dwbowyer wrote:
post
Code:
tail -50 var/tmp/portage/x11-misc/pcmanfm-0.9.10/temp/build.log

Might need more lines but that ought to include the errors that occured.


tail -50 var/tmp/portage/x11-misc/pcmanfm-0.9.10/temp/build.log:

Code:

desktop.c:1942:38: warning: initialization from incompatible pointer type [enabled by default]
desktop.c: In function ‘reload_icons’:
desktop.c:1961:30: warning: initialization from incompatible pointer type [enabled by default]
desktop.c: In function ‘on_select_all’:
desktop.c:1999:30: warning: initialization from incompatible pointer type [enabled by default]
desktop.c: In function ‘on_invert_select’:
desktop.c:2009:30: warning: initialization from incompatible pointer type [enabled by default]
desktop.c: In function ‘on_snap_to_grid’:
desktop.c:2127:15: warning: variable ‘bottom’ set but not used [-Wunused-but-set-variable]
desktop.c: In function ‘is_atom_in_targets’:
desktop.c:2299:17: warning: unused variable ‘atom’ [-Wunused-variable]
desktop.c: In function ‘move_item’:
desktop.c:2404:12: warning: unused variable ‘l’ [-Wunused-variable]
desktop.c: In function ‘on_drag_drop’:
desktop.c:2450:29: warning: unused variable ‘pos’ [-Wunused-variable]
desktop.c: In function ‘on_drag_data_received’:
desktop.c:2517:14: warning: unused variable ‘ret’ [-Wunused-variable]
desktop.c:2516:29: warning: unused variable ‘pos’ [-Wunused-variable]
desktop.c:2515:18: warning: unused variable ‘dest_tp’ [-Wunused-variable]
desktop.c: In function ‘on_drag_data_get’:
desktop.c:2535:16: warning: unused variable ‘desktop’ [-Wunused-variable]
desktop.c: In function ‘fm_desktop_class_init’:
desktop.c:2570:22: warning: assignment from incompatible pointer type [enabled by default]
desktop.c:2575:20: warning: assignment from incompatible pointer type [enabled by default]
desktop.c:2577:5: warning: passing argument 2 of ‘XInternAtoms’ from incompatible pointer type [enabled by default]
In file included from /usr/include/gtk-2.0/gdk/gdkx.h:32:0,
                 from desktop.c:28:
/usr/include/X11/Xlib.h:1553:15: note: expected ‘char **’ but argument is of type ‘const char **’
/bin/sh ../libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc -pthread -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -O2 -pipe -march=native  -Wl,-O1 -Wl,--as-needed -o xml-purge xml_purge-xml-purge.o -lgthread-2.0 -pthread -lrt -lgio-2.0 -lgobject-2.0 -lglib-2.0 
libtool: link: x86_64-pc-linux-gnu-gcc -pthread -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -O2 -pipe -march=native -Wl,-O1 -o xml-purge xml_purge-xml-purge.o -pthread  -Wl,--as-needed -lgthread-2.0 -lrt -lgio-2.0 -lgobject-2.0 -lglib-2.0 -pthread
/bin/sh ../libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng15 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2  -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -pthread -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -pthread -I/usr/include/libfm -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng15 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/libfm -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -I/usr/include/menu-cache -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -DG_DISABLE_CAST_CHECKS -Wall -Werror-implicit-function-declaration  -O2 -pipe -march=native  -Wl,-O1 -Wl,--as-needed -o pcmanfm pcmanfm-pcmanfm.o pcmanfm-app-config.o pcmanfm-main-win.o pcmanfm-tab-page.o pcmanfm-desktop.o pcmanfm-volume-manager.o pcmanfm-pref.o pcmanfm-utils.o pcmanfm-single-inst.o  -lX11  -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfreetype -lfontconfig  -lpango-1.0 -lgobject-2.0 -lglib-2.0  -lglib-2.0  -lgthread-2.0 -pthread -lrt -lgio-2.0 -lgobject-2.0 -lglib-2.0  -Wl,--export-dynamic -lgmodule-2.0 -pthread -lrt -lglib-2.0  -lfm-gtk -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lpangoft2-1.0 -lpango-1.0 -lfreetype -lfontconfig -lfm -lgthread-2.0 -pthread -lrt -lgio-2.0 -lgobject-2.0 -lglib-2.0  -lmenu-cache -lglib-2.0   
libtool: link: x86_64-pc-linux-gnu-gcc -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng15 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/libfm -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng15 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/libfm -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/menu-cache -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DG_DISABLE_CAST_CHECKS -Wall -Werror-implicit-function-declaration -O2 -pipe -march=native -Wl,-O1 -o pcmanfm pcmanfm-pcmanfm.o pcmanfm-app-config.o pcmanfm-main-win.o pcmanfm-tab-page.o pcmanfm-desktop.o pcmanfm-volume-manager.o pcmanfm-pref.o pcmanfm-utils.o pcmanfm-single-inst.o -pthread -Wl,--export-dynamic -pthread -pthread  -Wl,--as-needed -lX11 -lgmodule-2.0 -lfm-gtk -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lpangoft2-1.0 -lpango-1.0 -lfreetype -lfontconfig -lfm -lgthread-2.0 -lrt /usr/lib64/libmenu-cache.so -lgio-2.0 -lgobject-2.0 -lglib-2.0 -pthread
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: pcmanfm-desktop.o: undefined reference to symbol 'floor@@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: note: 'floor@@GLIBC_2.2.5' is defined in DSO /lib64/libm.so.6 so try adding it to the linker command line
/lib64/libm.so.6: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[2]: *** [pcmanfm] Error 1
make[2]: Leaving directory `/var/tmp/portage/x11-misc/pcmanfm-0.9.10/work/pcmanfm-0.9.10/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/x11-misc/pcmanfm-0.9.10/work/pcmanfm-0.9.10'
make: *** [all] Error 2
 * ERROR: x11-misc/pcmanfm-0.9.10::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=x11-misc/pcmanfm-0.9.10::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=x11-misc/pcmanfm-0.9.10::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/x11-misc/pcmanfm-0.9.10/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-misc/pcmanfm-0.9.10/temp/environment'.
 * Working directory: '/var/tmp/portage/x11-misc/pcmanfm-0.9.10/work/pcmanfm-0.9.10'
 * S: '/var/tmp/portage/x11-misc/pcmanfm-0.9.10/work/pcmanfm-0.9.10'


So there is a pointer error somewhere in desktop.c? I know some c but not sure what to do in this context.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10589
Location: Somewhere over Atlanta, Georgia

PostPosted: Sat Dec 28, 2013 3:43 pm    Post subject: Reply with quote

Doesn't appear to be a compile error as the problem doesn't occur until the link phase. That said, the build fails the same way here. You should file a bug.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
soulrain
n00b
n00b


Joined: 27 Dec 2013
Posts: 21

PostPosted: Sat Dec 28, 2013 5:06 pm    Post subject: Reply with quote

John R. Graham wrote:
Doesn't appear to be a compile error as the problem doesn't occur until the link phase. That said, the build fails the same way here. You should file a bug.

- John


Will do, my first one, thank everyone for the assistance.

Is there an alternative to pcmanfm that is lightweight/no frills that you guys would recommend?
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6098
Location: Dallas area

PostPosted: Sat Dec 28, 2013 6:42 pm    Post subject: Reply with quote

It needs "-lm" added to the LDFLAGS for it to compile, but that version is getting old.

Probably better to add "~" for pcmanfm/libfm and compile the latest.
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
soulrain
n00b
n00b


Joined: 27 Dec 2013
Posts: 21

PostPosted: Sat Dec 28, 2013 10:08 pm    Post subject: Reply with quote

Anon-E-moose wrote:
It needs "-lm" added to the LDFLAGS for it to compile, but that version is getting old.

Probably better to add "~" for pcmanfm/libfm and compile the latest.


So I add this to package.use?:

Code:

pcmanfm/libfm ~


Sorry if silly question second day using gentoo so USE flags still getting used to.

Thanks for the help!

(*also am researching your post now to see if I am understanding you improperly if I am I apologize*)


EDIT:

just reading about LDFLAGS so made package.ldflags:

Code:

pacman/libfm -lm



Tried both suggested ways (though perhaps not the proper way) and pcmanfm still does not compile properly.
Back to top
View user's profile Send private message
nlsa8z6zoz7lyih3ap
Guru
Guru


Joined: 25 Sep 2007
Posts: 388
Location: Canada

PostPosted: Sun Dec 29, 2013 1:37 am    Post subject: Reply with quote

Here is how I did it to make it compile.

(1) create "/etc/portage/env/templd.conf" consisting of the line
Code:
LDFLAGS="$LDFLAGS -lm"

Added in edit:In the original version of this post I incorrectly called this file "/etc/env/templd.conf"



(2) Add the folowing line to /etc/portage/package.env
Code:
x11-misc/pcmanfm   templd.conf


After this x11-misc/pcmanfm-0.9.10 compiles for me, which it did not before.
do?
PS
Quote:
It needs "-lm" added to the LDFLAGS for it to compile, but that version is getting old.

What does "-lm" do?


Last edited by nlsa8z6zoz7lyih3ap on Sun Dec 29, 2013 4:48 pm; edited 1 time in total
Back to top
View user's profile Send private message
soulrain
n00b
n00b


Joined: 27 Dec 2013
Posts: 21

PostPosted: Sun Dec 29, 2013 1:46 am    Post subject: Reply with quote

nlsa8z6zoz7lyih3ap wrote:
Here is how I did it to make it compile.

(1) create "/etc/env/templd.conf" consisting of the line
Code:
LDFLAGS="$LDFLAGS -lm"


(2) Add the folowing line to /etc/portage/package.env
Code:
x11-misc/pcmanfm   templd.conf


After this x11-misc/pcmanfm-0.9.10 compiles for me, which it did not before.
do?
PS
Quote:
It needs "-lm" added to the LDFLAGS for it to compile, but that version is getting old.

What does "-lm" do?


Thanks nlsa8z6zoz7lyih3ap I am on it! :D
Back to top
View user's profile Send private message
soulrain
n00b
n00b


Joined: 27 Dec 2013
Posts: 21

PostPosted: Sun Dec 29, 2013 5:58 am    Post subject: Reply with quote

nlsa8z6zoz7lyih3ap wrote:
Here is how I did it to make it compile.

(1) create "/etc/env/templd.conf" consisting of the line
Code:
LDFLAGS="$LDFLAGS -lm"


(2) Add the folowing line to /etc/portage/package.env
Code:
x11-misc/pcmanfm   templd.conf


After this x11-misc/pcmanfm-0.9.10 compiles for me, which it did not before.
do?
PS
Quote:
It needs "-lm" added to the LDFLAGS for it to compile, but that version is getting old.

What does "-lm" do?


(1) I had to create env as only env.d existed and then make the templd.conf file in it.
(2) I had to make the file package.env

Pretty sure I did not make any typos yet I am still getting the same error.

Thanks for the assistance I am gonna check for typos I may have made again.

EDIT: spelling is correct also tried:

Code:

export LDFLAGS="$LDFLAGS -lm"
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6098
Location: Dallas area

PostPosted: Sun Dec 29, 2013 11:11 am    Post subject: Reply with quote

nlsa8z6zoz7lyih3ap wrote:
What does "-lm" do?


add "libm" to the linking section, which is where
Code:
floor@@GLIBC_2.2.5

is defined, or at least where it was in earlier glibc not sure if it's still there in glibc-2.16.0

As I said, that pcmanfm that you're trying to compile is from mid 2012.
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
soulrain
n00b
n00b


Joined: 27 Dec 2013
Posts: 21

PostPosted: Sun Dec 29, 2013 4:18 pm    Post subject: Reply with quote

Anon-E-moose wrote:
nlsa8z6zoz7lyih3ap wrote:
What does "-lm" do?


add "libm" to the linking section, which is where
Code:
floor@@GLIBC_2.2.5

is defined, or at least where it was in earlier glibc not sure if it's still there in glibc-2.16.0

As I said, that pcmanfm that you're trying to compile is from mid 2012.


How can I make sure emerge pulls the latest pcmanfm and not the one from mid 2012?

Thanks for your replies definitely learning a lot :D
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10589
Location: Somewhere over Atlanta, Georgia

PostPosted: Sun Dec 29, 2013 4:35 pm    Post subject: Reply with quote

See the Handbook, Chapter 3.b. Mixing Stable with Testing. You are getting the latest "stable" package. The only later packages are in the "testing" branch of the Portage tree, or else are still "hard masked" (known to fail in some way). What you want to do is to "keyword" the testing branch version of pcmanfm.

You can see what versions are available with equery (part of app-portage/gentoolkit):
Code:
~ # equery list -p pcmanfm
 * Searching for pcmanfm ...
[-P-] [  ] x11-misc/pcmanfm-0.9.10:0
[-P-] [ ~] x11-misc/pcmanfm-1.1.2:0
[-P-] [ -] x11-misc/pcmanfm-9999:0
Note the "mask status" field in the output: ' ' for stable, '~' for testing, '-' for arch masked. The man page contains a full explanation.

Note that the stable version is still exhibiting a compile-time bug and should be reported.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.


Last edited by John R. Graham on Sun Dec 29, 2013 4:41 pm; edited 1 time in total
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6098
Location: Dallas area

PostPosted: Sun Dec 29, 2013 4:37 pm    Post subject: Reply with quote

soulrain wrote:
How can I make sure emerge pulls the latest pcmanfm and not the one from mid 2012?

Thanks for your replies definitely learning a lot :D


Add
Code:
x11-libs/libfm
x11-misc/pcmanfm


to /etc/portage/package.keywords (if a file) or /etc/portage/package.keywords/<somefile> (if package.keywords is a directory)

then do "emerge -pv pcmanfm libfm" and it should show
Code:
x11-libs/libfm-1.1.4
x11-misc/pcmanfm-1.1.2

wanting to emerge

Then emerge them
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
nlsa8z6zoz7lyih3ap
Guru
Guru


Joined: 25 Sep 2007
Posts: 388
Location: Canada

PostPosted: Sun Dec 29, 2013 4:41 pm    Post subject: Reply with quote

Quote:
(1) I had to create env as only env.d existed and then make the templd.conf file in it.
(2) I had to make the file package.env


Sorry, I gave you the wrong path to one of the files. They both should be in /etc/portage, not in /etc. You may have to create them.

The corrected file is /etc/portage/package.env . My apologies on that. I too have trouble copying things correctly. :cry:


Quote:
add "libm" to the linking section

Thanks
Back to top
View user's profile Send private message
soulrain
n00b
n00b


Joined: 27 Dec 2013
Posts: 21

PostPosted: Sun Dec 29, 2013 4:47 pm    Post subject: Reply with quote

nlsa8z6zoz7lyih3ap wrote:
Quote:
(1) I had to create env as only env.d existed and then make the templd.conf file in it.
(2) I had to make the file package.env


Sorry, I gave you the wrong path to one of the files. They both should be in /etc/portage, not in /etc. You may have to create them.

The corrected file is /etc/portage/package.env . My apologies on that. I too have trouble copying things correctly. :cry:


Quote:
add "libm" to the linking section

Thanks


Np man so do I! Will test it out now :D

Thanks so much again!
Back to top
View user's profile Send private message
soulrain
n00b
n00b


Joined: 27 Dec 2013
Posts: 21

PostPosted: Sun Dec 29, 2013 5:07 pm    Post subject: Reply with quote

nlsa8z6zoz7lyih3ap wrote:
Quote:
(1) I had to create env as only env.d existed and then make the templd.conf file in it.
(2) I had to make the file package.env


Sorry, I gave you the wrong path to one of the files. They both should be in /etc/portage, not in /etc. You may have to create them.

The corrected file is /etc/portage/package.env . My apologies on that. I too have trouble copying things correctly. :cry:


Quote:
add "libm" to the linking section

Thanks



Somewhat confused now reading over the post.

So this is the way I understand it:

(1) /etc/portage/package.env contains:

Code:

x11-misc/pcmanfm   templd.conf


(2) /etc/portage/templd.conf contains:

Code:

LDFLAGS="$LDFLAGS -lm"


Just somewhat confused by the wording of your last post. Thanks again for all the assistance!
Back to top
View user's profile Send private message
nlsa8z6zoz7lyih3ap
Guru
Guru


Joined: 25 Sep 2007
Posts: 388
Location: Canada

PostPosted: Sun Dec 29, 2013 5:11 pm    Post subject: Reply with quote

Quote:
So this is the way I understand it:

(1) /etc/portage/package.env contains:

Code:

x11-misc/pcmanfm templd.conf


(2) /etc/portage/templd.conf contains:

Code:

LDFLAGS="$LDFLAGS -lm"


That is correct. Hope that this helps.
Back to top
View user's profile Send private message
soulrain
n00b
n00b


Joined: 27 Dec 2013
Posts: 21

PostPosted: Sun Dec 29, 2013 5:30 pm    Post subject: Reply with quote

nlsa8z6zoz7lyih3ap wrote:
Quote:
So this is the way I understand it:

(1) /etc/portage/package.env contains:

Code:

x11-misc/pcmanfm templd.conf


(2) /etc/portage/templd.conf contains:

Code:

LDFLAGS="$LDFLAGS -lm"


That is correct. Hope that this helps.


Thanks so much man for the help!

So when I did the above emerge yelled at me saying that templd.conf did not exist so I had to make /etc/portage/env/templd.conf.

So what resolved my issue (for the sake of posterity for those who may have a similar issue in the future) was these 2 steps:

(1) create /etc/portage/env and in it make a file called templd.conf containing:

Code:

LDFLAGS="$LDFLAGS -lm"


(2) create a file called package.env in /etc/portage that contains:

Code:

x11-misc/pcmanfm   templd.conf


Once again thanks nlsa8z6zoz7lyih3ap would not have been able to do it without your help or the help of everyone else who posted. You guys rock!


Last edited by soulrain on Sun Dec 29, 2013 5:35 pm; edited 1 time in total
Back to top
View user's profile Send private message
nlsa8z6zoz7lyih3ap
Guru
Guru


Joined: 25 Sep 2007
Posts: 388
Location: Canada

PostPosted: Sun Dec 29, 2013 5:33 pm    Post subject: Reply with quote

Glad to have helped.
I have been using Gentoo for 13 years. I really love it.
Welcome to the Gentoo Community.
Back to top
View user's profile Send private message
soulrain
n00b
n00b


Joined: 27 Dec 2013
Posts: 21

PostPosted: Sun Dec 29, 2013 5:39 pm    Post subject: Reply with quote

nlsa8z6zoz7lyih3ap wrote:
Glad to have helped.
I have been using Gentoo for 13 years. I really love it.
Welcome to the Gentoo Community.


Thanks for the welcome! I really like it as well. I am also learning a lot. The wiki and these forums are a great resource. I have only had 2 problems thus far that I have not been able to solve. 1 you just helped me solve now and the other is getting my sound to work. Been reading about ALSA so gonna put a post together trying to explain what I think the problem is. Just have to gather my info so the post actually makes sense.

I am beyond happy with the speed of lxde/openbox/gentoo. Though I have a 4Ghz 8 core amd cpu, you still feel the speed of simplicity with the set up and I hate fat so USE flags and choosing what goes into your kernel is right up my ally.

Thanks again and hope you have a great 14th year with gentoo :)
Back to top
View user's profile Send private message
nlsa8z6zoz7lyih3ap
Guru
Guru


Joined: 25 Sep 2007
Posts: 388
Location: Canada

PostPosted: Sun Dec 29, 2013 6:16 pm    Post subject: Reply with quote

Quote:
Though I have a 4Ghz 8 core amd cpu,


I wonder if we have the same chip? (FX-8350?) I really like it, 'tho I had serious troubles getting the right memory for it.
The saga is contained in https://forums.gentoo.org/viewtopic-t-956000-highlight-.html

Quote:
the other is getting my sound to work


Have you got the driver compiled into your kernel?

In my case, the command
Code:
lspci -k
given as root,
includes the following output
Quote:
01:00.1 Audio device: NVIDIA Corporation GF119 HDMI Audio Controller (rev a1)
Subsystem: eVga.com. Corp. Device 2617
Kernel driver in use: snd_hda_intel


When I install on a new PC I boot to a livecd such as knoppix and give the command lspci -k to see what kernel modules knoppix is using, and then make sure that that driver is included in the kernel that I compile for my new Gentoo installation.

I realize that this may have nothing to do with your case, but I mention it as it has been helpful to me.
Back to top
View user's profile Send private message
soulrain
n00b
n00b


Joined: 27 Dec 2013
Posts: 21

PostPosted: Mon Dec 30, 2013 5:18 am    Post subject: Reply with quote

***** Sound Issue Solved as well *******

nlsa8z6zoz7lyih3ap wrote:
Quote:
Though I have a 4Ghz 8 core amd cpu,


I wonder if we have the same chip? (FX-8350?) I really like it, 'tho I had serious troubles getting the right memory for it.
The saga is contained in https://forums.gentoo.org/viewtopic-t-956000-highlight-.html

Quote:
the other is getting my sound to work


Have you got the driver compiled into your kernel?

In my case, the command
Code:
lspci -k
given as root,
includes the following output
Quote:
01:00.1 Audio device: NVIDIA Corporation GF119 HDMI Audio Controller (rev a1)
Subsystem: eVga.com. Corp. Device 2617
Kernel driver in use: snd_hda_intel


When I install on a new PC I boot to a livecd such as knoppix and give the command lspci -k to see what kernel modules knoppix is using, and then make sure that that driver is included in the kernel that I compile for my new Gentoo installation.


I realize that this may have nothing to do with your case, but I mention it as it has been helpful to me.


Yup I have a FX-8350 as well! Funny this is a bought it to make a programming box but coding has been taking up most my time... But it still rocks and runs amazingly cool. Though the most cpu intensive thing I do probably is a virus scan or package install...
Having the same chip I definitely will check out your post on the memory issue you had. I remember back int he day ram compatibility was a big thing but though now that it was just harry if you wanted to OC and change timings ext ext

Quote:

Have you got the driver compiled into your kernel?


I used genkernel to build the kernel so I believe I do. But I have to go do some googling to make sure of this fact.

Quote:

When I install on a new PC I boot to a livecd such as knoppix and give the command lspci -k to see what kernel modules knoppix is using, and then make sure that that driver is included in the kernel that I compile for my new Gentoo installation.


The gentoo wiki suggests a similar technique looking to see what the live cd used to get you into install and copying those parts of the kernel into your installation. Love knoppix! Always on my utility usb key chain :P

Output for:

Code:
 lspci -k | grep Audio
as root is:

Code:

00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 Azalia (Intel HDA) (rev 40)
01:00.1 Audio device: NVIDIA Corporation GF114 HDMI Audio Controller (rev a1)
08:00.1 Audio device: NVIDIA Corporation GF114 HDMI Audio Controller (rev a1)


I just have my speakers plugged into the audio jack of my mobo: http://www.newegg.ca/Product/Product.aspx?Item=N82E16813131876

I followed the guide to setup ALSA which can be found here: https://wiki.gentoo.org/wiki/ALSA

Output of

Code:
 aplay -L


is :

Code:

null
    Discard all samples (playback) or generate zero samples (capture)
default:CARD=SB
    HDA ATI SB, ALC898 Analog
    Default Audio Device
sysdefault:CARD=SB
    HDA ATI SB, ALC898 Analog
    Default Audio Device
front:CARD=SB,DEV=0
    HDA ATI SB, ALC898 Analog
    Front speakers
surround40:CARD=SB,DEV=0
    HDA ATI SB, ALC898 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=SB,DEV=0
    HDA ATI SB, ALC898 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=SB,DEV=0
    HDA ATI SB, ALC898 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=SB,DEV=0
    HDA ATI SB, ALC898 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=SB,DEV=0
    HDA ATI SB, ALC898 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=SB,DEV=0
    HDA ATI SB, ALC898 Digital
    IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=NVidia,DEV=0
    HDA NVidia, HDMI 0
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=1
    HDA NVidia, HDMI 0
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=2
    HDA NVidia, HDMI 0
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    HDMI Audio Output
hdmi:CARD=NVidia_1,DEV=0
    HDA NVidia, HDMI 0
    HDMI Audio Output
hdmi:CARD=NVidia_1,DEV=1
    HDA NVidia, HDMI 0
    HDMI Audio Output
hdmi:CARD=NVidia_1,DEV=2
    HDA NVidia, HDMI 0
    HDMI Audio Output
hdmi:CARD=NVidia_1,DEV=3
    HDA NVidia, HDMI 0
    HDMI Audio Output



Output of

Code:
 
aplay --list-devices


is

Code:

**** List of PLAYBACK Hardware Devices ****
card 1: SB [HDA ATI SB], device 0: ALC898 Analog [ALC898 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: SB [HDA ATI SB], device 1: ALC898 Digital [ALC898 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 7: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 8: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 9: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 3: NVidia_1 [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 3: NVidia_1 [HDA NVidia], device 7: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 3: NVidia_1 [HDA NVidia], device 8: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 3: NVidia_1 [HDA NVidia], device 9: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0


Well that's all the info I have so far. Going to go poke around and see if I can get it working but once again thanks for all the help and good taste in CPU's :)


***EDIT***

Just noticed when I do

Code:

alsamixer


Card: USB camera
Chip: USB Mixer

Me thinks this cannot be good that my card is listed as my USB camera o0


*****************EDIT [SOLVED]***********************
unplugged usb camera all works now :)
Back to top
View user's profile Send private message
soulrain
n00b
n00b


Joined: 27 Dec 2013
Posts: 21

PostPosted: Mon Dec 30, 2013 2:34 pm    Post subject: Reply with quote

John R. Graham wrote:
See the Handbook, Chapter 3.b. Mixing Stable with Testing. You are getting the latest "stable" package. The only later packages are in the "testing" branch of the Portage tree, or else are still "hard masked" (known to fail in some way). What you want to do is to "keyword" the testing branch version of pcmanfm.

You can see what versions are available with equery (part of app-portage/gentoolkit):
Code:
~ # equery list -p pcmanfm
 * Searching for pcmanfm ...
[-P-] [  ] x11-misc/pcmanfm-0.9.10:0
[-P-] [ ~] x11-misc/pcmanfm-1.1.2:0
[-P-] [ -] x11-misc/pcmanfm-9999:0
Note the "mask status" field in the output: ' ' for stable, '~' for testing, '-' for arch masked. The man page contains a full explanation.

Note that the stable version is still exhibiting a compile-time bug and should be reported.

- John



Thanks John learned a lot by going through this post! All concepts I have run across but now I can put them into context.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum