bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 1/1][Trivial fix] procfs FTBFS because of a missing linker flag.


From: Cyril Roelandt
Subject: [PATCH 1/1][Trivial fix] procfs FTBFS because of a missing linker flag.
Date: Thu, 18 Oct 2012 22:37:34 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.7) Gecko/20120922 Icedove/10.0.7

Hello,

The procfs translator fails to build on my Debian GNU/Hurd virtual machine:

gcc -Wall -g -o procfs procfs.o netfs.o procfs_dir.o process.o proclist.o rootdir.o dircat.o main.o -lnetfs -lps
/usr/bin/ld.bfd.real: netfs.o: undefined reference to symbol 'fshelp_access'
/usr/bin/ld.bfd.real: note: 'fshelp_access' is defined in DSO /lib/libfshelp.so.0.3 so try adding it to the linker command line
/lib/libfshelp.so.0.3: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make: *** [procfs] Error 1


The fix is quite simple:

diff --git a/Makefile b/Makefile
index a397522..c69cb20 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
 TARGET = procfs
 OBJS = procfs.o netfs.o procfs_dir.o \
        process.o proclist.o rootdir.o dircat.o main.o
-LIBS = -lnetfs -lps
+LIBS = -lnetfs -lps -lfshelp

 CC = gcc
 CFLAGS = -Wall -g



Regards,
Cyril Roelandt.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]