TechNote: 0009 Date : 07/10/96 Cat/Sub : WANPIPE/LINUX Title : WANPIPE 2.10 Compile Problems Contact : Gene Kozin, 74604,152@compuserve.com Related Files: /pub/linux/update02.tgz ------------------------------------------------------------------------------ 1. Linker segmentation fault during WANPIPE build ------------------------------------------------- Symptoms: When running WANPIPE build script the following error occur: make: *** [/usr/lib/wanpipe/mod/sdla.mod] Segmentation fault (core dumped) make: *** Deleting file `/usr/lib/wanpipe/mod/sdla.mod' Error: Failed to rebuld sdla module! Diagnosis: Some components of sdla driver were distributed in object format (COFF). This causes segmentation fault in ELF-based linkers. Treatment: To correct the problem install missing source files and rebuild WANPIPE. 1) Dounload an update from Sangoma's FTP site: ftp://ftp.sangoma.com/pub/linux/update02.tgz Make sure you set you FTP client for binary transfer mode. 2) Log in as a superuser (root) and go to root directory. 3) Transfer files from to your system: gzip -cd update02.tgz | tar xf - 4) Go to WANPIPE directory (/usr/lib/wanpipe) and run build script ./build 2. Unresolved symbols during build ---------------------------------- Symptoms: When running WANPIPE build script the following error occur: Recompiling flip module... cc -I. -Wall -O2 -fomit-frame-pointer -D__KERNEL__ -DMODULE -D_LINUX_1_2_ -D_GNUC_ -D_DEBUG_=2 -c ./flip.c ./flip.c: In function `flip_ifinit': ./flip.c:738: warning: assignment from incompatible pointer type ./flip.c:741: structure has no member named `type_trans' ./flip.c: In function `flip_type_trans': ./flip.c:964: structure has no member named `pkt_class' ./flip.c:965: warning: control reaches end of non-void function ./flip.c: In function `flip_receive': ./flip.c:1018: structure has no member named `pkt_class' ./flip.c: At top level: ./flip.c:176: warning: `OUI_802_2' defined but not used make: *** [flip.o] Error 1 Error: Failed to recompile flip module! Diagnosis: Some newer Linux distributions use 1.2.13 kernel patched with 1.3.x-networking code (NET-3). This misleads build script causing it to generate code incompatible with NET-3. Treatment: Recompile WANPIPE modules in 1.3.x mode. To do this go to each module's source directory and rebuild it manually instead of using build script. Type 'OS_VER=_1_3_X_ ' before 'make' to compile for 1.3.x. For example, to rebuild FLIP module: 1) go to /usr/lib/wanpipe/src/flip directory 2) type 'touch *.c' 3) type 'OS_VER=_1_3_X_ make' ------------------------------------------------------------------------------ This TechNote is Copyright (c) 1996 Sangoma Technologies Inc. All rights reserved.