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

Missing file specifications #54

Closed
vitacell opened this issue Mar 24, 2021 · 12 comments · Fixed by #59
Closed

Missing file specifications #54

vitacell opened this issue Mar 24, 2021 · 12 comments · Fixed by #59

Comments

@vitacell
Copy link

bash-4.3$ make
mkdir -p build/
nuget restore SteamAuth/SteamAuth/SteamAuth.sln
MSBuild auto-detection: using msbuild version '14.0' from '/usr/lib/mono/xbuild/14.0/bin'.
Restoring NuGet package Newtonsoft.Json.12.0.3.
Adding package 'Newtonsoft.Json.12.0.3' to folder '/home/vita/Desktop/Steam-authenticator/steamguard-cli/SteamAuth/SteamAuth/packages'
Added package 'Newtonsoft.Json.12.0.3' to folder '/home/vita/Desktop/Steam-authenticator/steamguard-cli/SteamAuth/SteamAuth/packages'

NuGet Config files used:
/home/vita/.config/NuGet/NuGet.Config

Feeds used:
/home/vita/.nuget/packages/
https://api.nuget.org/v3/index.json

Installed:
1 package(s) to packages.config projects
echo "NEWTONSOFT_JSON_PATH="
NEWTONSOFT_JSON_PATH=
mcs -target:library -out:build/SteamAuth.dll -r: SteamAuth/SteamAuth/APIEndpoints.cs SteamAuth/SteamAuth/AuthenticatorLinker.cs SteamAuth/SteamAuth/Confirmation.cs SteamAuth/SteamAuth/SessionData.cs SteamAuth/SteamAuth/SteamGuardAccount.cs SteamAuth/SteamAuth/SteamWeb.cs SteamAuth/SteamAuth/TimeAligner.cs SteamAuth/SteamAuth/UserLogin.cs SteamAuth/SteamAuth/Util.cs SteamAuth/SteamAuth/Properties/AssemblyInfo.cs
error CS2005: Missing file specification for `/r:' option
makefile:4: fallo en las instrucciones para el objetivo 'all'
make: *** [all] Error 1

@dyc3
Copy link
Owner

dyc3 commented Mar 24, 2021

did you make sure to check out the git submodules?

@vitacell
Copy link
Author

bash-4.3$ git clone --recursive https://github.com/dyc3/steamguard-cli.git
Clonando en 'steamguard-cli'...
remote: Enumerating objects: 61, done.
remote: Counting objects: 100% (61/61), done.
remote: Compressing objects: 100% (33/33), done.
remote: Total 494 (delta 22), reused 57 (delta 21), pack-reused 433
Recibiendo objetos: 100% (494/494), 103.08 KiB | 1.26 MiB/s, listo.
Resolviendo deltas: 100% (283/283), listo.
Submódulo 'SteamAuth' (https://github.com/dyc3/SteamAuth.git) registrado para ruta 'SteamAuth'
Clonando en '/home/vita/steamguard-cli/SteamAuth'...
remote: Enumerating objects: 361, done.
remote: Total 361 (delta 0), reused 0 (delta 0), pack-reused 361
Recibiendo objetos: 100% (361/361), 85.47 KiB | 1.22 MiB/s, listo.
Resolviendo deltas: 100% (233/233), listo.
Ruta de submódulo 'SteamAuth': check out realizado a 'e0619528fbe8f4c6f74135283b3f991219e73cf4'
bash-4.3$ cd steamguard-cli/
bash-4.3$ make
mkdir -p build/
nuget restore SteamAuth/SteamAuth/SteamAuth.sln
MSBuild auto-detection: using msbuild version '14.0' from '/usr/lib/mono/xbuild/14.0/bin'.
Restoring NuGet package Newtonsoft.Json.12.0.3.
Adding package 'Newtonsoft.Json.12.0.3' to folder '/home/vita/steamguard-cli/SteamAuth/SteamAuth/packages'
Added package 'Newtonsoft.Json.12.0.3' to folder '/home/vita/steamguard-cli/SteamAuth/SteamAuth/packages'

NuGet Config files used:
/home/vita/.config/NuGet/NuGet.Config

Feeds used:
/home/vita/.nuget/packages/
https://api.nuget.org/v3/index.json

Installed:
1 package(s) to packages.config projects
echo "NEWTONSOFT_JSON_PATH="
NEWTONSOFT_JSON_PATH=
mcs -target:library -out:build/SteamAuth.dll -r: SteamAuth/SteamAuth/APIEndpoints.cs SteamAuth/SteamAuth/AuthenticatorLinker.cs SteamAuth/SteamAuth/Confirmation.cs SteamAuth/SteamAuth/SessionData.cs SteamAuth/SteamAuth/SteamGuardAccount.cs SteamAuth/SteamAuth/SteamWeb.cs SteamAuth/SteamAuth/TimeAligner.cs SteamAuth/SteamAuth/UserLogin.cs SteamAuth/SteamAuth/Util.cs SteamAuth/SteamAuth/Properties/AssemblyInfo.cs
error CS2005: Missing file specification for `/r:' option
makefile:4: fallo en las instrucciones para el objetivo 'all'
make: *** [all] Error 1

@dyc3
Copy link
Owner

dyc3 commented Mar 24, 2021

It looks like NEWTONSOFT_JSON_PATH is not being set.
What does this command give you?

find -name Newtonsoft.Json.dll

@vitacell
Copy link
Author

vitacell commented Mar 24, 2021

It looks like NEWTONSOFT_JSON_PATH is not being set.
What does this command give you?

find -name Newtonsoft.Json.dll

bash-4.3$ pwd
/home/vita/steamguard-cli
bash-4.3$ find -name Newtonsoft.Json.dll
./SteamAuth/SteamAuth/packages/Newtonsoft.Json.12.0.3/lib/net45/Newtonsoft.Json.dll
./SteamAuth/SteamAuth/packages/Newtonsoft.Json.12.0.3/lib/netstandard2.0/Newtonsoft.Json.dll
./SteamAuth/SteamAuth/packages/Newtonsoft.Json.12.0.3/lib/net40/Newtonsoft.Json.dll
./SteamAuth/SteamAuth/packages/Newtonsoft.Json.12.0.3/lib/net35/Newtonsoft.Json.dll
./SteamAuth/SteamAuth/packages/Newtonsoft.Json.12.0.3/lib/portable-net40+sl5+win8+wp8+wpa81/Newtonsoft.Json.dll
./SteamAuth/SteamAuth/packages/Newtonsoft.Json.12.0.3/lib/netstandard1.0/Newtonsoft.Json.dll
./SteamAuth/SteamAuth/packages/Newtonsoft.Json.12.0.3/lib/netstandard1.3/Newtonsoft.Json.dll
./SteamAuth/SteamAuth/packages/Newtonsoft.Json.12.0.3/lib/net20/Newtonsoft.Json.dll
./SteamAuth/SteamAuth/packages/Newtonsoft.Json.12.0.3/lib/portable-net45+win8+wp8+wpa81/Newtonsoft.Json.dll

Can relative paths be a problem? Or "./"?

Here some of my packages:
nuget-3.5.0-noarch-1_SBo
make-4.1-x86_64-2
mono-5.0.1.1-x86_64-1_SBo
mono-addins-1.3.5-x86_64-1_SBo
mono-basic-4.6-x86_64-1_SBo
monodevelop-6.3.0.864-x86_64-2_SBo

@dyc3
Copy link
Owner

dyc3 commented Mar 24, 2021

This is the full command that's used in the makefile to find the dll.

find -name Newtonsoft.Json.dll | grep \/net45\/ | sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n | tail -n 1

I tried it against the output you provided and it worked fine. Do you have the sort command?

@vitacell
Copy link
Author

vitacell commented Mar 24, 2021

This is the full command that's used in the makefile to find the dll.

find -name Newtonsoft.Json.dll | grep \/net45\/ | sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n | tail -n 1

I tried it against the output you provided and it worked fine. Do you have the sort command?

bash-4.3$ whereis sort
sort: /usr/bin/sort /bin/sort /usr/man/man1/sort.1.gz /usr/man/man3/sort.3.gz

bash-4.3$ find -name Newtonsoft.Json.dll | grep /net45/ | sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n | tail -n 1
./SteamAuth/SteamAuth/packages/Newtonsoft.Json.12.0.3/lib/net45/Newtonsoft.Json.dll

Hmmm still can not to figure out what is failing and where.

@dyc3
Copy link
Owner

dyc3 commented Mar 24, 2021

Super weird...

As a temporary fix, you can modify the makefile to set NEWTONSOFT_JSON_PATH manually

@vitacell
Copy link
Author

vitacell commented Mar 24, 2021

I tryed everyhing but I have same output. Then I tryed this in makefile:
$(eval NEWTONSOFT_JSON_PATH=/home/vita/steamguard-cli/SteamAuth/SteamAuth/packages/Newtonsoft.Json.12.0.3/lib/net45/Newtonsoft.Json.dll)

bash-4.3$ make
mkdir -p build/
nuget restore SteamAuth/SteamAuth/SteamAuth.sln
MSBuild auto-detection: using msbuild version '14.0' from '/usr/lib/mono/xbuild/14.0/bin'.
Ya se han instalado todos los paquetes mostrados en 'packages.config'.
echo "NEWTONSOFT_JSON_PATH=/home/vita/steamguard-cli/SteamAuth/SteamAuth/packages/Newtonsoft.Json.12.0.3/lib/net45/Newtonsoft.Json.dll"
NEWTONSOFT_JSON_PATH=/home/vita/steamguard-cli/SteamAuth/SteamAuth/packages/Newtonsoft.Json.12.0.3/lib/net45/Newtonsoft.Json.dll
mcs -target:library -out:build/SteamAuth.dll -r:/home/vita/steamguard-cli/SteamAuth/SteamAuth/packages/Newtonsoft.Json.12.0.3/lib/net45/Newtonsoft.Json.dll SteamAuth/SteamAuth/APIEndpoints.cs SteamAuth/SteamAuth/AuthenticatorLinker.cs SteamAuth/SteamAuth/Confirmation.cs SteamAuth/SteamAuth/SessionData.cs SteamAuth/SteamAuth/SteamGuardAccount.cs SteamAuth/SteamAuth/SteamWeb.cs SteamAuth/SteamAuth/TimeAligner.cs SteamAuth/SteamAuth/UserLogin.cs SteamAuth/SteamAuth/Util.cs SteamAuth/SteamAuth/Properties/AssemblyInfo.cs
error CS0009: Metadata file `/home/vita/steamguard-cli/SteamAuth/SteamAuth/packages/Newtonsoft.Json.12.0.3/lib/net45/Newtonsoft.Json.dll' does not contain valid metadata
Compilation failed: 1 error(s), 0 warnings
makefile:4: fallo en las instrucciones para el objetivo 'all'
make: *** [all] Error 1

@dyc3
Copy link
Owner

dyc3 commented Mar 24, 2021

What version of mono do you have, and what OS are you on?

@vitacell
Copy link
Author

vitacell commented Mar 24, 2021

What version of mono do you have, and what OS are you on?

Slackware64-14.2 (release date 2016).

Here some of my packages:
nuget-3.5.0-noarch-1_SBo
make-4.1-x86_64-2
mono-5.0.1.1-x86_64-1_SBo
mono-addins-1.3.5-x86_64-1_SBo
mono-basic-4.6-x86_64-1_SBo
monodevelop-6.3.0.864-x86_64-2_SBo
libgdiplus-5.4-x86_64-1_SBo

@dyc3
Copy link
Owner

dyc3 commented Mar 24, 2021

try upgrading to mono 6

@salahmak
Copy link
Contributor

@dyc3 i have mono6 and still have the same problem, is there any fix ?

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

Successfully merging a pull request may close this issue.

3 participants