GeoAmida / AadhaarAuth1.5

Sample C code for Aadhaar Authentication API v1.5
38 stars 31 forks source link

Errors in Makefile #1

Open jayantsharma opened 8 years ago

jayantsharma commented 8 years ago

When I run make wo any changes, it fails with :

Makefile:7: *\ missing separator. Stop.

akumar1512 commented 8 years ago

The Makefile is not properly formatted. Have a look at the below Makefile -

CC= gcc
CFLAGS= -D__XMLSEC_FUNCTION__=__FUNCTION__ -DXMLSEC_NO_XSLT=1     -DXMLSEC_NO_XKMS=1 -I/usr/include/libxml2 -DXMLSEC_CRYPTO_DYNAMIC_LOADING=1     -DXMLSEC_CRYPTO=\"openssl\" -DUNIX_SOCKETS -DXML_SECURITY -DDEBUG
LDFLAGS= -lcrypto -I/usr/include/libxml2 -lxml2 -I/usr/local/include/xmlsec1 -lxmlsec1

AuthClient : src/aadhaar.c src/uid_auth.c
        $(CC) $(CFLAGS) src/aadhaar.c src/uid_auth.c -o $@ $(LDFLAGS)       

FYI: The executing commands should start with a tab and also you should be a little aware of the hidden spaces. Makefiles can lead to a lot of formatting errors.

Use the following command to check for "next line - denoted by $" and "tab - denoted by ^I" characters - $ cat -etv Makefile Name

jayantsharma commented 8 years ago

I'm sorry, who are you addressing ?

akumar1512 commented 8 years ago

Hi Jayant, This is to whomsoever it may concern. I was getting the same error and I did the mentioned to get over it.

jayantsharma commented 8 years ago

Thanks for your input Ashish. Keeping the issue open until one of the project members comments.

shaileshman commented 7 years ago

Hi, When i run AuthClient file from konsole using ./AuthClient command i got below error : Segmentation fault (core dumped) Please help..

NilanjPatel commented 6 years ago

can anyone help me with the same error Makefile:7: *** missing separator. Stop.

@jayantsharma , @ashishkrbit please help me to solve this issue

arpitirl commented 3 years ago

Can anyone help me with how to run this file

GeoAmida commented 3 years ago

Hi,

  Kindly indicate the errors you are facing. The Makefile is for gcc on Linux. Kindly provide the error log and we can try to resolve them.

warm regards,

subbu

On 28/05/21 11:25 pm, arpitirl wrote:

Can anyone help me with how to run this file

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/GeoAmida/AadhaarAuth1.5/issues/1#issuecomment-850578186, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAI3VXGCMYZ6O5EONH5AOWTTP7KJPANCNFSM4CH3M7AA.

--

Dr. P.R.Subramanya | @.***

arpitirl commented 3 years ago

Respected sir, The issues faced by me in the makefile have been attached with this mail. It would be very kind of you to help me with it.

On Sat, May 29, 2021 at 8:44 AM GeoAmida Developer @.***> wrote:

Hi,

Kindly indicate the errors you are facing. The Makefile is for gcc on Linux. Kindly provide the error log and we can try to resolve them.

warm regards,

subbu

On 28/05/21 11:25 pm, arpitirl wrote:

Can anyone help me with how to run this file

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub < https://github.com/GeoAmida/AadhaarAuth1.5/issues/1#issuecomment-850578186>,

or unsubscribe < https://github.com/notifications/unsubscribe-auth/AAI3VXGCMYZ6O5EONH5AOWTTP7KJPANCNFSM4CH3M7AA .

--

Dr. P.R.Subramanya | @.***

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/GeoAmida/AadhaarAuth1.5/issues/1#issuecomment-850759858, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANK4SYTXECTE4E3X363NCITTQBLYDANCNFSM4CH3M7AA .

GeoAmida commented 3 years ago

Hi,

  There is no attachment in your message. You might want to include it in the body of the email as most probably attachments are not allowed on the mailing list.

warm regards,

subbu

On 29/05/21 11:55 am, arpitirl wrote:

Respected sir, The issues faced by me in the makefile have been attached with this mail. It would be very kind of you to help me with it.

On Sat, May 29, 2021 at 8:44 AM GeoAmida Developer @.***> wrote:

Hi,

Kindly indicate the errors you are facing. The Makefile is for gcc on Linux. Kindly provide the error log and we can try to resolve them.

warm regards,

subbu

On 28/05/21 11:25 pm, arpitirl wrote:

Can anyone help me with how to run this file

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <

https://github.com/GeoAmida/AadhaarAuth1.5/issues/1#issuecomment-850578186>,

or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AAI3VXGCMYZ6O5EONH5AOWTTP7KJPANCNFSM4CH3M7AA

.

--

Dr. P.R.Subramanya | @.***

— You are receiving this because you commented. Reply to this email directly, view it on GitHub

https://github.com/GeoAmida/AadhaarAuth1.5/issues/1#issuecomment-850759858, or unsubscribe

https://github.com/notifications/unsubscribe-auth/ANK4SYTXECTE4E3X363NCITTQBLYDANCNFSM4CH3M7AA .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/GeoAmida/AadhaarAuth1.5/issues/1#issuecomment-850779592, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAI3VXAADWBIJNVKUITJR3DTQCCG7ANCNFSM4CH3M7AA.

--

Dr. P.R.Subramanya | @.***

arpitirl commented 3 years ago

Screenshot from 2021-05-28 22-16-34 Screenshot from 2021-05-28 22-17-26

arpitirl commented 3 years ago

C an you please tell us how to solve the above errors.

GeoAmida commented 3 years ago

Hi,

  Makefile contains the compile options for both desktop/laptop and GeoAmida. So, here is what you could copy to a new Makefile

CC=gcc CFLAGS= -D__XMLSEC_FUNCTION__=__FUNCTION__ -DXMLSEC_NO_XSLT=1 -DXMLSEC_NO_XKMS=1 -I/usr/include/libxml2 -DXMLSEC_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_CRYPTO=\"openssl\" -DUNIX_SOCKETS -DXML_SECURITY -DDEBUG LDFLAGS= -lcrypto -I/usr/include/libxml2 -lxml2 -I/usr/local/include/xmlsec1 -lxmlsec1 all:         $(CC) $(CFLAGS) $(LDFLAGS) src/aadhaar.c src/uid_auth.c -o AuthClient   Then, invoke "make" and it will pick the file named Makefile by default. Hope you have downloaded the libxml and xmlsec packages. warm regards, subbu On 29/05/21 7:35 pm, arpitirl wrote: > > C an you please tell us how to solve the above errors. > > — > You are receiving this because you commented. > Reply to this email directly, view it on GitHub > , > or unsubscribe > . >
arpitirl commented 3 years ago

WhatsApp Image 2021-05-29 at 23 41 24

arpitirl commented 3 years ago

now I am getting this error, Kindly help me.

arpitirl commented 3 years ago

Kindly help sir.

GeoAmida commented 3 years ago

Hi,

  Do check the version of openssl that is being included when building this. This is in all probability an issue that comes when the newer versions of openssl (post 0.9.8) are used.

warm regards,

subbu

On 29/05/21 11:42 pm, arpitirl wrote:

WhatsApp Image 2021-05-29 at 23 41 24 https://user-images.githubusercontent.com/55953762/120080614-75b17d80-c0d7-11eb-877a-11934ff13d91.jpeg

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/GeoAmida/AadhaarAuth1.5/issues/1#issuecomment-850875638, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAI3VXAJ6P7XKTYBZF5FIO3TQEVADANCNFSM4CH3M7AA.

ranveer19k commented 1 year ago

there is a error when i compile the file with make refer to the image below

I have the openssl version on ubuntu - OpenSSL 3.0.2 15 Mar 2022 (Library: OpenSSL 3.0.2 15 Mar 2022)

Screenshot from 2023-08-04 12-14-56