[dev] [slstatus] FreeBSD compiling problem ld undefined symbol
Here is what I get when I tried make: cc -o slstatus -L/usr/local/lib -s components/battery.o components/cpu.o components/datetime.o components/disk.o components/entropy.o components/hostname.o components/ip.o components/kernel_release.o components/keyboard_indicators.o components/keymap.o components/load_avg.o components/netspeeds.o components/num_files.o components/ram.o components/run_command.o components/swap.o components/temperature.o components/uptime.o components/user.o components/volume.o components/wifi.o util.o slstatus.o -lX11 /usr/bin/ld: error: undefined symbol: kvm_openfiles >>> referenced by swap.c >>> components/swap.o:(getswapinfo) /usr/bin/ld: error: undefined symbol: kvm_getswapinfo >>> referenced by swap.c >>> components/swap.o:(getswapinfo) /usr/bin/ld: error: undefined symbol: kvm_close >>> referenced by swap.c >>> components/swap.o:(getswapinfo) /usr/bin/ld: error: undefined symbol: kvm_close >>> referenced by swap.c >>> components/swap.o:(getswapinfo) cc: error: linker command failed with exit code 1 (use -v to see invocation) *** Error code 1 Stop. make: stopped in /usr/local/src/slstatus Here is my config.mk: # slstatus version VERSION = 0 # customize below to fit your system # paths PREFIX = /usr/local MANPREFIX = $(PREFIX)/share/man X11INC = /usr/local/include X11LIB = /usr/local/lib # flags CPPFLAGS = -I$(X11INC) -D_DEFAULT_SOURCE CFLAGS = -std=c99 -pedantic -Wall -Wextra -Os LDFLAGS = -L$(X11LIB) -s LDLIBS = -lX11 # compiler and linker CC = cc What is the problem with swap.c and swap.o ?
[dev] Re: [slstatus] FreeBSD compiling problem ld undefined symbol
On 19/07/30 09:22AM, Jason Smith wrote: I added -lkvm to LDFLAGS and everything compile without any problem. Thanks to Micheal Buch. > Here is what I get when I tried make: > > cc -o slstatus -L/usr/local/lib -s components/battery.o components/cpu.o > components/datetime.o components/disk.o components/entropy.o > components/hostname.o components/ip.o components/kernel_release.o > components/keyboard_indicators.o components/keymap.o components/load_avg.o > components/netspeeds.o components/num_files.o components/ram.o > components/run_command.o > components/swap.o components/temperature.o components/uptime.o > components/user.o components/volume.o components/wifi.o util.o slstatus.o > -lX11 > /usr/bin/ld: error: undefined symbol: kvm_openfiles > >>> referenced by swap.c > >>> components/swap.o:(getswapinfo) > > /usr/bin/ld: error: undefined symbol: kvm_getswapinfo > >>> referenced by swap.c > >>> components/swap.o:(getswapinfo) > > /usr/bin/ld: error: undefined symbol: kvm_close > >>> referenced by swap.c > >>> components/swap.o:(getswapinfo) > > /usr/bin/ld: error: undefined symbol: kvm_close > >>> referenced by swap.c > >>> components/swap.o:(getswapinfo) > cc: error: linker command failed with exit code 1 (use -v to see invocation) > *** Error code 1 > > Stop. > make: stopped in /usr/local/src/slstatus > > Here is my config.mk: > # slstatus version > VERSION = 0 > > # customize below to fit your system > > # paths > PREFIX = /usr/local > MANPREFIX = $(PREFIX)/share/man > > X11INC = /usr/local/include > X11LIB = /usr/local/lib > > # flags > CPPFLAGS = -I$(X11INC) -D_DEFAULT_SOURCE > CFLAGS = -std=c99 -pedantic -Wall -Wextra -Os > LDFLAGS = -L$(X11LIB) -s > LDLIBS = -lX11 > > # compiler and linker > CC = cc > > What is the problem with swap.c and swap.o ?
Re: [dev] [surf] FreeBSD GST_IS_GL_CONTEXT assertion failed
I also attaching my gst-inspect output. On 19/08/06 07:12PM, Jason Smith wrote: > I tried with lots of FreeBSD setups there is bug related with surf or > gstreamer. Playing youtube videos are not possible and there is "Please note > that GitHub no longer supports old versions of Safari." warning at > github.com. Here is output and screenshot. > > > ** (:56477): CRITICAL **: 19:02:47.742: gst_gl_context_get_display: > assertion 'GST_IS_GL_CONTEXT (context)' failed > > ** (:56477): CRITICAL **: 19:02:47.742: > gst_gl_display_get_handle_type: assertion 'GST_IS_GL_DISPLAY (display)' failed > > (:56477): GStreamer-CRITICAL **: 19:02:47.752: gst_object_unref: > assertion 'object != NULL' failed > > (:56477): GStreamer-CRITICAL **: 19:02:47.752: gst_object_unref: > assertion 'object != NULL' failed > > ** (:56477): CRITICAL **: 19:02:47.752: gst_gl_context_get_display: > assertion 'GST_IS_GL_CONTEXT (context)' failed > > ** (:56477): CRITICAL **: 19:02:47.752: > gst_gl_display_get_handle_type: assertion 'GST_IS_GL_DISPLAY (display)' failed > > (:56477): GStreamer-CRITICAL **: 19:02:47.752: gst_object_unref: > assertion 'object != NULL' failed > > (:56477): GStreamer-CRITICAL **: 19:02:47.752: gst_object_unref: > assertion 'object != NULL' failed > > (:56477): GLib-GObject-WARNING **: 19:02:49.035: invalid > uninstantiatable type '(null)' in cast to 'GstElement' > > (:56477): GStreamer-CRITICAL **: 19:02:49.035: > gst_element_message_full_with_details: assertion 'GST_IS_ELEMENT (element)' > failed > > screenshot attached equalizer: equalizer-10bands: 10 Band Equalizer equalizer: equalizer-3bands: 3 Band Equalizer equalizer: equalizer-nbands: N Band Equalizer efence: efence: Electric Fence alphacolor: alphacolor: Alpha color filter audiofx: audioecho: Audio echo audiofx: audiofirfilter: Audio FIR filter audiofx: audiowsincband: Band pass & band reject filter audiofx: audiowsinclimit: Low pass & high pass filter audiofx: audioiirfilter: Audio IIR filter audiofx: audiochebband: Band pass & band reject filter audiofx: audiocheblimit: Low pass & high pass filter audiofx: audiodynamic: Dynamic range controller audiofx: audioamplify: Audio amplifier audiofx: audiokaraoke: AudioKaraoke audiofx: audioinvert: Audio inversion audiofx: audiopanorama: Stereo positioning mulaw: mulawdec: Mu Law audio decoder mulaw: mulawenc: Mu Law audio encoder spectrum: spectrum: Spectrum analyzer flv: flvmux: FLV muxer flv: flvdemux: FLV Demuxer asf: rtpasfdepay: RTP ASF packet depayloader asf: rtspwms: WMS RTSP Extension asf: asfdemux: ASF Demuxer avi: avisubtitle: Avi subtitle parser avi: avimux: Avi muxer avi: avidemux: Avi demuxer y4menc: y4menc: YUV4MPEG video encoder goom2k1: goom2k1: GOOM: what a GOOM! 2k1 edition navigationtest: navigationtest: Video navigation test debug: cpureport: CPU report debug: capsdebug: Caps debug debug: testsink: Test plugin debug: taginject: TagInject debug: progressreport: Progress report debug: pushfilesrc: Push File Source debug: navseek: Seek based on left-right arrows debug: rndbuffersize: Random buffer size debug: capssetter: CapsSetter debug: breakmydata: Break my data realmedia: pnmsrc: PNM packet receiver realmedia: rtspreal: RealMedia RTSP Extension realmedia: rdtmanager: RTP Decoder realmedia: rdtdepay: RDT packet parser realmedia: rademux: RealAudio Demuxer realmedia: rmdemux: RealMedia Demuxer multipart: multipartmux: Multipart muxer multipart: multipartdemux: Multipart demuxer ossaudio: osssink: Audio Sink (OSS) ossaudio: osssrc: Audio Source (OSS) ossaudio: ossmixer: OSS Mixer goom: goom: GOOM: what a GOOM! audioparsers: mpegaudioparse: MPEG1 Audio Parser audioparsers: flacparse: FLAC audio parser audioparsers: dcaparse: DTS Coherent Acoustics audio stream parser audioparsers: ac3parse: AC3 audio stream parser audioparsers: amrparse: AMR audio stream parser audioparsers: aacparse: AAC audio stream parser dvdsub: dvdsubparse: DVD subtitle parser dvdsub: dvdsubdec: DVD subtitle decoder videomixer: videomixer2: Video mixer 2 videomixer: videomixer: Video mixer dvdlpcmdec: dvdlpcmdec: DVD LPCM Audio decoder smpte: smptealpha: SMPTE transitions smpte: smpte: SMPTE transitions videofilter: videoflip: Video flipper videofilter: videobalance: Video balance videofilter: gamma: Video gamma correction flxdec: flxdec: FLX video decoder videocrop: aspectratiocrop: aspectratiocrop videocrop: videocrop: Crop ximagesrc: ximagesrc: Ximage video source mpegstream: dvddemux: DVD Demuxer mpegstream: mpegdemux: MPEG Demuxer mpegstream: mpegparse: MPEG System Parser shapewipe: shapewipe: Shape Wipe transition filter videobox: videobox: Video box filter wavparse: wavparse:
Re: [dev] Re: [surf] "GitHub no longer supports old versions of Safari."
According to ua-parser-js v0.7.11: ua ua: Mozilla/5.0 (X11; FreeBSD amd64) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.0 Safari/605.1.15 Surf/2.0 browser name: Safari version: 11.0 major: 11 engine name: WebKit version: 605.1.15 os name: FreeBSD version: amd64 device model: undefined vendor: undefined type: undefined cpu architecture: amd64 This is default user-agent with FreeBSD, is WebKit version fine ? I am using webkit-gtk from FreeBSD repos not ports. On 19/08/06 07:24PM, Leonardo Taccari wrote: > unwillex...@cock.li writes: > > But this problem doesn’t exist at Linux, why ? > > What are the webkit-gtk version used? > What is the User-Agent: header in surf sent on Linux? > What is the User-Agent: header in surf sent on FreeBSD? > > (I would expect different User-Agent: and that would explain why it only > happens on FreeBSD.) >