[openib-general] Why doesn't the 24-kernel actually compile on 2.4 kernels?

Stephen Poole
Thu Apr 1 18:26:04 PST 2004


>     Mike> After a build, with various compile fixes, without ipoib,
>     Mike> the modules have undefined symbols:
>
>     Mike> /lib/modules/2.4.25/kernel/drivers/infiniband/core/ib_services.o:
>     Mike> unresolved symbol set_user_nice

#define set_user)nice(tsk,n) do{(tsk)->nice = n;} while(0)
It needs to go into ...core/services_thread.c

What did you do about the mosal_mlock.c issues ?

>
>Hmm... looks like newer kernels don't have set_user_nice.  For basic
>testing you can just delete the call to set_user_nice in
>services_thread.c (or change it to an assignment to current->nice I guess?).
>
>     Mike> EXTRA_FLAGS does include -DIN_TREE_BUILD...  but don't seem
>     Mike> to make it into the compile line since I don't see how they
>     Mike> would ever be included.  Here's the Makefile in ulp/ipoib:
>
>     Mike> EXTRA_CFLAGS += \
>     Mike>     -I$(TOPDIR)/drivers/infiniband/include \
>     Mike>     #-DRHEL_ROUTE_FLOW_API \
>     Mike>     -DIN_TREE_BUILD \
>     Mike>     -DTS_HOST_DRIVER -D_NO_DATA_PATH_TRACE
>
>This one is your fault I think :)  Putting that "#" in the front of a
>line in the middle of a variable assignment causes make to ignore the
>rest of the assignment (since it skips the "\" at the end of the line
>as part of the comment).  Better to just delete the
>-DRHEL_ROUTE_FLOW_API line.
>
>  - ROland
>
>--
>To unsubscribe send an email with subject unsubscribe to 
>openib-general at openib.org.
>Please contact moderator at openib.org for questions.


-- 
Steve Poole (spoole at lanl.gov) 
        Office: 
Los Alamos National Laboratory 
        Office: 
CCN - Special Projects / Advanced Development                   Fax: 





-- 
To unsubscribe send an email with subject unsubscribe to openib-general at openib.org.
Please contact moderator at openib.org for questions.




More information about the openib-general mailing list