Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

svgalib wants vga (library) #88

Open
fede2cr opened this issue Jun 26, 2018 · 2 comments
Open

svgalib wants vga (library) #88

fede2cr opened this issue Jun 26, 2018 · 2 comments

Comments

@fede2cr
Copy link
Owner

fede2cr commented Jun 26, 2018

cc -Wall -Wstrict-prototypes -fomit-frame-pointer -O2 -fno-strength-reduce -pipe -I../include -L../sharedlib -s -o restorefont restorefont.o -lvga -lm
/usr/bin/ld: cannot find -lvga
collect2: error: ld returned 1 exit status
make[1]: *** [/tmp/svgalib-1.9.25/utils/Makefile:37: restorefont] Error 1

@zxs-un
Copy link

zxs-un commented Aug 7, 2022

The problem is:

../src/vga.c:31:10: fatal error: sys/io.h: No such file or directory                                                                                                      
   31 | #include <sys/io.h>                                                                                                                                               
      |          ^~~~~~~~~~                                                                                                                                               
compilation terminated. 

so that libvga.so did not finished compilation.

But the build script continues to build and link which causes this problem.

Still did not find a method to fix it as there is no /usr/include/sys/io.h for riscv64.

@zxs-un
Copy link

zxs-un commented Aug 7, 2022

Build output in more detail:

cc -Wall -Wstrict-prototypes -fPIC -DPIC -I../include -I. -I../src -fomit-frame-pointer -O2 -fno-strength-reduce -pipe -DNO_ASSEMBLY -DSVGALIB_CONFIG_FILE=\"/etc/vga/libv
ga.config\" -DALLOW_MOUSE_OVERRIDE -DNO_DELAY -DLIBC_MEMCPY  -c -o vga_helper.o ../src/vga_helper.c                                                                       
../src/vga_helper.c:1:10: fatal error: sys/io.h: No such file or directory                                                                                                
    1 | #include <sys/io.h>                                                                                                                                               
      |          ^~~~~~~~~~                                                                                                                                               
compilation terminated.                                                                                                                                                   
make[1]: *** [/root/xtmp/svgalib-1.9.25/src/Makefile:431: vga_helper.o] Error 1                                                                                           
make[1]: Leaving directory '/root/xtmp/svgalib-1.9.25/sharedlib'                                                                                                          
(cd sharedlib/; \                                                                                                                                                         
make -f /root/xtmp/svgalib-1.9.25/gl/Makefile libvgagl.so.1.9.25 \                                                                                                        
        SRCDIR="/root/xtmp/svgalib-1.9.25" DLLFLAGS="-fPIC -DPIC"; \                                                                                                      
        ln -fs libvgagl.so.1.9.25 libvgagl.so; \                                                                                                                          
)                                                                                                                                                                         
make[1]: Entering directory '/root/xtmp/svgalib-1.9.25/sharedlib'                                                                                                         
make[1]: 'libvgagl.so.1.9.25' is up to date.                                                                                                                              
make[1]: Leaving directory '/root/xtmp/svgalib-1.9.25/sharedlib'                                                                                                          
Installing shared library image as /usr/lib/libvga.so.1.9.25 /usr/lib/libvgagl.so.1.9.25.                                                                                 
install: cannot stat 'sharedlib/libvga.so.1.9.25': No such file or directory                                                                                              
ldconfig                                                                                                                                                                  
mkdir -p /etc/vga;                                                                                                                                                        
Installing default keymap file in /etc/vga.                                                                                                                               
(cd utils; \                                                                                                                                                              
make -f /root/xtmp/svgalib-1.9.25/utils/Makefile SRCDIR="/root/xtmp/svgalib-1.9.25")                                                                                      
make[1]: Entering directory '/root/xtmp/svgalib-1.9.25/utils'                                                                                                             
cc -Wall -Wstrict-prototypes -fomit-frame-pointer -O2 -fno-strength-reduce -pipe -I../include -L../sharedlib -s -o restorefont restorefont.o -lvga -lm                    
/usr/bin/ld: cannot find -lvga: No such file or directory                                                                                                                 
collect2: error: ld returned 1 exit status                                                                                                                                
make[1]: *** [/root/xtmp/svgalib-1.9.25/utils/Makefile:37: restorefont] Error 1                                                                                           
make[1]: Leaving directory '/root/xtmp/svgalib-1.9.25/utils'                                                                                                              
make: *** [Makefile:293: textutils] Error 2

Showing that the build continues after fatal error: sys/io.h and finally reached /usr/bin/ld: cannot find -lvga.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants